Skip to contentSkip to conversation

Error after moving volume group to another machine

linux-lvm Florian Hinzmann 2 participants 4 messages Sep 3, 2002 – Sep 6, 2002

lore
Share & tools
lore
#0 lore raw

Hello!

I want to move three harddisks physically and temporarily into another machine. These three harddisks are forming one volume group.

The target machine had one volume group with the same name, but I did rename it in the meanwhile.

But the moved VG isn't detected properly. This is what I get:
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "vg01" from physical volume(s) vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "vgpum01"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume groups

I don't know what this means, what is the problem here? I have logs of pvscan, lvmdiskscan and vgscan available. All with and without "-v -d". I am not sure if binary attachments are allowed here so I won't include them yet.

Any hint appreciated. If you want me something to try or provide more information I will do it.

Regards
Florian

--
Florian Hinzmann private: [email protected]
Debian: [email protected]
PGP Key / ID: 1024D/B4071A65
Fingerprint : F9AB 00C1 3E3A 8125 DD3F DF1C DF79 A374 B407 1A65

#1 lore raw

RE: [linux-lvm] Error after moving volume group to another machi

Uh, oh, replying to myself:

Quoted 6 lines · On 03-Sep-2002 Florian Hinzmann wrote:

But the moved VG isn't detected properly. This is what I get:
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "vg01" from physical volume(s) vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "vgpum01"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume groups

The disks are back in their original machine currently.

pvdata gives me:

--- Physical volume ---

PV Name               /dev/hdb1
VG Name               vg01
PV Size               76.34 GB [160086526 secs] / NOT usable 8.19 MB [LVM: 166 KB]
PV#                   4
PV Status             available
Allocatable           yes (but full)
Cur LV                5
PE Size (KByte)       8192
Total PE              9769
Free PE               0
Allocated PE          9769
PV UUID               jRyOAJ-1KHk-564T-jrQS-BHWC-OKhu-JiL9d4

--- Volume group ---
VG Name

VG Access             read/write
VG Status             NOT available/resizable
VG #                  0
MAX LV                256
Cur LV                9
Open LV               0
MAX LV Size           511.98 GB
Max PV                256
Cur PV                4
Act PV                4
VG Size               212.07 GB
PE Size               8 MB
Total PE              27145
Alloc PE / Size       27145 / 212.07 GB
Free  PE / Size       0 / 0
VG UUID               BVZr37-mltv-69XE-pnBS-5ryg-NcKL-k6Fcfy

--- List of logical volumes ---

pvdata -- logical volume "/dev/vg01/home" at offset 0
pvdata -- logical volume "/dev/vg01/usr" at offset 1
[...]

"VG Name" in "--- Volume group ---" is empty. Is this normal? In case this or some other errors within the data structures within one or more partitions is the cause of my problems:
My setup is currently working obviosly. Is there a way to write this working configuration into every LVM partition's metadata overwriting some possible errors there?

Regards
Florian

--
Florian Hinzmann private: [email protected]
Debian: [email protected]
PGP Key / ID: 1024D/B4071A65
Fingerprint : F9AB 00C1 3E3A 8125 DD3F DF1C DF79 A374 B407 1A65

#2 lore raw

Re: [linux-lvm] Error after moving volume group to another machi

Florian,

is it really 3 HDDs you want to move, not 4?
It says "Cur PV 4" in the pvdata output below.
Maybe that still makes sense, because you have 2 PVs in 2 partitions on the very same physical disk.

That pvdata reports an empty VG name is just a minor flaw but doesn't show an error.

Regards,
Heinz -- The LVM Guy --

Quoted 74 lines · Florian Hinzmann

Uh, oh, replying to myself:

Quoted 6 lines · On 03-Sep-2002 Florian Hinzmann wrote:

But the moved VG isn't detected properly. This is what I get:
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "vg01" from physical volume(s) vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found inactive volume group "vgpum01"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume groups

The disks are back in their original machine currently.

pvdata gives me:

--- Physical volume ---

PV Name               /dev/hdb1
VG Name               vg01
PV Size               76.34 GB [160086526 secs] / NOT usable 8.19 MB [LVM: 166 KB]
PV#                   4
PV Status             available
Allocatable           yes (but full)
Cur LV                5
PE Size (KByte)       8192
Total PE              9769
Free PE               0
Allocated PE          9769
PV UUID               jRyOAJ-1KHk-564T-jrQS-BHWC-OKhu-JiL9d4

--- Volume group ---
VG Name

VG Access             read/write
VG Status             NOT available/resizable
VG #                  0
MAX LV                256
Cur LV                9
Open LV               0
MAX LV Size           511.98 GB
Max PV                256
Cur PV                4
Act PV                4
VG Size               212.07 GB
PE Size               8 MB
Total PE              27145
Alloc PE / Size       27145 / 212.07 GB
Free  PE / Size       0 / 0
VG UUID               BVZr37-mltv-69XE-pnBS-5ryg-NcKL-k6Fcfy

--- List of logical volumes ---

pvdata -- logical volume "/dev/vg01/home" at offset 0
pvdata -- logical volume "/dev/vg01/usr" at offset 1
[...]

"VG Name" in "--- Volume group ---" is empty. Is this normal? In case this or some other errors within the data structures within one or more partitions is the cause of my problems:
My setup is currently working obviosly. Is there a way to write this working configuration into every LVM partition's metadata overwriting some possible errors there?

Regards
Florian

--
Florian Hinzmann private: [email protected]
Debian: [email protected]
PGP Key / ID: 1024D/B4071A65
Fingerprint : F9AB 00C1 3E3A 8125 DD3F DF1C DF79 A374 B407 1A65

Quoted 5 lines

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200

                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Re: [linux-lvm] Error after moving volume group to another machi

Hello Heinz!

Quoted 4 lines · On 04-Sep-2002 Heinz J . Mauelshagen wrote:

is it really 3 HDDs you want to move, not 4?
It says "Cur PV 4" in the pvdata output below.
Maybe that still makes sense, because you have 2 PVs in 2 partitions on the very same physical disk.

No, I was really moving 4 out of that box. I just got confused writing my mail as there were 3 other disks involved and I was shuffling them around and using some of them temporarily to reach the setup I wanted. But I am off topic here .. ;)

It has not been a LVM nor a software problem. One of the power connectors was broken, so one disk did not have power. Maybe it is possible to have a more expressive error message?

Something like "VG <name> consists of 4 PVs, only finding 3".

Anyway, it was my fault, thanks for your thoughts about it!

Regards
Florian

--
Florian Hinzmann private: [email protected]
Debian: [email protected]
PGP Key / ID: 1024D/B4071A65
Fingerprint : F9AB 00C1 3E3A 8125 DD3F DF1C DF79 A374 B407 1A65