[ceph-osd] Fix ceph osd init script to handle udev
This is to fix udev_settle function by adding timeout for blkid command as it will get stuck on the host sometimes. Change-Id: I378748991eecda9ea2af383ea04ecd97ab3d2948
This commit is contained in:
parent
8673bdda53
commit
b5789283dd
@ -164,7 +164,7 @@ function udev_settle {
|
|||||||
|
|
||||||
# On occassion udev may not make the correct device symlinks for Ceph, just in case we make them manually
|
# On occassion udev may not make the correct device symlinks for Ceph, just in case we make them manually
|
||||||
mkdir -p /dev/disk/by-partuuid
|
mkdir -p /dev/disk/by-partuuid
|
||||||
for dev in $(blkid -o device | grep -v block); do
|
for dev in $(timeout 60 blkid -o device | grep -Ev 'block|rbd'); do
|
||||||
ln -s "../../$(echo ${dev} | awk -F '/' '{print $3}')" "/dev/disk/by-partuuid/$(blkid -o value -s PARTUUID ${dev})" || true
|
ln -s "../../$(echo ${dev} | awk -F '/' '{print $3}')" "/dev/disk/by-partuuid/$(blkid -o value -s PARTUUID ${dev})" || true
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user