[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Fwd: [linux-lvm] LVM export]



On Wed, May 09, 2001 at 05:11:21AM +0200, Harald Kerndler wrote:
> 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 --


> 
> >
> >
> >   ------------------------------------------------------------------------
> >
> > Subject: Re: [linux-lvm] LVM export
> > Date: Mon, 7 May 2001 13:58:47 +0200
> > From: Torsten Landschoff <torsten pclab ifg uni-kiel de>
> > Reply-To: linux-lvm sistina com
> > To: linux-lvm sistina com
> > References: <3AF68126 93ACCE81 lanzenberg at> <20010507134024 A26477 sistina com>
> >
> > On Mon, May 07, 2001 at 01:40:24PM +0000, Heinz J. Mauelshagen wrote:
> >
> > > 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
> > linux-lvm sistina com
> > 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" <Mauelshagen sistina com>
> > Reply-To: linux-lvm sistina com
> > To: linux-lvm sistina com
> > References: <3AF68126 93ACCE81 lanzenberg at>
> >
> > On Mon, May 07, 2001 at 01:04:06PM +0200, h kerndler lanzenberg at 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"?
> >
> > > 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.
> >
> > > The LVM has not imported the LVM on a other disc, becaus I became a
> > > Failure.
> >
> > What was the failure message?
> >
> > > 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.
> >
> > >
> > > Thanks, Harald
> > > _______________________________________________
> > > linux-lvm mailing list
> > > linux-lvm sistina com
> > > 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
> > Mauelshagen Sistina com                           +49 2626 141200
> >                                                        FAX 924446
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm sistina com
> > 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: dev5 jusline com
> 
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm sistina com
> 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
Mauelshagen Sistina com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]