]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
udev: always populate /dev/disk/by-parttypeuuid
authorLoic Dachary <ldachary@redhat.com>
Thu, 23 Jun 2016 07:23:09 +0000 (09:23 +0200)
committerLoic Dachary <ldachary@redhat.com>
Wed, 10 Aug 2016 10:24:58 +0000 (12:24 +0200)
commit727a704e79995c8a74f2b5768c63e90eecf9a883
treee12c48f1b6330a157ef77a585a2911adcdb8d12b
parentaacb793948a69294e518f8458be6e670df23fe53
udev: always populate /dev/disk/by-parttypeuuid

ceph-disk activate-all walks /dev/disk/by-parttypeuuid at boot time. It
is not necessary when udev fires ADD event for each partition and
95-ceph-osd.rules gets a chance to activate a ceph disk or journal.

There are various reasons why udev ADD events may not be fired at
boot (for instance Debian Jessi 8.5 never does it and CentOS 7.2 seems
to be racy in that regard when a LVM root is being used).

Populating /dev/disk/by-parttypeuuid fixes ceph-disk activate-all that
would not work without it. And it guarantees disks are activated at boot
time regardless of wether udev fires ADD events at the right time (or at
all).

The new udev file is a partial resurection of the
60-ceph-partuuid-workaround-rules that was removed by
9f77244b8e0782921663e52005b725cca58a8753. It is given a name that
reflects its new purpose.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit 35004a628b2969d8b2f1c02155bb235165a1d809)
Makefile.am
ceph.spec.in
debian/ceph-osd.install
debian/rules
udev/60-ceph-by-parttypeuuid.rules [new file with mode: 0644]