[linux-lvm] how to move data from one PV to other PV automaticly?

Steven Law cwinl-linux-lvm at lnnu.edu.cn
Mon Jun 13 06:47:08 UTC 2005


 

> -----Original Message-----
> From: linux-lvm-bounces at redhat.com 
> [mailto:linux-lvm-bounces at redhat.com] On Behalf Of Garrick Staples
> Sent: Monday, June 13, 2005 1:14 PM
> To: LVM general discussion and development
> Subject: Re: [linux-lvm] how to move data from one PV to 
> other PV automaticly?
> 
> On Mon, Jun 13, 2005 at 10:51:58AM +0800, cwinl alleged:
> > hi,all:
> >     i have a VG with 3 PV.
> > here is 'pvdisplay' information:
> >   --- Physical volume ---
> >   PV Name               /dev/sdb1
> >   Free PE               0
> >    
> >   --- Physical volume ---
> >   PV Name               /dev/sdc1
> >   Free PE               0
> >    
> >   --- Physical volume ---
> >   PV Name               /dev/sdd1
> >   Free PE               0
> >  
> > i want to move all data from /dev/sdb1 to another two PV (/dev/sdc1 
> > and
> > /dev/sdd1) automaticly.
> > so i can remove the unstable PV /dev/sdb1 and repair it.
> > then i will restore a new /dev/sdb1 device.
> > /dev/mapper/nicvg-niclv
> >                       2.0T  774G  1.2T  40% /ftproot
> >  
> > ---------------------------------
> >  
> > the volumn '/dev/mapper/nicvg-niclv' is on the VG above.
> >  
> > how can finish it?
> >  
> > any suggestion is regarded!
> 
> The other 2 PVs (sdc1 and sdd1) are both full.  You can't 
> move any data on them with the current configuration.  You'll 
> need to free up ~840GB on nicvg before you can do it.
> 
> The first step would be to shrink the filesystem using the 
> correct utility for the filesystem (you didn't mention the 
> filesystem type).  Fortunately you have 1.2TB free on the 

my FS is reiserfs.
please tell me in detail.

> filesystem so this shouldn't be a problem.
> 
> Then reduce the size of niclv and you'll be able to move the 
> PEs off of sdb1.
> 
> 
> --
> Garrick Staples, Linux/HPCC Administrator University of 
> Southern California
> 




More information about the linux-lvm mailing list