]>
Commit | Line | Data |
---|---|---|
0e23c597 GJ |
1 | # do not edit this file, it will be overwritten on update |
2 | ||
3 | SUBSYSTEM!="block", GOTO="clustermd_end" | |
4 | ||
5 | # handle md arrays | |
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" | |
12 | ||
13 | # Based on the received UUID, node confirms the device if | |
14 | # it is found by blkid, otherwise the node reports it is | |
15 | # missing. | |
16 | PROGRAM="BINDIR/blkid -o device -t UUID_SUB=$env{DEVICE_UUID}", ENV{.md.newdevice} = "$result" | |
17 | ||
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" | |
20 | ||
21 | LABEL="clustermd_end" |