View previous topic :: View next topic |
Author |
Message |
humbletech99 Veteran
Joined: 26 May 2005 Posts: 1229 Location: London
|
Posted: Sun Apr 02, 2006 1:59 am Post subject: [SOLVED] Mdadm & /proc/mdstat give different info! |
|
|
I created a raid 5 using the mdadm across 4x160gb disks. When I did this I noticed that it said one disk failed and it was using the fourth as the hot spare and rebuilding the array with the fourth disk (I definitely only specified 4 disks). This seemed strange to me and I was told that this should be ok. So I let it build and then it was happy and I've been using this storage area for nearly a week. I was thinking of simulating a failure of one disk before becoming too dependent on it and so first checked the status of the array. It seems that mdadm and /proc/mdstat are giving different information and I'm confused....
cat /proc/mdstat
Code: | Personalities : [raid5]
read_ahead 1024 sectors
md0 : active raid5 ide/host2/bus0/target1/lun0/part1[3] ide/host2/bus0/target0/lun0/part1[2] ide/host0/bus0/target1/lun0/part1[1] ide/host0/bus0/target0/lun0/part1[0]
468864768 blocks level 5, 32k chunk, algorithm 2 [4/4] [UUUU]
unused devices: <none>
|
mdadm --detail /dev/md0
Code: | /dev/md0:
Version : 00.90.00
Creation Time : Tue Mar 28 13:37:55 2006
Raid Level : raid5
Array Size : 468864768 (447.14 GiB 480.12 GB)
Device Size : 156288256 (149.05 GiB 160.04 GB)
Raid Devices : 4
Total Devices : 5
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Tue Mar 28 16:34:28 2006
State : active
Active Devices : 4
Working Devices : 4
Failed Devices : 1
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 32K
UUID : b31e0b22:3aac0f42:f20a83ca:83361bf1
Events : 0.2
Number Major Minor RaidDevice State
0 3 1 0 active sync /dev/hda1
1 3 65 1 active sync /dev/hdb1
2 33 1 2 active sync /dev/hde1
3 33 65 3 active sync /dev/hdf1
|
mdadm seems to think that there were 5 devices and one failed, but proc thinks there are four and all working. Below is the original command I used to create the array (taken from my history):
Code: | mdadm -C /dev/md0 -l 5 -c 32 -n 4 -x 0 /dev/hd[abef]1 |
Can anybody explain this? _________________ The Human Equation:
value(geeks) > value(mundanes) |
|
Back to top |
|
|
humbletech99 Veteran
Joined: 26 May 2005 Posts: 1229 Location: London
|
Posted: Sun Apr 02, 2006 3:40 pm Post subject: |
|
|
I update the mdadm summaries and it's behaving itself now, it realised there was no faulty device and now the info tallies. On to my next problem... https://forums.gentoo.org/viewtopic-p-3226891.html#3226891 _________________ The Human Equation:
value(geeks) > value(mundanes) |
|
Back to top |
|
|
|