2009-03-18 18:55:49 +00:00
|
|
|
# This file causes block devices with Linux RAID (mdadm) signatures to
|
|
|
|
# automatically cause mdadm to be run.
|
|
|
|
# See udev(8) for syntax
|
|
|
|
|
2010-04-13 23:24:07 +00:00
|
|
|
ENV{ANACONDA}=="?*", GOTO="md_imsm_inc_end"
|
2009-03-18 18:55:49 +00:00
|
|
|
SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="linux_raid_member", \
|
2011-03-25 21:05:48 +00:00
|
|
|
RUN+="/sbin/mdadm -I $env{DEVNAME}"
|
2010-04-06 16:32:12 +00:00
|
|
|
SUBSYSTEM=="block", ACTION=="remove", ENV{ID_FS_TYPE}=="linux_raid_member", \
|
2011-03-25 21:05:48 +00:00
|
|
|
RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
|
2009-03-18 18:55:49 +00:00
|
|
|
|
2011-03-25 21:05:48 +00:00
|
|
|
IMPORT{cmdline}="noiswmd"
|
|
|
|
IMPORT{cmdline}="nodmraid"
|
2010-08-04 15:23:45 +00:00
|
|
|
ENV{noiswmd}=="?*", GOTO="md_imsm_inc_end"
|
2011-03-25 21:05:48 +00:00
|
|
|
ENV{nodmraid}=="?*", GOTO="md_imsm_inc_end"
|
|
|
|
|
2010-04-07 14:51:17 +00:00
|
|
|
# In case the initramfs only started some of the arrays in our container,
|
|
|
|
# run incremental assembly on the container itself. Note: we ran mdadm
|
|
|
|
# on the container in 64-md-raid.rules, and that's how the MD_LEVEL
|
|
|
|
# environment variable is already set. If that disappears from the other
|
|
|
|
# file, we will need to add this line into the middle of the next rule:
|
|
|
|
# IMPORT{program}="/sbin/mdadm -D --export $tempnode", \
|
|
|
|
|
2010-04-08 16:55:45 +00:00
|
|
|
SUBSYSTEM=="block", ACTION=="add", KERNEL=="md*", \
|
2011-03-25 21:05:48 +00:00
|
|
|
ENV{MD_LEVEL}=="container", RUN+="/sbin/mdadm -I $env{DEVNAME}"
|
2010-04-07 14:51:17 +00:00
|
|
|
|
2010-04-07 00:17:01 +00:00
|
|
|
SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="isw_raid_member", \
|
2011-03-25 21:05:48 +00:00
|
|
|
RUN+="/sbin/mdadm -I $env{DEVNAME}"
|
2010-04-07 00:17:01 +00:00
|
|
|
SUBSYSTEM=="block", ACTION=="remove", ENV{ID_FS_TYPE}=="isw_raid_member", \
|
2011-03-25 21:05:48 +00:00
|
|
|
RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
|
2010-04-06 21:59:00 +00:00
|
|
|
LABEL="md_imsm_inc_end"
|
|
|
|
|