linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Error after moving volume group to another machine
@ 2002-09-03 15:47 Florian Hinzmann
  2002-09-04  6:01 ` [linux-lvm] Error after moving volume group to another machi Florian Hinzmann
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Hinzmann @ 2002-09-03 15:47 UTC (permalink / raw)
  To: linux-lvm

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: f.hinzmann@hamburg.de
                                            Debian: fh@debian.org
PGP Key / ID: 1024D/B4071A65
Fingerprint : F9AB 00C1 3E3A 8125 DD3F  DF1C DF79 A374 B407 1A65

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

* RE: [linux-lvm] Error after moving volume group to another machi
  2002-09-03 15:47 [linux-lvm] Error after moving volume group to another machine Florian Hinzmann
@ 2002-09-04  6:01 ` Florian Hinzmann
  2002-09-04  8:17   ` Heinz J . Mauelshagen
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Hinzmann @ 2002-09-04  6:01 UTC (permalink / raw)
  To: linux-lvm

Uh, oh, replying to myself:

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: f.hinzmann@hamburg.de
                                            Debian: fh@debian.org
PGP Key / ID: 1024D/B4071A65
Fingerprint : F9AB 00C1 3E3A 8125 DD3F  DF1C DF79 A374 B407 1A65

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

* Re: [linux-lvm] Error after moving volume group to another machi
  2002-09-04  6:01 ` [linux-lvm] Error after moving volume group to another machi Florian Hinzmann
@ 2002-09-04  8:17   ` Heinz J . Mauelshagen
  2002-09-06  6:51     ` Florian Hinzmann
  0 siblings, 1 reply; 4+ messages in thread
From: Heinz J . Mauelshagen @ 2002-09-04  8:17 UTC (permalink / raw)
  To: linux-lvm

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


On Wed, Sep 04, 2002 at 01:01:02PM +0200, Florian Hinzmann wrote:
> Uh, oh, replying to myself:
> 
> 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: f.hinzmann@hamburg.de
>                                             Debian: fh@debian.org
> PGP Key / ID: 1024D/B4071A65
> Fingerprint : F9AB 00C1 3E3A 8125 DD3F  DF1C DF79 A374 B407 1A65
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> 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
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: [linux-lvm] Error after moving volume group to another machi
  2002-09-04  8:17   ` Heinz J . Mauelshagen
@ 2002-09-06  6:51     ` Florian Hinzmann
  0 siblings, 0 replies; 4+ messages in thread
From: Florian Hinzmann @ 2002-09-06  6:51 UTC (permalink / raw)
  To: linux-lvm

Hello Heinz!


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: f.hinzmann@hamburg.de
                                            Debian: fh@debian.org
PGP Key / ID: 1024D/B4071A65
Fingerprint : F9AB 00C1 3E3A 8125 DD3F  DF1C DF79 A374 B407 1A65

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

end of thread, other threads:[~2002-09-06  6:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-03 15:47 [linux-lvm] Error after moving volume group to another machine Florian Hinzmann
2002-09-04  6:01 ` [linux-lvm] Error after moving volume group to another machi Florian Hinzmann
2002-09-04  8:17   ` Heinz J . Mauelshagen
2002-09-06  6:51     ` Florian Hinzmann

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