Skip to contentSkip to conversation

exporting/importing a LVM volume

linux-lvm [email protected] 2 participants 2 messages Dec 15, 2003 – Dec 16, 2003

lore
Share & tools
lore
#0 lore raw

Hi all,

I need to move a lvm volme over to a new os install. And this is what i did.

Before installing the new os, i did a vgexport name
and acording to the howto, all i need to do on my new os is pvscan and then vgimport name /dev/dev1 + + + +

(http://tldp.org/HOWTO/LVM-HOWTO/x978.html)

However when trying to import it i get these messages:

pvscan -- reading all physical volumes (this may take a while....) pvscan -- inactive PV "/dev/sdc1" is in no VG [111.76GB] pvscan -- total: 1 [111.76GB] / in use: 0 [0] / in no VG: 1 [111.76GB]

Its supposed to say something like this: (paste from the howto)

pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/sdb1" is in EXPORTED VG "design" [996 MB / 996 MB free]
pvscan -- inactive PV "/dev/sdb2" is in EXPORTED VG "design" [996 MB / 244 MB free]
pvscan -- total: 2 [1.95 GB] / in use: 2 [1.95 GB] / in no VG: 0 [0]

If i try the vgimport i get this message:

vgimport -- ERROR "pv_read(): PV identifier invalid" reading physical volume "/dev/sda1"

Anyone got a hint what i need to do to get this LVM up and running again ?

Ray

#1 lore raw

Ray,

your output below shows /dev/sdb[12] as PVs, so your vgimport command line should read:

# vgimport design /dev/sdb[12]
Quoted 36 lines · On Sun, Dec 14, 2003 at 03:15:59PM +0100, [email protected] wrote:

Hi all,

I need to move a lvm volme over to a new os install. And this is what i did.

Before installing the new os, i did a vgexport name
and acording to the howto, all i need to do on my new os is pvscan and then vgimport name /dev/dev1 + + + +

(http://tldp.org/HOWTO/LVM-HOWTO/x978.html)

However when trying to import it i get these messages:

pvscan -- reading all physical volumes (this may take a while....) pvscan -- inactive PV "/dev/sdc1" is in no VG [111.76GB] pvscan -- total: 1 [111.76GB] / in use: 0 [0] / in no VG: 1 [111.76GB]

Its supposed to say something like this: (paste from the howto)

pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/sdb1" is in EXPORTED VG "design" [996 MB / 996 MB free]
pvscan -- inactive PV "/dev/sdb2" is in EXPORTED VG "design" [996 MB / 244 MB free]
pvscan -- total: 2 [1.95 GB] / in use: 2 [1.95 GB] / in no VG: 0 [0]

If i try the vgimport i get this message:

vgimport -- ERROR "pv_read(): PV identifier invalid" reading physical volume "/dev/sda1"

Anyone got a hint what i need to do to get this LVM up and running again ?

Ray

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