Skip to contentSkip to conversation

LVM export

linux-lvm [email protected] 3 participants 3 messages May 7, 2001

lore
Share & tools
lore
#0 lore raw

Hello !
Yesterday, I have tested the export/import Funktion from LVM. I have exported the LVM, that has gone.
In the next step I would import the LVM on a other disk. The LVM has not imported the LVM on a other disc, becaus I became a Failure.
My question, can I make a un-export on the old-disk?

Thanks, Harald

#1 lore raw
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

Signature · 15 lines
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
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw
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