From: Loic Dachary Date: Mon, 30 Dec 2013 23:03:42 +0000 (+0100) Subject: ceph-disk: run ceph-osd when --mark-init=none X-Git-Tag: v0.77~54^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0fcc081858fae4febbb6a613a93cfbbcedd5a320;p=ceph.git ceph-disk: run ceph-osd when --mark-init=none Signed-off-by: Loic Dachary --- diff --git a/src/ceph-disk b/src/ceph-disk index 2038e71a1ff1..f5ba04d8bccf 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -1834,6 +1834,18 @@ def main_activate(args): activate_key_template=args.activate_key_template, init=args.mark_init, ) + + if args.mark_init == 'none': + command_check_call( + [ + 'ceph-osd', + '--cluster={cluster}'.format(cluster=cluster), + '--id={osd_id}'.format(osd_id=osd_id), + '--osd-data={path}'.format(path=args.path), + '--osd-journal={path}/journal'.format(path=args.path), + ], + ) + else: raise Error('%s is not a directory or block device' % args.path)