Linux RAID subsystem development
 help / color / mirror / Atom feed
* ISW fakeraid: fail to add back a disk previously removed
@ 2013-10-23  9:24 Francis Moreau
  2013-10-28  6:18 ` Francis Moreau
  0 siblings, 1 reply; 9+ messages in thread
From: Francis Moreau @ 2013-10-23  9:24 UTC (permalink / raw)
  To: linux-raid

Hello,

I'm testing ISW fake-raid with mdadm 3.3 and I can't add back a disk
to a container previously marked as failed and removed.

Also I'm testing ISW inside a VM so I'm not sure my test case is valid.

So basically my ISW array was created with dmraid. I then installed my
system on this array and rebooted to switch to mdadm. So far so good
everything seems to work perfectly:

# export IMSM_NO_PLATFORM=1

# cat /proc/mdstat
Personalities : [raid1]
md126 : active raid1 sda[1] sdb[0]
      2092375 blocks super external:/md127/0 [2/2] [UU]

md127 : inactive sda[1](S) sdb[0](S)
      6306 blocks super external:imsm

unused devices: <none>

# mdadm -E /dev/sdb
/dev/sdb:
          Magic : Intel Raid ISM Cfg Sig.
        Version : 1.1.00
    Orig Family : ef92cdd9
[ ... ]

Now I'm marking sda as failed and remove it:

# mdadm --fail /dev/md126 sda
# mdadm --remove /dev/md127 sda

everything works fine until I add back sda to the container:

# mdadm --add /dev/md127 /dev/sda
mdadm: add /dev/sda

# cat /proc/mdstat
Personalities : [raid1]
md126 : active raid1 sdb[0]
      2092375 blocks super external:/md127/0 [2/1] [_U]

md127 : inactive sda[1](S) sdb[0](S)
      6306 blocks super external:imsm

sda is not added anymore to the array md126 and therefore no resynchro happens.

# mdadm -E /dev/sda
/dev/sda:
   MBR Magic : aa55
Partition[0] :      3612577 sectors at         2048 (type 83)
Partition[1] :       560133 sectors at      3616767 (type 05)

Could anybody tell me if that's expected and if so could you englight me ?

Thanks.
-- 
Francis

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-11-10  7:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-23  9:24 ISW fakeraid: fail to add back a disk previously removed Francis Moreau
2013-10-28  6:18 ` Francis Moreau
2013-11-06  9:06   ` Francis Moreau
2013-11-06 14:08     ` Dorau, Lukasz
2013-11-08 13:45       ` Francis Moreau
2013-11-08 14:33         ` Dorau, Lukasz
2013-11-08 21:16           ` NeilBrown
2013-11-08 22:02         ` Dan Williams
2013-11-10  7:36           ` Francis Moreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox