1 |
# /etc/udev/rules/64-md-raid.rules: device naming rules for udev |
# /etc/udev/rules/64-md-raid.rules: device naming rules for udev |
2 |
# $Header: /root/magellan-cvs/src/udev/udev-md-raid.rules.magellan,v 1.1 2008-03-22 18:13:36 niro Exp $ |
# $Header: /root/magellan-cvs/src/udev/udev-md-raid.rules.magellan,v 1.2 2008-12-22 18:56:05 niro Exp $ |
3 |
# |
# |
4 |
# There are a number of modifiers that are allowed to be used in some |
# There are a number of modifiers that are allowed to be used in some |
5 |
# of the different fields. They provide the following subsitutions: |
# of the different fields. They provide the following subsitutions: |
19 |
# |
# |
20 |
|
|
21 |
SUBSYSTEM!="block", GOTO="md_end" |
SUBSYSTEM!="block", GOTO="md_end" |
|
KERNEL!="md[0-9]*", GOTO="md_end" |
|
22 |
ACTION!="add|change", GOTO="md_end" |
ACTION!="add|change", GOTO="md_end" |
23 |
|
|
24 |
|
# import data from a raid member and activate it |
25 |
|
#ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm --examine --export $tempnode", RUN+="/sbin/mdadm --incremental $env{DEVNAME}" |
26 |
|
# import data from a raid set |
27 |
|
KERNEL!="md*", GOTO="md_end" |
28 |
|
|
29 |
ATTR{md/array_state}=="|clear|inactive", GOTO="md_end" |
ATTR{md/array_state}=="|clear|inactive", GOTO="md_end" |
30 |
|
|
31 |
IMPORT{program}="/sbin/mdadm --detail --export $tempnode" |
IMPORT{program}="/sbin/mdadm --detail --export $tempnode" |