All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] vg_read_with_pv_and_lv error
@ 2002-08-21 20:04 Chris Freeze
  2002-08-22 12:46 ` Adam McDaniel
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Freeze @ 2002-08-21 20:04 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 3104 bytes --]

I've come across a problem with my lvm drive(s).  When I try to mount it, I get
/dev/diskvg/share does not exist.  Running pvscan I get,

pvscan -- reading all physical volumes (this may take a while...)
pvscan -- inactive PV "/dev/hdg1"  is associated to unknown VG "diskvg" (run
vgscan)
pvscan -- inactive PV "/dev/hdg2"  is associated to unknown VG "diskvg" (run
vgscan)
pvscan -- inactive PV "/dev/hdg3"  is associated to unknown VG "diskvg" (run
vgscan)
pvscan -- inactive PV "/dev/hdh1"  is associated to unknown VG "diskvg" (run
vgscan)
pvscan -- inactive PV "/dev/hdh2"  is associated to unknown VG "diskvg" (run
vgscan)
pvscan -- inactive PV "/dev/hdh3"  is associated to unknown VG "diskvg" (run
vgscan)
pvscan -- inactive PV "/dev/hdh4"  is associated to unknown VG "diskvg" (run
vgscan)
pvscan -- inactive PV "/dev/hde1"  is associated to unknown VG "diskvg" (run
vgscan)
pvscan -- inactive PV "/dev/hde2"  is associated to unknown VG "diskvg" (run
vgscan)
pvscan -- inactive PV "/dev/hde3"  is associated to unknown VG "diskvg" (run
vgscan)
pvscan -- inactive PV "/dev/hdf1" is in no VG  [19.53 GB]
pvscan -- inactive PV "/dev/hdf2" is in no VG  [18.82 GB]
pvscan -- total: 12 [267.09 GB] / in use: 10 [228.74 GB] / in no VG: 2 [38.35
GB]

which is correct (other than having an unknown vg), and when I run vgscan I
get, 

vgscan -- reading all physical volumes (this may take a while...)
vgscan -- only found 33727 of 33556 LEs for LV /dev/diskvg/share (0)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get data
of volume group "diskvg" 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

vgcfgrestore -n diskvg -b 1 /dev/hdg1

but running pvdata /dev/hdg1 I still get

--- Physical volume ---
PV Name               /dev/hdg1
VG Name               diskvg
PV Size               19.53 GB [40960017 secs] / NOT usable 4.19 MB [LVM: 147
KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              4998
Free PE               0
Allocated PE          4998
PV UUID               DKfGe0-VsMw-zeK1-5tJn-f7Nb-Uv6u-j93KLp

--- Volume group ---
VG Name
VG Access             read/write
VG Status             NOT available/resizable
VG #                  0
MAX LV                256
Cur LV                1
Open LV               0
MAX LV Size           255.99 GB
Max PV                256
Cur PV                7
Act PV                7
VG Size               131.75 GB
PE Size               4 MB
Total PE              33727
Alloc PE / Size       33556 / 131.08 GB
Free  PE / Size       171 / 684 MB
VG UUID               t36afg-UyqZ-HqLo-9SHT-TfYe-1yNg-hQxfRv


Is there any hope of restoring the data?




-- 
Regards,

Chris

Better to light one candle than to curse the darkness.
                -- motto of the Christopher Society

-----
Chris Freeze           Email: cfreeze@alumni.clemson.edu
                         Web: http://www.cfreeze.com 


[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

end of thread, other threads:[~2002-08-26  5:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-21 20:04 [linux-lvm] vg_read_with_pv_and_lv error Chris Freeze
2002-08-22 12:46 ` Adam McDaniel
2002-08-22 19:59   ` Chris Freeze
2002-08-23  3:48     ` Heinz J . Mauelshagen
2002-08-23 12:00       ` Adam McDaniel
2002-08-26  5:49         ` Heinz J . Mauelshagen

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.