[linux-lvm] LV, VG, and PV information not available after vgcfgrestore

Smith, Troy (NIH/NCI) [C] trsmith at mail.nih.gov
Mon Dec 17 16:02:12 UTC 2007


I think I may have figured out what I missed.  Perhaps I should have
executed the following on the new host prior to the vgcfgrestore?

 

pvcreate --uuid "0OwDU9-wqnr-ylvu-2V0h-2uSZ-N2Xv-xOZRst" --restorefile
/etc/lvm/archive/vg_00001.vg /dev/sdh

 

Thanks

Troy

 

From: Smith, Troy (NIH/NCI) [C] 
Sent: Monday, December 17, 2007 10:43 AM
To: linux-lvm at redhat.com
Subject: [linux-lvm] LV, VG,and PV information not available after
vgcfgrestore

 

Hello all.

 

I recently migrated a logical volume from a failing host to a new host,
and although I am able to mount and access the volume, I cannot view any
of the LV information using lvdisplay, vgdisplay, or pvdisplay.

 

The physical volume is SAN mounted.  The /etc/lvm/backup/file was copied
from the failing host to the new host, and using vgcfgrestore and
vgchange, the LV's are now mounted on the new host and completely
accessible.  However, when I run any of the display or scan commands,
information regarding these volumes does not appear.  I'm wondering if I
missed a step in recovery.  Following are the steps I followed:

 

-on source host, unmounted the file system using the LV in question

-presented LUN the LV is on to the new host, and discovered

-coped /etc/lvm/backup/file from source to target

-on target host, vgcfgrestore on the copied backup file

-on target host, lvscan.  The LV was recognized, but not active.

-vgchange to activate the LV

-another lvscan showed the LV active

-modifed target host:/etc/fstab 

-mounted the LV on the target host without issue.  

 

Is there another step or two (or more) that I should have executed prior
to mounting or even recovering the LV?

 

Any and all assistance is greatly appreciated.

 

Thanks

Troy

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20071217/c1b3842b/attachment.htm>


More information about the linux-lvm mailing list