Centos- 6, LVM2 after a system hang and hard reboot.
lvdisplay and lvscan return no volumes. It had volumes earlier...how to recover?
there is data on LV (logical volume) - shared as NFS export..
VG is listed under /etc/lvm/backup/datastore1. any ideas to restore the LV?
vgdisplay
-- Volume group --
VG Name datastore1
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 10.92 TiB
PE Size 4.00 MiB
Total PE 2861467
Alloc PE / Size 0 / 0
Free PE / Size 2861467 / 10.92 TiB
VG UUID 7uq001-dUxd-I1WS-PPu2-ljT3-FybY-D9ddx2
cat /etc/lvm/backup/datastore1
datastore1 { id = "7uq001-dUxd-I1WS-PPu2-ljT3-FybY-D9ddx2" seqno = 2 status = ["RESIZEABLE", "READ", "WRITE"] flags = [] extent_size = 8192 # 4 Megabytes max_lv = 0 max_pv = 0 metadata_copies = 0
physical_volumes {
pv0 {
id = "kRGDrz-YFyf-EIKk-0om6-9H78-jgle-9z0B27"
device = "/dev/cciss/c0d1p1" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 23441142637 # 10.9156 Terabytes
pe_start = 2048
pe_count = 2861467 # 10.9156 Terabytes
}
}
}
vgscanorvgdisplayto see the status of the volume groups. If a volume group is inactive, you'll have the issues you've described. You'll have to runvgchangewith the appropriate parameters to reactivate the VG. Consult your system documentation for the appropriate flags. You'll be able to runvgscanand thenlvscanafterwards to bring up your LVs. – JodieC May 29 '12 at 19:03