N Neil Brown #
Message details and related content
On Tuesday June 24, jbuckingham@blueyonder.co.uk wrote:
Hi, I've rebuilt my server from scratch, and have 4 raided partitions. All went fine, however one of the partitions (a raid 5) only appears to be using 3 out of 4 disks. mdadm indicates that the unused disk is "spare rebuilding", but after tens of hours and a reboot it's status is unchanged. There is no significant activity by the relevant process (md3_raid5) - <1% cpu usage, the same as the other similar processes. I have tried removing the "spare" disk and re-adding it, but get... nas:~ # mdadm /dev/md3 --remove /dev/sdd4 mdadm: hot remove failed for /dev/sdd4: Device or resource busy nas:~ # mdadm /dev/md3 --add /dev/sdd4 mdadm: Cannot open /dev/sdd4: Device or resource busy There are no obvious errors from the boot log. Do you have any ideas how to get all 4 disks used, what the issue might be etc? Or am I just impatient?!
No, not impatient... Maybe a bug that has since been fixed. What happens if you echo sync > /sys/block/md3/md/sync_action ?? NeilBrown
Various logs etc appended.
Thanks
Jon B
----------------------------------
opensuse 10.3
nas:~ # uname -a
Linux nas 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC i686 athlon i386 GNU/Linux
nas:~ # rpm -qa | grep mdadm
mdadm-2.6.2-16
----------------------------------
nas:~ # cat /proc/mdstat
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4]
md3 : active raid5 sda4[0] sdd4[4] sdc4[2] sdb4[1]
576435840 blocks super 1.0 level 5, 128k chunk, algorithm 2 [4/3] [UUU_]
bitmap: 2/184 pages [8KB], 512KB chunk
md1 : active raid1 sda2[0] sdd2[3] sdc2[2] sdb2[1]
41945640 blocks super 1.0 [4/4] [UUUU]
bitmap: 0/161 pages [0KB], 128KB chunk
md0 : active raid1 sda1[0] sdd1[3] sdc1[2] sdb1[1]
10490340 blocks super 1.0 [4/4] [UUUU]
bitmap: 1/161 pages [4KB], 32KB chunk
md2 : active(auto-read-only) raid5 sda3[0] sdd3[4] sdc3[2] sdb3[1]
1590144 blocks super 1.0 level 5, 128k chunk, algorithm 2 [4/4] [UUUU]
bitmap: 0/9 pages [0KB], 32KB chunk
unused devices: <none>
----------------------------------
nas:~ # mdadm --detail /dev/md3
/dev/md3:
Version : 01.00.03
Creation Time : Mon Jun 23 22:03:45 2008