ceph-disk-prepare: align mkfs, mount config options with mkcephfs

'osd mkfs ...', not 'osd fs mkfs ...'.  Sigh.  Support both.

Signed-off-by: Sage Weil <sage@inktank.com>
init-ceph: consider sysvinit-tagged dirs as local

If there is a 'sysvinit' file in the daemon directory in the default
location (/var/lib/ceph/$type/ceph-$id), consider it sysvinit-managed.

Signed-off-by: Sage Weil <sage@inktank.com>
init-ceph: iterate/locate local sysvinit-tagged directories

Search /var/lib/ceph/$type/ceph-$id and start/stop those daemons if
present and tagged with the sysvinit file.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: factor mounting out of activate

The activate stuff is generic for any OSD, regardless of whether we want
to mount it or not.  Pull that part out.

Signed-off-by: Sage Weil <sage@inktank.com>
upstart/ceph-hotplug: drop -- in ceph-disk-activate args

We would like to transition to

 ceph-disk-activate --mount DEV

and away from a generic multi-definition PATH argument.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: some verbosity

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-dir-prepare: mark a dir as consumable by a ceph OSD

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-prepare: more verbose, cleanup

Signed-off-by: Sage Weil <sage@inktank.com>
upstart/ceph-hotplug: tell activate to start via upstart

This will mark the OSD data dir as upstart-managed.

Signed-off-by: Sage Weil <sage@inktank.com>
upstart: ceph-hotplug -> ceph-osd-activate

This is a more meaningful name.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: add --mark-init INITSYSTEM option

Do not assume we will manage via upstart; let that be passed down via the
command line.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: add --dir DIR option

Instantiate and symlink a dir into place.

Signed-off-by: Sage Weil <sage@inktank.com>
init-ceph: fix local vs conf iteration

Populate $local only if get_local_name_list() is called.  init-ceph does
this, but mkcephfs does not, which is good.

Fix the behavior when a type or name is passed as an argument so that both
the conf and local daemons are checked.

Signed-off-by: Sage Weil <sage@inktank.com>
debian: implement purge postrm script for ceph, ceph-mds

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-prepare: add (more thorough) --zap-disk option

Still called implicitly by prepare()... we may want to change that.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-prepare: allow a prepare on a dir

If we get passed a dir, prepare it, and skip all the device nonsense.

FIXME: maybe should still create a journal?

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-active: fix --dir DIR behavior

Various typos.  Safely update the symlink.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-prepare: handle any combination of file/partition/blkdev for data/journal

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: remove in-the-way symlinks in /var/lib/ceph/osd

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: be marginally more helpful

Either --dir or --mount is required.

Signed-off-by: Sage Weil <sage@inktank.com>