[--fs-type *xfs|ext4|btrfs*] [*data-path*] [*journal-path*]
| **ceph-disk** **activate** [*data-path*] [--activate-key *path*]
+ [--mark-init *sysvinit|upstart|systemd|auto|none*]
+ [--no-start-daemon]
| **ceph-disk** **activate-all**
ceph-disk activate [PATH] [--activate-key PATH]
-Another option :option:`--mark-init` can also be used with this subcommand.
-``--mark-init`` provides init system to manage the OSD directory.
+Another option :option:`--mark-init` can also be used with this
+subcommand. ``--mark-init`` provides init system to manage the OSD
+directory. It defaults to ``auto`` which detects the init system
+suitable for ceph (either ``sysvinit``, ``systemd`` or
+``upstart``). The argument can be used to override the init system. It
+may be convenient when an operating system supports multiple init
+systems, such as Debian GNU/Linux jessie with ``systemd`` and
+``sysvinit``. If the argument is ``none``, the OSD is not marked with
+any init system and ``ceph-disk activate`` needs to be called
+explicitely after each reboot.
+
+
+Usage::
+
+ ceph-disk activate [PATH] [--mark-init *sysvinit|upstart|systemd|auto|none*]
+
+If the option :option:`--no-start-daemon` is given, the activation
+steps are performed but the OSD daemon is not started.
activate-journal
----------------
else:
raise Error('%s is not a directory or block device' % args.path)
- if args.mark_init == 'none':
+ if (not args.no_start_daemon and args.mark_init == 'none'):
command_check_call(
[
'ceph-osd',
],
)
- if args.mark_init not in (None, 'none' ):
+ if (not args.no_start_daemon and
+ args.mark_init not in (None, 'none' )):
start_daemon(
cluster=cluster,
default='auto',
choices=INIT_SYSTEMS,
)
+ activate_parser.add_argument(
+ '--no-start-daemon',
+ action='store_true', default=None,
+ help='do not start the daemon',
+ )
activate_parser.add_argument(
'path',
metavar='PATH',