Bug#705454: mdadm: --examine --scan generates wrong #spares

Thorsten Glaser t.glaser at tarent.de
Tue Apr 30 13:42:34 UTC 2013


reassign 705454 mdadm
found 705454 3.2.5-5
retitle 705454 mdadm: --examine --scan generates wrong #spares
thanks

I can reproduce this in a "live" sid system by creating
the md arrays then running this command:

root at tglase:/ # mdadm --examine --scan
ARRAY /dev/md0 UUID=b4a6dcca:639ab49e:3cbfd189:3a086020
   spares=1
ARRAY /dev/md1 UUID=b1518a63:e8fe3e9f:3cbfd189:3a086020
   spares=2
root at tglase:/ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md1 : active raid10 sdf2[4](S) sde2[3] sdd2[2] sdc2[1] sda2[0]
      975721472 blocks 512K chunks 2 near-copies [4/4] [UUUU]

md0 : active raid1 sdf1[4](S) sde1[3] sdd1[2] sdc1[1] sda1[0]
      524224 blocks [4/4] [UUUU]

unused devices: <none>

I assume that between the mds an internal counter
is not changed, or something.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-314
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Boris Esser, Sebastian Mancke



More information about the pkg-mdadm-devel mailing list