[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] "vg doesn't exist" after removing a pv

There may be a better way, but here is what I did...

> vgcfgrestore <VG>

Errors out, but gives you the uuid of the PV that is missing.

> pvcreate -u <uuid given by failed command> <device>
> vgcfgrestore <VG>

All should be good now.

On Jan 18, 2006, at 4:37 PM, Alan Wise wrote:

I just attempted to remove two physical volumes from one of my volume
groups.  Since I very recently added them, I knew (or thought I knew)
that there was no data on them so I attempted to to remove them using
"pvremove /dev/hda8 /dev/hdb1".

The program complained, but suggested I try using the "-ff" option,
which I promptly did, without considering the consequences of my
actions (or backing up the data).

Now I'm getting the following errors:

Couldn't find device with uuid "..."
Couldn't find all physical volumes for volume group my_vg
Volume group "my_vg" doesn't exist

Unfortunately, being rather new to LVM, I didn't know about
vgcfgbackup until I started researching how to fix my problem, so I
can't go that route.

Is there any way I can recover my data.  Any help would be MUCH


linux-lvm mailing list
linux-lvm redhat com
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]