2008-09-13 05:05:30 +02:00
|
|
|
# This file causes block devices with LVM signatures to be automatically
|
|
|
|
# added to their volume group.
|
|
|
|
# See udev(8) for syntax
|
|
|
|
|
|
|
|
SUBSYSTEM!="block", GOTO="lvm_end"
|
|
|
|
ACTION!="add|change", GOTO="lvm_end"
|
|
|
|
|
|
|
|
ENV{ID_FS_TYPE}!="LVM2_member", GOTO="lvm_end"
|
|
|
|
|
|
|
|
ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-id/lvm2-pvuuid-$env{ID_FS_UUID_ENC}"
|
|
|
|
|
2009-05-15 22:00:20 +02:00
|
|
|
ENV{DMDEPS}=="0", GOTO="lvm_end"
|
|
|
|
|
2008-09-13 05:05:30 +02:00
|
|
|
IMPORT{PROGRAM}="collect_lvm $tempnode"
|
|
|
|
|
|
|
|
ENV{VGUUID}!="?*", GOTO="lvm_end"
|
|
|
|
|
|
|
|
ENV{VGNAME}!="?*", GOTO="lvm_end"
|
|
|
|
|
|
|
|
# If all related PV's available already, active all LVs inside.
|
|
|
|
ENV{COLLECT}=="0", RUN+="/sbin/vgchange -a y $env{VGNAME}"
|
|
|
|
|
|
|
|
LABEL="lvm_end"
|