Skip to contentSkip to conversation

vgscan ERROR

linux-lvm Ed Tomlinson 2 participants 3 messages Mar 22, 2001 – Mar 23, 2001

lore
Share & tools
lore
#0 lore raw

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...

#1 lore raw

Hi,

This was solved by manually enabling the vg from a backup

I used vgcfgrestore -ll -n lv -f ./lv.conf to verify the backup

and restoring the vg with (as in an archived email from Heinz)

cp lv.conf /etc/lvmtab.d/lv
echo -ne 'lv\0' > /etc/lvmtab
vgchange -ay

It seems that with beta-2 adding a pv causes problems... Upgrading both the kernel and tools to beta6 corrected the bug (with the VFS patch for reiserfs snapshots).

Thanks
Ed Tomlinson

Quoted 40 lines · you

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... _______________________________________________ linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

#2 lore raw
Quoted 3 lines

Upgrading both
the kernel and tools to beta6 corrected the bug (with the VFS patch for reiserfs snapshots).

Do you have a 2.4.0-kernel? I'm having problems patching it with the beta6 source. Can you tell me exactly how you did it?

--
------------------------------------------------------------------------
David Vidal R. ([email protected])