Skip to contentSkip to conversation

LVM export]

Fwd: Harald Kerndler 2 participants 2 messages May 9, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

We have found the command vgcfgrestore and we have him tested.
We have follow command used: vgcfgrestore -n vol0 /dev/hda4 and then comes this error:
vgcfgrestore -- ERROR "pv_read(): PV exported" reading physical volume "/dev/hda4"

Is the VG demaged ?

Quoted 100 lines

------------------------------------------------------------------------

Subject: Re: [linux-lvm] LVM export
Date: Mon, 7 May 2001 13:58:47 +0200
From: Torsten Landschoff <[email protected]>
Reply-To: [email protected]
To: [email protected]
References: <[email protected]> <[email protected]>

Quoted 3 lines · Heinz J. Mauelshagen

There's a hack to reactivate it in case you still have a valid VGDA backup, but let me first understand what your actual problem is, before we can decide to try that.

I guess he tried to move a disk to a new one by exporting the volume group, moving the data onto the new disk and importing that one. I guess the solution would be to import the volume group from the old disk (assuming the data is still available on it) and using pvcreate, vgextend and pvmove to get the data on the new disk, the use vgreduce to remove the pv of the old disk and remove it from the system.

Greetings

Torsten
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

------------------------------------------------------------------------

Subject: Re: [linux-lvm] LVM export
Date: Mon, 7 May 2001 13:40:24 +0000
From: "Heinz J. Mauelshagen" <[email protected]>
Reply-To: [email protected]
To: [email protected]
References: <[email protected]>

Quoted 3 lines · On Mon, May 07, 2001 at 01:04:06PM +0200, [email protected] wrote:

Hello !
Yesterday, I have tested the export/import Funktion from LVM. I have exported the LVM, that has gone.

Without further information, I can't provide a solution.

Do you mean you successfully run "vgexport VGName" on your deactivated VG named "VGName"?

Quoted 1 line

In the next step I would import the LVM on a other disk.

What do you mean with "other disk"?

The vgimport(8) command has the synopsis:

vgimport VGName PhysicalVolumePath [PhysicalVolumePath...]

If you exported the VG just to test the feature as you mentioned, you should run pvscan which should list you all of the physical volume pathes belonging to the exported VG and feed those pathes into vgimport.

See "man vgimport" for further details.

Quoted 2 lines

The LVM has not imported the LVM on a other disc, becaus I became a Failure.

What was the failure message?

Quoted 1 line

My question, can I make a un-export on the old-disk?

No, you can just import it.

There's a hack to reactivate it in case you still have a valid VGDA backup, but let me first understand what your actual problem is, before we can decide to try that.

Quoted 6 lines

Thanks, Harald
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

--

Regards,
Heinz -- The LVM Guy --

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

Quoted 6 lines
                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

--
mit freundlichen Gr��en
J�rgen Greil

JUSLINE - Direkt zu Ihrem Recht
http://www.jusline.com
e-mail: [email protected]

#2 lore raw
Quoted 7 lines · Harald Kerndler

We have found the command vgcfgrestore and we have him tested.
We have follow command used: vgcfgrestore -n vol0 /dev/hda4 and then comes this error:
vgcfgrestore -- ERROR "pv_read(): PV exported" reading physical volume "/dev/hda4" We have follow command used: vgcfgrestore -n vol0 /dev/hda4 and then comes this

Is the VG demaged ?

This doesn't necessarily imply that your VG is damaged.

vgcfgrestore recognized that /dev/hda4 belongs to an exported VG and therefore it complained.

If Torsten's guess below is right: if you copied the PV content to a different disk (of the same size!) there was no need to export the VG in the first place.

You didn't mention if you tried Torsten's hints in case his assumption was right.

My general problem is, that you didn't provide more information, as I requested in my first answer to your e-mail, in order to *really* understand for sure what your situation is and which steps you made to get there.

So input like:

- what was the starting configuration *before* you changed something?
- what was the configuration change you wnated to achive?
- what where the commands you run in sequence to get there?

would be appreciated in order to help you at all.

Could you at least provide the following outputs to get a little more light into this:

- "pvscan"
- "vgscan -d"
- "vgdisplay -Dv"
- "ls -l /etc/lvmconf"

Regards,
Heinz -- The LVM Guy --

Quoted 118 lines
Quoted 101 lines

------------------------------------------------------------------------

Subject: Re: [linux-lvm] LVM export
Date: Mon, 7 May 2001 13:58:47 +0200
From: Torsten Landschoff <[email protected]>
Reply-To: [email protected]
To: [email protected]
References: <[email protected]> <[email protected]>

Quoted 3 lines · Heinz J. Mauelshagen

There's a hack to reactivate it in case you still have a valid VGDA backup, but let me first understand what your actual problem is, before we can decide to try that.

I guess he tried to move a disk to a new one by exporting the volume group, moving the data onto the new disk and importing that one. I guess the solution would be to import the volume group from the old disk (assuming the data is still available on it) and using pvcreate, vgextend and pvmove to get the data on the new disk, the use vgreduce to remove the pv of the old disk and remove it from the system.

Greetings

Torsten
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

------------------------------------------------------------------------

Subject: Re: [linux-lvm] LVM export
Date: Mon, 7 May 2001 13:40:24 +0000
From: "Heinz J. Mauelshagen" <[email protected]>
Reply-To: [email protected]
To: [email protected]
References: <[email protected]>

Quoted 3 lines · On Mon, May 07, 2001 at 01:04:06PM +0200, [email protected] wrote:

Hello !
Yesterday, I have tested the export/import Funktion from LVM. I have exported the LVM, that has gone.

Without further information, I can't provide a solution.

Do you mean you successfully run "vgexport VGName" on your deactivated VG named "VGName"?

Quoted 1 line

In the next step I would import the LVM on a other disk.

What do you mean with "other disk"?

The vgimport(8) command has the synopsis:

vgimport VGName PhysicalVolumePath [PhysicalVolumePath...]

If you exported the VG just to test the feature as you mentioned, you should run pvscan which should list you all of the physical volume pathes belonging to the exported VG and feed those pathes into vgimport.

See "man vgimport" for further details.

Quoted 2 lines

The LVM has not imported the LVM on a other disc, becaus I became a Failure.

What was the failure message?

Quoted 1 line

My question, can I make a un-export on the old-disk?

No, you can just import it.

There's a hack to reactivate it in case you still have a valid VGDA backup, but let me first understand what your actual problem is, before we can decide to try that.

Quoted 6 lines

Thanks, Harald
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

--

Regards,
Heinz -- The LVM Guy --

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

Quoted 6 lines
                                                       FAX 924446

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

--
mit freundlichen Gr��en
J�rgen Greil

JUSLINE - Direkt zu Ihrem Recht
http://www.jusline.com
e-mail: [email protected]

Quoted 4 lines

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm

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

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