How can I grab the filesystem from corrupted lvm (help recover data from lvm with one pv missing)
Etzion Bar-Noy
ezaton at tournament.org.il
Tue Oct 12 13:56:17 IST 2010
Bad. Depends on the amount of damage you have created, the following
procedure would work:
I believe the failure is in /dev/sda8, around 30GB, based on your fileserver
lvm backup file. Upload an older one for me to be sure.
pvcreate -u GBsXFQ-RdXS-iMhp-Phle-iqfM-5571-aJgQAa /dev/sda8
(if successful), try the following:
in /etc/lvm/backup, find a file describing a good configuration, before you
attempted to force-remove the PV. You can perform the following action then:
vgcfgrestore -f <the file you have found, and hopefully uploaded here>
fileserver
If successful, run:
vgchange -ay fileserver
and you should be able to mount whatever LV you did not run over with
zeros.
Good luck
Ez
On Mon, Oct 11, 2010 at 11:20 PM, Oron Peled <oron at actcom.co.il> wrote:
> On Monday, 11 בOctober 2010 11:50:45 Boris shtrasman wrote:
> > On Mon, Oct 11, 2010 at 11:45 AM, Yedidyah Bar-David <
> > > Not gparted, gpart:
> > > http://www.brzitwa.de/mb/gpart/index.html
> > > "Gpart is a tool which tries to guess the primary partition table of a
> > > PC-type hard disk in case the primary partition table in sector 0 is
> > > damaged, incorrect or deleted."
> > >
> > > If you fail, and still want to resurrect specific files, you can also
> try
> > > MagicRescue:
> > > http://www.itu.dk/people/jobr/magicrescue/
> >
> > looks promising thank you
> > And i was dding file by file :-( from the disk ..
> >
>
> Just take notice that sequencial logical volume (partition) may be not
> sequencial on the physical volume (There's a logical extent to physical
> extent mapping).
>
> However, there is a good chance most/all of your partition is
> sequencial, especially if you created the volume group and the logical
> volumes when the disk was empty (e.g: during installation) without
> requiring a striped logical volume (it's not the default).
>
> Good luck,
>
> --
> Oron Peled Voice: +972-4-8228492
> oron at actcom.co.il http://users.actcom.co.il/~oron
> "... one of the main causes of the fall of the Roman Empire was that,
> lacking zero, they had no way to indicate successful termination of their
> C programs."
> -- Robert Firth
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20101012/32cb4ca7/attachment.html>
More information about the Linux-il
mailing list