我应该信任谁来填写我的 /etc/mdadm/mdadm.conf ?
mdadm --examine --scan
返回/dev/md/0
,而显然它/dev/md0
目前正在重建
我应该在 /etc/mdadm/mdadm.conf 中放什么?
ARRAY /dev/md0 metadata=1.2 UUID=e7c87d29:37d0d6b4:9a336d4f:0e239a13 name=bigbenn:0
或者
ARRAY /dev/md/0 metadata=1.2 UUID=e7c87d29:37d0d6b4:9a336d4f:0e239a13 name=bigbenn:0
➜ ~ sudo mdadm --detail /dev/md0
[sudo] password for lotso:
/dev/md0:
Version : 1.2
Creation Time : Tue Nov 6 15:41:25 2012
Raid Level : raid5
Array Size : 7813527552 (7451.56 GiB 8001.05 GB)
Used Dev Size : 1953381888 (1862.89 GiB 2000.26 GB)
Raid Devices : 5
Total Devices : 5
Persistence : Superblock is persistent
Update Time : Sun Dec 14 22:05:35 2014
State : clean, degraded, recovering
Active Devices : 4
Working Devices : 5
Failed Devices : 0
Spare Devices : 1
Layout : left-symmetric
Chunk Size : 512K
Rebuild Status : 84% complete
Name : bigbenn:0 (local to host bigbenn)
UUID : e7c87d29:37d0d6b4:9a336d4f:0e239a13
Events : 188171
Number Major Minor RaidDevice State
6 8 33 0 spare rebuilding /dev/sdc1
7 8 81 1 active sync /dev/sdf1
5 8 97 2 active sync /dev/sdg1
4 8 1 3 active sync /dev/sda1
8 8 49 4 active sync /dev/sdd1
➜ ~ sudo mdadm --examine --scan
ARRAY /dev/md/0 metadata=1.2 UUID=e7c87d29:37d0d6b4:9a336d4f:0e239a13 name=bigbenn:0
答案1
$ ls -l /dev/md
total 0
lrwxrwxrwx 1 root root 6 Apr 5 2014 0 -> ../md0
lrwxrwxrwx 1 root root 6 Apr 5 2014 1 -> ../md1
lrwxrwxrwx 1 root root 6 Aug 11 14:20 2 -> ../md2
如您所见,该/dev/md/0
条目只是一个符号链接/dev/md0
。
看来mdadm
软件更喜欢这种/dev/md/0
形式,所以我会选择它。两种方式都应该可以。