[linux-lvm] restoring my lvm

Luca Berra bluca at comedia.it
Sun Apr 23 09:04:49 UTC 2006


On Sun, Apr 23, 2006 at 09:08:40AM +0100, Jannetta S Steyn wrote:
>Hi Luca
>
>>>Disk /dev/hdb - 3249 MB / 3098 MiB - CHS 6296 16 63
>>>     Partition               Start        End    Size in sectors
>>>* Linux                    0   1  1   202  15 63     204561 [/boot]
>>>D Linux                  203   0  1  5645  15 63    5486544 [/]
>>>D Linux LVM              203   0  1  6295  15 63    6141744
>>>D Linux                  229   0  1  5560  15 63    5374656
>>>D Linux                  265   0  1  5596  15 63    5374656
>>>
>>
>> try with each of the linux partitions found and see if you can mount it
>> and get your data back.
>
>If I look at the way Redhat created a similar on a working system, I get
>the following information for the lv's created:
>
># lvscan
>  ACTIVE            '/dev/VolGroup02/LogVol00' [3.56 GB] inherit
>  ACTIVE            '/dev/VolGroup02/LogVol01' [320.00 MB] inherit
>
>Based on the above information, would you say that it is a reasonable to
>say that on the broken drive, the first lv was LogVol00, used for data and
>the second lv would have been LogVol01, used for swap.  Could I, like you
>suggested create a logical volume for the total size and perhaps get my
>data back (since the swap is at the end of it all?)
>
>Is creating a logical volume with lvcreate also only adjusting the
>information about the lvm and not actually touching the data, which means
>I can safely experiment, trying to change the lv's until I find the
>correct size? (I hope my questions make sense)
>
yes, but remember the "-Z n" option to lvcreate, or it will wipe the
first 1k of your data.

L.

-- 
Luca Berra -- bluca at comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \




More information about the linux-lvm mailing list