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

David Mohr squisher at gmail.com
Mon Jun 13 08:20:55 UTC 2005


On 6/13/05, Steven Law <cwinl-linux-lvm at lnnu.edu.cn> wrote:
> > -----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.

man resize_reiserfs, then use (c)fdisk to reduce the partition.

~David




More information about the linux-lvm mailing list