Automatically scan and activate physical volumes when added at runtime. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 lines
180 B
Text
6 lines
180 B
Text
|
|
[ "$ACTION" = "add" ] || return 0
|
|
[ -e "/dev/$DEVNAME" ] || return 0
|
|
|
|
/sbin/lvm vgscan --mknodes --devices /dev/$DEVNAME || :
|
|
/sbin/lvm vgchange -aly --devices /dev/$DEVNAME || :
|