问题主要在于标题.
mdadm和/ proc / mdstat坚持用他们的“传统”/ dev / sdX名称列出md成员.
我想要的是让他们使用更新的udev设备名称(例如/ dev / disk / by-path和by-id).
我已经改变了/etc/mdadm/mdadm.conf
DEVICE partitions
至
DEVICE /dev/disk/by-path/*
但这似乎根本没有效果.
此外,使用旁路设备名称来终止阵列.
这是在Ubuntu 11.10上.
当前/ proc / mdstat:
~# cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md1 : active raid5 sdi[4] sde[2] sdh[1] sdd[0] 2929651200 blocks super 1.2 level 5,512k chunk,algorithm 2 [4/3] [UUU_] [=>...................] recovery = 7.0% (69242720/976550400) finish=632.8min speed=23893K/sec md0 : active raid5 sdb[0] sdg[4] sdc[2] sdf[1] 2197228032 blocks super 1.2 level 5,algorithm 2 [4/3] [UUU_] [===>.................] recovery = 19.8% (145510552/732409344) finish=242.7min speed=40288K/sec unused devices: <none>
ls -l / dev / disk / by-path:
~# ll /dev/disk/by-path/ total 0 lrwxrwxrwx 1 root root 9 2012-04-11 01:15 pci-0000:00:1f.1-scsi-0:0:0:0 -> ../../sr0 lrwxrwxrwx 1 root root 9 2012-04-11 01:15 pci-0000:00:1f.2-scsi-1:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 2012-04-11 01:15 pci-0000:00:1f.2-scsi-1:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 2012-04-11 01:15 pci-0000:00:1f.2-scsi-1:0:0:0-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 2012-04-11 01:19 pci-0000:0e:00.0-scsi-0:0:0:0 -> ../../sdb lrwxrwxrwx 1 root root 9 2012-04-11 01:19 pci-0000:0e:00.0-scsi-0:0:1:0 -> ../../sdc lrwxrwxrwx 1 root root 9 2012-04-11 01:15 pci-0000:0e:00.0-scsi-0:0:2:0 -> ../../sdd lrwxrwxrwx 1 root root 9 2012-04-11 01:26 pci-0000:0e:00.0-scsi-0:0:3:0 -> ../../sde lrwxrwxrwx 1 root root 9 2012-04-11 01:15 pci-0000:0e:00.0-scsi-0:0:4:0 -> ../../sdf lrwxrwxrwx 1 root root 9 2012-04-11 01:15 pci-0000:0e:00.0-scsi-0:0:5:0 -> ../../sdg lrwxrwxrwx 1 root root 9 2012-04-11 01:26 pci-0000:0e:00.0-scsi-0:0:6:0 -> ../../sdh lrwxrwxrwx 1 root root 9 2012-04-11 01:26 pci-0000:0e:00.0-scsi-0:0:7:0 -> ../../sdi