]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: implement 'activate-journal' 362/head
authorSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 22:54:58 +0000 (15:54 -0700)
committerSage Weil <sage@inktank.com>
Fri, 14 Jun 2013 01:01:43 +0000 (18:01 -0700)
commita2a78e8d16db0a71b13fc15457abc5fe0091c84c
treedcfc6b04dbea95eadcb8f8aabdbddb1389555424
parent8b3b59e01432090f7ae774e971862316203ade68
ceph-disk: implement 'activate-journal'

Activate an osd via its journal device.  udev populates its symlinks and
triggers events in an order that is not related to whether the device is
an osd data partition or a journal.  That means that triggering
'ceph-disk activate' can happen before the journal (or journal symlink)
is present and then fail.

Similarly, it may be that they are on different disks that are hotplugged
with the journal second.

This can be wired up to the journal partition type to ensure that osds are
started when the journal appears second.

Include the udev rules to trigger this.

Signed-off-by: Sage Weil <sage@inktank.com>
src/ceph-disk
udev/95-ceph-osd.rules