linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] vgscan error
@ 2001-04-19 20:52 Johan Ur Riise
  0 siblings, 0 replies; 4+ messages in thread
From: Johan Ur Riise @ 2001-04-19 20:52 UTC (permalink / raw)
  To: linux-lvm

I saw som messages about a problem like this, and I think it is not
resolved. Here is my description:

vgscan locates my vg, vg00, then exits, there is no lvmtab or lvmtab.d
in /etc.

vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "vg00"
vgscan -- only found 342 of 1026 LEs for LV /dev/vg00/lv02 (1)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get data of volume group "vg00" from physical volume(s)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" creating "/etc/lvmtab" and "/etc/lvmtab.d"

pvscan reports this:

[root@egg /root]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE   PV "/dev/hda2" of VG "vg00" [19.09 GB / 12.09 GB free]
pvscan -- ACTIVE   PV "/dev/hdc2" of VG "vg00" [6 GB / 6 GB free]
pvscan -- total: 2 [25.09 GB] / in use: 2 [25.09 GB] / in no VG: 0 [0]

this is the last 14 lines of vgscan --debug:

<1> vg_read_with_pv_and_lv -- LEAVING with ret: -365
<1> lvm_error -- CALLED with: -365
<1> lvm_error -- LEAVING with: "vg_read_with_pv_and_lv(): allocated LE of LV"
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get data of volume group "vg00" from physical volume(s)
<1> lvm_interrupt -- CALLED
<1> lvm_interrupt -- LEAVING
<1> lvm_unlock -- CALLED
<1> lvm_unlock -- LEAVING with ret: 0
<1> lvm_error -- CALLED with: -365
<1> lvm_error -- LEAVING with: "vg_read_with_pv_and_lv(): allocated LE of LV"
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" creating "/etc/lvmtab" and "/etc/lvmtab.d"

<1> lvm_unlock -- CALLED
<1> lvm_unlock -- LEAVING with ret: -104


I performed these operations:

created pv's on /dev/hdc6, /dev/hde6 and /dev/hdg6 total approx 42GB

created a vg named vg00 on these 

I got a few of messages like these:
-- WARNING: you may not have an actual VGDA backup of your volume group

created a lv of 20GB. This used all of first partition and half of the
second.

tried to create an lv stiped over 3 (but no space left on first pv)

moved 1 pe from hdc6 to hdg6 
moved next pe and up to the end by number(hope I got the number right)
from hdc6 to hdg6. Ran mkfs.ext2 on this lv while it was moving (fun).

created the striped lv

All seemed to go well up to this point

somewhere in between I tried to run lvmcreate_initrd and got a program
hang, so i had to kill it

After reboot, vgscan would not run.

My kernel is 2.4.2 stock.
My system is debian, and lvm (the tools) was from the
"unstable" distribution.

I dumped it, and downloaded lvm_0.9.1_beta7.tar.gz in stead. same
problem.

I also messed with the lvmconf directory (and its gone)

I have another machine which I have not booted since i created the
pv's vg and lv, with the debian lvm package, and have not got any 
error (probably will if I boot).

I could probably compile the tools with -g and run vgscan in gdb,
but I don't know what to look for.








-- 
Johan Ur Riise
90 15 77 78

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [linux-lvm] vgscan ERROR
@ 2001-03-22 21:56 Ed Tomlinson
  2001-03-23  2:37 ` Ed Tomlinson
  0 siblings, 1 reply; 4+ messages in thread
From: Ed Tomlinson @ 2001-03-22 21:56 UTC (permalink / raw)
  To: linux-lvm

Hi,

I had a vg called lv setup with two full disk in it (hde1 40G, hdeg 4G)
In this there are four logical volumes:

swap - striped on hde and hdg
home_a - main disk
home_b - mirroed with raid 1
root - my reiserfs root file system.

Once I finish moving root to lvm and was able to get reiserfs snapshots work
I decided to add my old root partn to lvm.  So I did the following:

cfdisk /dev/hda and changed the type of hda3 to 8e and wrote the block.
pvcreate /dev/hda3
vgextend /dev/hda3 lv

now running vgscan gives me:

oscar# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "lv"
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" can't get data of volume group "lv" from physical volume(s)
vgscan -- ERROR "vg_read_with_pv_and_lv(): allocated LE of LV" creating "/etc/lvmtab" and "/etc/lvmtab.d"

I am using ac21 with the 090 debs off the sistima ftp site...

How do I fix this????

TIA
Ed Tomlinson

PS. all is not completly lost, my backup is still running... and I finially realized that
just because ide-tape refuses to read my tapes using st and ide-scsi works...

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

end of thread, other threads:[~2001-04-19 20:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-19 20:52 [linux-lvm] vgscan error Johan Ur Riise
  -- strict thread matches above, loose matches on Subject: below --
2001-03-22 21:56 [linux-lvm] vgscan ERROR Ed Tomlinson
2001-03-23  2:37 ` Ed Tomlinson
2001-03-23 17:36   ` David Vidal Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).