How can I grab the filesystem from corrupted lvm (help recover data from lvm with one pv missing)

How can I grab the filesystem from corrupted lvm (help recover data from lvm with one pv missing)

Boris shtrasman borissh1983 at gmail.com
Tue Oct 12 14:10:03 IST 2010


/dev/sda8 had been wiped out totally
The other restore fails :

vgcfgrestore -f fileserver fileserver

File descriptor 13 (socket:[7450]) leaked on vgcfgrestore invocation. Parent
PID 3952: bash
  Couldn't find device with uuid fVkJmY-pdwD-bub8-URE8-lNc2-eyhr-IIxIez.
  Cannot restore Volume Group fileserver with 1 PVs marked as missing.
  Restore failed.

Today ill try to create again an image of the drive (dd all the drive ) in
order not make any more damage by restore attempts,
Yesterday I found out that the harddrive going to die (errors from the
kernel).


2010/10/12 Etzion Bar-Noy <ezaton at tournament.org.il>

> 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<http://users.actcom.co.il/%7Eoron>
>> "... 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
>>
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>


-- 
-- 
 -- Boris Shtrasman ------------
|Gnu/Linux Software developer   |
| IM       : borissh at jabber.org   |
| URL      : myrtfm.blogspot.com|
 _______________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20101012/ab8893a7/attachment.html>


More information about the Linux-il mailing list