I suggest using a onliner based on ceph-disk, the same way ceph-deploy does it : https://github.com/ceph/ceph-deploy/blob/master/ceph_deploy/osd.py#L67