linux红帽没有mdadm,linux – 如何强制mdadm使用udev设备名称而不是/ dev / sdX

问题主要在于标题.

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:

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值