Re: shuffling drives along the chain?

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

 



On Fri, Jun 27, 2003 at 09:03:28AM +1200, Steve Wray wrote:
> 
> Thanks,
> I was a bit worried as one time I reassembled
> a machine with two drives swapped around accidentally;
> hdc and hde were swapped and had PV's in the same VG.
> LVM got terribly confused even though vgscan is run
> at boot time. Fortunately I had just taken a backup
> before starting otherwise I'd have lost lots of data!

Hmm, LVM should have covered that as Joe pointed out because
PVs are found by identifier rather than actual devnode.

Do you have detailed records of that problem still so that we
can spot some light on this?

> 
> 
> Joe Thornber <thornber@sistina.com> writes:
> 
> > On Wed, Jun 25, 2003 at 02:14:59PM +1200, Steve Wray wrote:
> > > 
> > > I have an existing LVM setup over 3 hard drives,
> > > hda, hdc, hde, with PV's and VG's set up just so.
> > > 
> > > I wish to add a new drive as the new hda, shifting
> > > the other drives down the chain such that the old hda
> > > becomes the new hdb and so forth.
> > > 
> > > The new drive will have new VG's on its PV's with
> > > no overlap; no PV on the new drive will be part
> > > of any VG on the old drives.
> > > 
> > > Is it just a simple matter of doing the 
> > > vgchange -an <volume group>, vgexport <volume group>, 
> > > shutdown & move the drives, reboot, 
> > > install Linux onto the new drive and then
> > > pvscan, vgimport <volume group> <physical volumes>
> > > dance?
> > > 
> > > Or are there any gotchas to be aware of?
> > 
> > You don't need to export/import if you are just moving devices around.
> > Just vgscan after moving them.
> > 
> > - Joe
> 
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

-- 

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
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux