linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Help with raid1 to raid5 reshape after crash
@ 2014-10-24 23:38 shane-kernel
  2014-10-28 22:24 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: shane-kernel @ 2014-10-24 23:38 UTC (permalink / raw)
  To: linux-raid

Hello all,

I was converting from a 2 disk raid1 array to a 4 disk raid5 (3+1s) in preparation to convert to a four disk raid6. I added the two additional component devices and did a:
Mdadm --grow /dev/md1 --level 5 --raid-devices 3
And off it went. I had a power failure a good ways in and now when the system boots, it runs the array, attempts to restart the reshape then disk IO locks up hard.

I figure it is disk IO rather than a complete system lockup as I have about 10 seconds of interactive shell before it locks. If I enter a dmesg command then that command will succeed. After the lockup, subsequent dmesg commands succeed (dmesg is in cache) but another command such as ls will lock up. Cat /proc/mdstat shows the reshape in progress but it doesn't actually progress beyond the point at which the system locks.

Booting from a USB stick, I tried:
Mdadm --assemble --readonly
But that too hangs the system.

Do I have any recourse beyond just recreating the array and restoring from backup? Kernel is 3.16.

Thanks,
Shane


Mdadm -D



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

* Re: Help with raid1 to raid5 reshape after crash
  2014-10-24 23:38 Help with raid1 to raid5 reshape after crash shane-kernel
@ 2014-10-28 22:24 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2014-10-28 22:24 UTC (permalink / raw)
  To: shane-kernel; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]

On Fri, 24 Oct 2014 16:38:40 -0700 <shane-kernel@csy.ca> wrote:

> Hello all,
> 
> I was converting from a 2 disk raid1 array to a 4 disk raid5 (3+1s) in preparation to convert to a four disk raid6. I added the two additional component devices and did a:
> Mdadm --grow /dev/md1 --level 5 --raid-devices 3

I guess you mean "to a 3 disk raid5 (2+1s)" ...


> And off it went. I had a power failure a good ways in and now when the system boots, it runs the array, attempts to restart the reshape then disk IO locks up hard.
> 
> I figure it is disk IO rather than a complete system lockup as I have about 10 seconds of interactive shell before it locks. If I enter a dmesg command then that command will succeed. After the lockup, subsequent dmesg commands succeed (dmesg is in cache) but another command such as ls will lock up. Cat /proc/mdstat shows the reshape in progress but it doesn't actually progress beyond the point at which the system locks.
> 
> Booting from a USB stick, I tried:
> Mdadm --assemble --readonly
> But that too hangs the system.
> 
> Do I have any recourse beyond just recreating the array and restoring from backup? Kernel is 3.16.

Probably it can be fixed...

Can you include the output of "mdadm -D" instead of just mentioning the
command :-)
Also "mdadm --examine" of each device.
And "mdadm --version".

And
   cat /proc/PID/stack
for and PID which is in "D" state in 'ps'.

NeilBrown

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

end of thread, other threads:[~2014-10-28 22:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-24 23:38 Help with raid1 to raid5 reshape after crash shane-kernel
2014-10-28 22:24 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).