All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] "vg doesn't exist" after removing a pv
@ 2006-01-18 22:37 Alan Wise
  2006-01-20 17:40 ` Jonathan E Brassow
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Wise @ 2006-01-18 22:37 UTC (permalink / raw)
  To: linux-lvm


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
appreciated.

Alan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] "vg doesn't exist" after removing a pv
  2006-01-18 22:37 [linux-lvm] "vg doesn't exist" after removing a pv Alan Wise
@ 2006-01-20 17:40 ` Jonathan E Brassow
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan E Brassow @ 2006-01-20 17:40 UTC (permalink / raw)
  To: lists, LVM general discussion and development

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.

  brassow
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
> appreciated.
>
> Alan
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-20 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-18 22:37 [linux-lvm] "vg doesn't exist" after removing a pv Alan Wise
2006-01-20 17:40 ` Jonathan E Brassow

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.