Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

udev: always populate /dev/disk/by-parttypeuuid #9885

Merged
1 commit merged into from Jul 3, 2016
Merged

udev: always populate /dev/disk/by-parttypeuuid #9885

1 commit merged into from Jul 3, 2016

Conversation

ghost
Copy link

@ghost ghost commented Jun 23, 2016

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
9f77244. 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

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
9f77244. 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>
@ghost ghost added bug-fix core labels Jun 23, 2016
@ghost
Copy link
Author

ghost commented Jun 23, 2016

@aderumier does this look sensible to you ? I think it does since that's what you suggested in the first place. Only now I better understand why this is the right solution.

@aderumier
Copy link
Contributor

@dachary : I'll test it today or tomorrow. Look fine.

@sep76
Copy link

sep76 commented Jul 1, 2016

@dachary : worked on my debian jessie running jewel 10.2.2-1~bpo80+1 on backports kernel 4.6.0-0.bpo.1-amd64
all osd's start on reboot now. thanks :)

@aderumier
Copy link
Contributor

Sorry to be late, this is working fine for me too !

@ghost ghost merged commit b8a4ca7 into ceph:master Jul 3, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants