retitle 495580 Kernel doesn't start a resync after adding a disk.
thanks
Am Dienstag, den 19.08.2008, 20:28 +0200 schrieb martin f krafft:
> I don't follow you, sorry. If you want, you can try to restate your
> case in German.
Thank you very much. You got me now on the right track.
Sorry for the confusion, I really have to work on this.
I wanted to report a bug with the 2.6.27-rc3 kernel.
The current Debian sid kernel 2.6.26-2 does sync the disks if I add
them.
I tried now even the newer 2.6.27-rc3-git6 out, because it has a few MD
changes.
That one adds the disks only as `spare' but does not start a resync.
I don't know if and how you want to handle this.
Probable this has been already noticed upstream, but I failed to find
this out.
So please feel free to just close it.
Linux fz-vm 2.6.26-1-amd64 #1 SMP Fri Aug 8 13:17:41 UTC 2008 x86_64
fz-rescue:/etc# cat /proc/mdstat
Personalities : [raid10]
md0 : active (auto-read-only) raid10 sdc1[0] sdf1[3] sde1[2] sdd1[1]
16771584 blocks 64K chunks 2 near-copies [4/4] [UUUU]
fz-rescue:/etc# mdadm -f /dev/md0 /dev/sdc1
mdadm: set /dev/sdc1 faulty in /dev/md0
fz-rescue:/etc# mdadm -r /dev/md0 /dev/sdc1
mdadm: hot removed /dev/sdc1
fz-rescue:/etc# mdadm -a /dev/md0 /dev/sdc1
mdadm: re-added /dev/sdc1
fz-rescue:/etc# mdadm -Q --detail /dev/md0
/dev/md0:
Version : 00.90
Creation Time : Wed Aug 20 09:12:05 2008
Raid Level : raid10
Array Size : 16771584 (15.99 GiB 17.17 GB)
Used Dev Size : 8385792 (8.00 GiB 8.59 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Aug 20 09:31:33 2008
State : clean, degraded, recovering
Active Devices : 3
Working Devices : 4
Failed Devices : 0
Spare Devices : 1
Layout : near=2, far=1
Chunk Size : 64K
Rebuild Status : 14% complete
UUID : 52bc96be:8daa6302:b2ae9613:7c966e04
Events : 0.10
Number Major Minor RaidDevice State
4 8 33 0 spare rebuilding /dev/sdc1
1 8 49 1 active sync /dev/sdd1
2 8 65 2 active sync /dev/sde1
3 8 81 3 active sync /dev/sdf1
fz-rescue:/etc# cat /proc/mdstat
Personalities : [raid10]
md0 : active raid10 sdc1[4] sdf1[3] sde1[2] sdd1[1]
16771584 blocks 64K chunks 2 near-copies [4/3] [_UUU]
[====>................] recovery = 20.5% (1728000/8385792) finish=1.2min speed=90947K/sec
unused devices: <none>
Linux fz-vm 2.6.27-rc3-git6 #2 SMP Tue Aug 19 22:31:51 CEST 2008 x86_64
fz-vm:~# mdadm -f /dev/md0 /dev/sdc1
mdadm: set /dev/sdc1 faulty in /dev/md0
fz-vm:~# mdadm -r /dev/md0 /dev/sdc1
mdadm: hot removed /dev/sdc1
fz-vm:~# mdadm -a /dev/md0 /dev/sdc1
mdadm: re-added /dev/sdc1
fz-vm:~# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md0 : active raid10 sdc1[4](S) sdf1[3] sde1[2] sdd1[1]
16771584 blocks 64K chunks 2 near-copies [4/3] [_UUU]
unused devices: <none>
fz-vm:~# mdadm -Q --detail /dev/md0
/dev/md0:
Version : 00.90
Creation Time : Wed Aug 20 09:03:27 2008
Raid Level : raid10
Array Size : 16771584 (15.99 GiB 17.17 GB)
Used Dev Size : 8385792 (8.00 GiB 8.59 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Aug 20 09:07:32 2008
State : clean, degraded
Active Devices : 3
Working Devices : 4
Failed Devices : 0
Spare Devices : 1
Layout : near=2, far=1
Chunk Size : 64K
UUID : 04e72c15:980e57a0:89ccbef7:ff5abfb0 (local to host fz-vm)
Events : 0.10
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 49 1 active sync /dev/sdd1
2 8 65 2 active sync /dev/sde1
3 8 81 3 active sync /dev/sdf1
4 8 33 - spare /dev/sdc1
fz-vm:~# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md0 : active raid10 sdd1[4](S) sdc1[5](S) sdf1[3] sde1[2]
16771584 blocks 64K chunks 2 near-copies [4/2] [__UU]
unused devices: <none>
fz-vm:~# mdadm -Q --detail /dev/md0
/dev/md0:
Version : 00.90
Creation Time : Wed Aug 20 09:03:27 2008
Raid Level : raid10
Array Size : 16771584 (15.99 GiB 17.17 GB)
Used Dev Size : 8385792 (8.00 GiB 8.59 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Aug 20 09:08:13 2008
State : clean, degraded
Active Devices : 2
Working Devices : 4
Failed Devices : 0
Spare Devices : 2
Layout : near=2, far=1
Chunk Size : 64K
UUID : 04e72c15:980e57a0:89ccbef7:ff5abfb0 (local to host fz-vm)
Events : 0.18
Number Major Minor RaidDevice State
0 0 0 0 removed
1 0 0 1 removed
2 8 65 2 active sync /dev/sde1
3 8 81 3 active sync /dev/sdf1
4 8 49 - spare /dev/sdd1
5 8 33 - spare /dev/sdc1