mdadm/mdadm.rules
Doug Ledford e4f4111870 - Slightly tweak the udev rules to make sure we don't start arrays while
running in rc.sysinit...leave array starting to it instead
- Modify mdadm to put its mapfile in /dev/md instead of /var/run/mdadm
    since at startup /var/run/mdadm is read-only by default and this breaks
    incremental assembly
- Change how mdadm decides to assemble incremental devices using their
    preferred name or a random name to avoid possible conflicts when
    plugging a foreign array into a host
2009-03-20 21:13:38 +00:00

9 lines
350 B
Plaintext

# This file causes block devices with Linux RAID (mdadm) signatures to
# automatically cause mdadm to be run.
# See udev(8) for syntax
SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="linux_raid_member", \
IMPORT{program}="/sbin/mdadm --examine --export $tempnode", \
RUN+="/bin/bash -c '[ ! -f /dev/.in_sysinit ] && mdadm -I $env{DEVNAME}'"