PATH:
usr
/
lib
/
udev
/
rules.d
# This file causes block devices with Linux RAID (mdadm) signatures to # automatically cause mdadm to be run. # See udev(8) for syntax # Don't process any events if anaconda is running as anaconda brings up # raid devices manually ENV{ANACONDA}=="?*", GOTO="md_end" # Also don't process disks that are slated to be a multipath device ENV{DM_MULTIPATH_DEVICE_PATH}=="?*", GOTO="md_end" # We process add events on block devices (since they are ready as soon as # they are added to the system), but we must process change events as well # on any dm devices (like LUKS partitions or LVM logical volumes) and on # md devices because both of these first get added, then get brought live # and trigger a change event. The reason we don't process change events # on bare hard disks is because if you stop all arrays on a disk, then # run fdisk on the disk to change the partitions, when fdisk exits it # triggers a change event, and we want to wait until all the fdisks on # all member disks are done before we do anything. Unfortunately, we have # no way of knowing that, so we just have to let those arrays be brought # up manually after fdisk has been run on all of the disks. # First, process all add events (md and dm devices will not really do # anything here, just regular disks, and this also won't get any imsm # array members either) SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="linux_raid_member", \ IMPORT{program}="/sbin/mdadm -I $env{DEVNAME} --export $devnode --offroot ${DEVLINKS}" SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="linux_raid_member", \ ENV{MD_STARTED}=="*unsafe*", ENV{MD_FOREIGN}=="no", ENV{SYSTEMD_WANTS}+="mdadm-last-resort@$env{MD_DEVICE}.timer" # Next, check to make sure the BIOS raid stuff wasn't turned off via cmdline IMPORT{cmdline}="noiswmd" IMPORT{cmdline}="nodmraid" ENV{noiswmd}=="?*", GOTO="md_imsm_inc_end" ENV{nodmraid}=="?*", GOTO="md_imsm_inc_end" SUBSYSTEM=="block", ACTION=="add", ENV{ID_FS_TYPE}=="isw_raid_member", \ RUN+="/sbin/mdadm -I $env{DEVNAME}" LABEL="md_imsm_inc_end" SUBSYSTEM=="block", ACTION=="remove", ENV{ID_PATH}=="?*", \ RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}" SUBSYSTEM=="block", ACTION=="remove", ENV{ID_PATH}!="?*", \ RUN+="/sbin/mdadm -If $name" # Next make sure that this isn't a dm device we should skip for some reason ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="dm_change_end" ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="dm_change_end" ENV{DM_SUSPENDED}=="1", GOTO="dm_change_end" KERNEL=="dm-*", SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="linux_raid_member", \ ACTION=="change", RUN+="/sbin/mdadm -I $env{DEVNAME}" LABEL="dm_change_end" # Finally catch any nested md raid arrays. If we brought up an md raid # array that's part of another md raid array, it won't be ready to be used # until the change event that occurs when it becomes live KERNEL=="md*", SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="linux_raid_member", \ ACTION=="change", RUN+="/sbin/mdadm -I $env{DEVNAME}" LABEL="md_end"
[+]
..
[-] 60-raw.rules
[edit]
[-] 10-dm.rules
[edit]
[-] 13-dm-disk.rules
[edit]
[-] 95-dm-notify.rules
[edit]
[-] 40-redhat.rules
[edit]
[-] 42-usb-hid-pm.rules
[edit]
[-] 85-nm-unmanaged.rules
[edit]
[-] 50-udev-default.rules
[edit]
[-] 60-alias-kmsg.rules
[edit]
[-] 60-cdrom_id.rules
[edit]
[-] 60-drm.rules
[edit]
[-] 60-evdev.rules
[edit]
[-] 60-keyboard.rules
[edit]
[-] 90-alsa-tools-firmware.rules
[edit]
[-] 60-persistent-alsa.rules
[edit]
[-] 60-fprint-autosuspend.rules
[edit]
[-] 60-persistent-input.rules
[edit]
[-] 70-hypervvss.rules
[edit]
[-] 60-persistent-serial.rules
[edit]
[-] 90-iprutils.rules
[edit]
[-] 60-persistent-storage-tape.rules
[edit]
[-] 70-hypervkvp.rules
[edit]
[-] 60-persistent-storage.rules
[edit]
[-] 70-hypervfcopy.rules
[edit]
[-] 60-persistent-v4l.rules
[edit]
[-] 64-btrfs-dm.rules
[edit]
[-] 61-accelerometer.rules
[edit]
[-] 64-btrfs.rules
[edit]
[-] 70-mouse.rules
[edit]
[-] 90-nm-thunderbolt.rules
[edit]
[-] 70-power-switch.rules
[edit]
[-] 70-touchpad.rules
[edit]
[-] 70-uaccess.rules
[edit]
[-] 71-seat.rules
[edit]
[-] 73-idrac.rules
[edit]
[-] 73-seat-late.rules
[edit]
[-] 69-md-clustered-confirm-device.rules
[edit]
[-] 75-net-description.rules
[edit]
[-] 75-probe_mtd.rules
[edit]
[-] 63-fc-wwpn-id.rules
[edit]
[-] 75-tty-description.rules
[edit]
[-] 76-phys-port-name.rules
[edit]
[-] 78-sound-card.rules
[edit]
[-] 80-drivers.rules
[edit]
[-] 80-net-name-slot.rules
[edit]
[-] 80-net-setup-link.rules
[edit]
[-] 90-vconsole.rules
[edit]
[-] 95-udev-late.rules
[edit]
[-] 99-systemd.rules
[edit]
[-] 60-net.rules
[edit]
[-] 81-kvm-rhel.rules
[edit]
[-] 98-kexec.rules
[edit]
[-] 11-dm-lvm.rules
[edit]
[-] 69-dm-lvm-metad.rules
[edit]
[-] 40-usb_modeswitch.rules
[edit]
[-] 91-drm-modeset.rules
[edit]
[-] 84-nm-drivers.rules
[edit]
[-] 71-biosdevname.rules
[edit]
[-] 85-regulatory.rules
[edit]
[-] 01-md-raid-creating.rules
[edit]
[-] 63-md-raid-arrays.rules
[edit]
[-] 65-md-incremental.rules
[edit]
[-] 40-redhat-disable-dell-ir-camera.rules
[edit]
[-] 40-redhat-disable-lenovo-ir-camera.rules
[edit]