[linux-lvm] ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "data_disks" from physical volume(s)

Leigh Waldie lw at mih-assoc.com
Wed Jul 3 04:51:02 UTC 2002


Dear List,

I have seen this problem in the archives, but cannot find a solution that
works for me.

Redhat 7.3 kernel 2.4.18-5
LVM module LVM version 1.0.1-rc4(ish)(03/10/2001)

I have two physical disks /dev/hde and /dev/hdb configured in LVM as Volume
Group data_disks.

I shutdown the system to add a new disk , but I did not execute
"vgchange -an" - my big mistake I think.

Having rebooted with the new disk I now have a problem trying to mount the
original vg.

The /proc/lvm/VGs directory is empty and /dev/data_disks is gone.

pvdisplay shows that the physical volumes are seemingly intact and still
have the correct configuration.

I have tried restoring the config from /etc/lvmconf/data_disks.conf to the
disks using vgcfgrestore - this makes no difference to my problem.

Basically, everything looks ok physically, but I need to figure out why
vgscan cant read the disks.

I have appended the output of vgscan,pvscan and pvdisplay below.

Thanks for any help anyone can offer...

Leigh Waldie
"desperately hoping I dont have to restore 190GB from CDs"

vgscan gives:

vgscan -- reading all physical volumes (this may take a while...)
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of
volume group "data_disks" from physical volume(s)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
group

and pvscan gives:

pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/hde"  is associated to unknown VG "data_disks"
(run vgscan)
pvscan -- inactive PV "/dev/hdb"  is associated to unknown VG "data_disks"
(run vgscan)
pvscan -- total: 2 [191.02 GB] / in use: 2 [191.02 GB] / in no VG: 0 [0]

pvdisplay /dev/hde:

PV Name               /dev/hde
VG Name               data_disks
PV Size               152.67 GB [320173056 secs] / NOT usable 4.31 MB [LVM:
280 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              39082
Free PE               0
Allocated PE          39082
PV UUID               KrYG4H-I9DI-3shN-1DnA-oXzh-uaDS-t4h55e

pvdisplay /dev/hdb:

PV Name               /dev/hdb
VG Name               data_disks
PV Size               38.35 GB [80418240 secs] / NOT usable 4.19 MB [LVM:
166 KB]
PV#                   2
PV Status             NOT available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              9815
Free PE               0
Allocated PE          9815
PV UUID               eYw77b-g1s6-mWyO-avX2-z0mM-SXLE-Q6ZqUD
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/2002





More information about the linux-lvm mailing list