ceph/systemd
Loic Dachary d954de5546 ceph-disk: systemd unit must run after local-fs.target
A ceph udev action may be triggered before the local file systems are
mounted because there is no ordering in udev. The ceph udev action
delegates asynchronously to systemd via ceph-disk@.service which will
fail if (for instance) the LVM partition required to mount /var/lib/ceph
is not available yet. The systemd unit will retry a few times but will
eventually fail permanently. The sysadmin can systemctl reset-fail at a
later time and it will succeed.

Add a dependency to ceph-disk@.service so that it waits until the local
file systems are mounted:

After=local-fs.target

Since local-fs.target depends on lvm, it will wait until the lvm
partition (as well as any dm devices) is ready and mounted before
attempting to activate the OSD. It may still fail because the
corresponding journal/data partition is not ready yet (which is
expected) but it will no longer fail because the lvm/filesystems/dm are
not ready.

Fixes: http://tracker.ceph.com/issues/17889

Signed-off-by: Loic Dachary <loic@dachary.org>
2016-11-22 15:23:47 +01:00
..
50-ceph.preset systemd: add ceph-mgr service and target files 2016-09-29 17:27:08 +01:00
ceph
ceph-disk@.service ceph-disk: systemd unit must run after local-fs.target 2016-11-22 15:23:47 +01:00
ceph-mds.target
ceph-mds@.service
ceph-mgr.target systemd: add ceph-mgr service and target files 2016-09-29 17:27:08 +01:00
ceph-mgr@.service systemd: autogenerate ceph-mgr key during daemon startup 2016-09-29 17:27:08 +01:00
ceph-mon.target
ceph-mon@.service systemd/ceph-mon@.service:Remove ceph-create-keys for mon in systemd 2016-11-04 23:05:26 +01:00
ceph-osd.target
ceph-osd@.service
ceph-radosgw.target
ceph-radosgw@.service
ceph-rbd-mirror.target
ceph-rbd-mirror@.service
ceph.target
ceph.tmpfiles.d
CMakeLists.txt systemd/CMakeLists.txt:Remove ceph-create-keys cmake 2016-11-04 23:05:44 +01:00
rbdmap.service Add Install section to systemd rbdmap.service file 2016-09-01 00:42:34 +02:00