[linux-lvm] restoring my lvm

Luca Berra bluca at comedia.it
Sat Apr 22 08:06:22 UTC 2006


On Sat, Apr 22, 2006 at 12:06:55AM +0100, Jannetta S Steyn wrote:
>My problem was that the new system (also FC4 and also a vanilla install)
>already had VolGroup00. I then did a 'vgcreate VolGroup01 /dev/hdb2'. I
vgcreate = msdos format
you just wiped your disk

>PV /dev/hdb2 VG VolGroup01 lvm2 [2.93 GB / 2.93 GB free]
>PV /dev/hda2 VG VolGroup02 lvm2 [3.91 GB / 32.00 MB free]
>Total: 2 [6.83 GB] / in use: 2 [6.83 GB] / in no VG: 0 [0 ]
if you are certain that the previous logical volume spanned the whole
disk, you can:
# vgdisplay /dev/VolGroup01
and look at the "Total PE" value, then
# lvcreate -Z n -l TOTAL_PE -n LogVol01 /dev/VolGroup01

but i'd rater first try with http://www.cgsecurity.org/wiki/TestDisk
which might be able to recover the damage you did.

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