Re: Recovering an Array with inconsistent Superblocks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I haven't read the whole thread, but this sounds like the bug fixed by:
> 
> commit f81a2b56c4b437f66aaf5582a9c6b7f5ab2103c4
> Author: NeilBrown <neilb@xxxxxxx>
> Date:   Tue Oct 22 09:55:04 2013 +1100
> 
>     Assembe: fix bug in force_array - it wasn't forcing properly.
> 
> 
> try getting mdadm from git and building that
>   git clone git://neil.brown.name/mdadm
>   cd mdadm
>   make

Thank you Neil, that did it. 

With the git version, I was able to re-assemble the array as Phil told
me:

	mdadm --assemble /dev/md0 /dev/sd[bcefghi] --force --verbose

mdadm told me that "7 devices are not enough to start the array" (see
assemble.log). /proc/mdstat still showed /dev/md127 instead of md0, now
correctly with 7 drives and r/o (mdstat.log).

Still, I was able to see my LVM volumes after "vgchange -ay" and do a
(read-only) fsck (fsck.log). It seemed to pass flawlessly for the volume
"lvm-storage", which is the partition containing my data. "lvm-root"
failed horribly, but this is just the system partition which I planned
on re-building from scratch anyway.


I'd like to keep the state of lvm-storage as it is and re-install my
system. Still, a few things I'm not sure about:

	- How can I get mdadm to initiate resync and get write access 
	  to my data?

	- As lvm-root seems to be severly damaged, is there any chance
	  of  errors in the lvm-storage FS that fsck -fn does not
	  detect? Could re-syncing therefore destroy data I have access
	  to now?

	- Can I make sure that the working setup is written to all 
	  superblocks, and zero the spare's superblock so that there is
	  no such confusion when trying to assemble the array in the
	  future?

Thanks.

Fabian



--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux