Re: Help with recovering resized raid where machine crashed while PENDING
flat view
From: Petter Reinholdtsen <hidden>
Date: 2011-07-04 14:21:27
[Petter Reinholdtsen]
Any ideas how I can recover my raid? After reading <URL: https://raid.wiki.kernel.org/index.php/RAID_Recovery >, I suspect creating it again is the solution, but am unsure if I should recreate it with 3 or 5 partitions. Trying to assembly result in this:
meta:~# mdadm --assemble /dev/md3 /dev/sdd2 /dev/sde2 /dev/sdh2 /dev/sda2 /dev/sdb2
mdadm: Failed to restore critical section for reshape, sorry.
Possibly you needed to specify the --backup-file
meta:~#
How can I know which disks to use when recreating if I want to
recreate using only three disks? Is it the three with the active
state?This is still a problem. I got some help from JyZyXEL on #linux-raid, and managed to get md2 to continue its reshaping with mdadm --readwrite /dev/md2, but the raid that was pending its reshaping is still failing to assemble with the above message. Is this the only approach to recover? mdadm --create --assume-clean --level=5 --raid-devices=5 /dev/md3 /dev/sd?2 Should I use --raid-devices=3 or --raid-devices=5, and if I should use --raid-devices=3, how do I figure which devices to use? Happy hacking, -- Petter Reinholdtsen