diff options
author | Gary Lowell <glowell@inktank.com> | 2013-04-11 09:42:13 -0700 |
---|---|---|
committer | Gary Lowell <glowell@inktank.com> | 2013-04-22 22:30:39 -0700 |
commit | 7ad63d23d74e5bc45c44a0192ab1f49ceb68ffa7 (patch) | |
tree | d3c83df909753c0c2033a2a78804c2ce4692ccba /udev | |
parent | 3dd9574bbf48fe21b193437177f608eb9ef8fda8 (diff) | |
download | ceph-7ad63d23d74e5bc45c44a0192ab1f49ceb68ffa7.tar.gz |
ceph-disk: OSD hotplug fixes for Centos
Two fixes for Centos 6.3 and other systems with udev versions
prior to 172. The disk peristant name using the GPT UUID does
not exist, so use the by_path persistent name instead for the
journal symlink.
The gpt label fields are not available for use in udev rules. Add
ceph-disk-udev wrapper script that extracts the partition
type guid from the label and calls ceph-disk-activate if it is
a ceph guid type. (Bug #4632)
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
Diffstat (limited to 'udev')
-rw-r--r-- | udev/95-ceph-osd-alt.rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/udev/95-ceph-osd-alt.rules b/udev/95-ceph-osd-alt.rules new file mode 100644 index 00000000000..702ceea5d39 --- /dev/null +++ b/udev/95-ceph-osd-alt.rules @@ -0,0 +1,5 @@ +# Check gpt partion for ceph tags and activate +ACTION=="add", SUBSYSTEM=="block", \ + ENV{DEVTYPE}=="partition", \ + ENV{ID_PART_TABLE_TYPE}=="gpt", \ + RUN+="/usr/sbin/ceph-disk-udev $number $name" |