Did you use pvcreate -u .... on the drive?
Without it, it won't work. Also - you *must* use a backup configuration file
with all the data in it.

Post one of these online, and I would be able to assist further.

Ez

2010/10/12 Boris shtrasman <borissh1...@gmail.com>

> /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 <eza...@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 <o...@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
>>> o...@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@cs.huji.ac.il
>>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>>
>>
>>
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il@cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>>
>
>
> --
> --
>  -- Boris Shtrasman ------------
> |Gnu/Linux Software developer   |
> | IM       : bori...@jabber.org   |
> | URL      : myrtfm.blogspot.com|
>  _______________________________
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to