1 # do not edit this file, it will be overwritten on update
3 SUBSYSTEM!="block", GOTO="clustermd_end"
6 KERNEL!="md*", GOTO="clustermd_end"
7 ENV{DEVTYPE}!="disk", GOTO="clustermd_end"
8 ACTION!="change", GOTO="clustermd_end"
9 ENV{EVENT}!="ADD_DEVICE", GOTO="clustermd_end"
10 ENV{DEVICE_UUID}!="?*", GOTO="clustermd_end"
11 ENV{RAID_DISK}!="?*", GOTO="clustermd_end"
13 # Based on the received UUID, node confirms the device if
14 # it is found by blkid, otherwise the node reports it is
16 PROGRAM="BINDIR/blkid -o device -t UUID_SUB=$env{DEVICE_UUID}", ENV{.md.newdevice} = "$result"
18 ENV{.md.newdevice}!="", RUN+="BINDIR/mdadm --manage $env{DEVNAME} --cluster-confirm $env{RAID_DISK}:$env{.md.newdevice}"
19 ENV{.md.newdevice}=="", RUN+="BINDIR/mdadm --manage $env{DEVNAME} --cluster-confirm $env{RAID_DISK}:missing"