# 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" ACTION=="change", KERNEL=="dm-*", GOTO="lvm_work" ACTION=="change", KERNEL=="loop*", GOTO="lvm_work" GOTO="lvm_end" LABEL="lvm_work" 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}" ENV{DMDEPS}=="0", GOTO="lvm_end" IMPORT{PROGRAM}="collect_lvm $tempnode" ENV{VGUUID}!="?*", GOTO="lvm_end" ENV{VGNAME}!="?*", GOTO="lvm_end" ENV{VGUUID}=="?*", SYMLINK+="disk/by-id/lvm2-vgpv-$env{VGUUID}-$env{ID_FS_UUID_ENC}" # If all related PV's available already, active all LVs inside. ENV{COLLECT}=="0", RUN+="/lib/udev/activate_vg $env{VGUUID} $env{VGNAME}" LABEL="lvm_end"