All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] how to move data from one PV to other PV automaticly?
@ 2005-06-13  2:51 cwinl
  2005-06-13  5:13 ` Garrick Staples
  0 siblings, 1 reply; 5+ messages in thread
From: cwinl @ 2005-06-13  2:51 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 2122 bytes --]

hi,all:
    i have a VG with 3 PV.
here is 'pvdisplay' information:
 
------------------------------------------------
 
ftp:~# pvdisplay -v
    Scanning for physical volume names
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               nicvg
  PV Size               838.09 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              26819
  Free PE               0
  Allocated PE          26819
  PV UUID               IyahCr-NwPt-dUsC-UuVa-ki1y-5X4X-NRReLA
   
  --- Physical volume ---
  PV Name               /dev/sdc1
  VG Name               nicvg
  PV Size               558.72 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              17879
  Free PE               0
  Allocated PE          17879
  PV UUID               NG6cMz-I12Q-6X8T-58gn-Fvov-gYs9-HCvYyw
   
  --- Physical volume ---
  PV Name               /dev/sdd1
  VG Name               nicvg
  PV Size               558.72 GB / not usable 0   
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              17879
  Free PE               0
  Allocated PE          17879
  PV UUID               qqm9Ua-5owd-ZhVM-nU5D-wZeL-klu1-t0Ij68
 
-----------------------------------------------------------------------
 
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.
 
the disk space is all right.
here is 'df' information:
 
---------------------------------
 
ftp:~# df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             1.9G  545M  1.4G  29% /
tmpfs                1014M  4.0K 1014M   1% /dev/shm
/dev/sda1              95M   39M   56M  42% /boot
/dev/sda6              14G  444M   14G   4% /var
/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!

[-- Attachment #2: Type: text/html, Size: 7058 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] how to move data from one PV to other PV automaticly?
  2005-06-13  2:51 [linux-lvm] how to move data from one PV to other PV automaticly? cwinl
@ 2005-06-13  5:13 ` Garrick Staples
  2005-06-13  6:47   ` Steven Law
  2005-06-13  7:33   ` Steven Law
  0 siblings, 2 replies; 5+ messages in thread
From: Garrick Staples @ 2005-06-13  5:13 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [linux-lvm] how to move data from one PV to other PV automaticly?
  2005-06-13  5:13 ` Garrick Staples
@ 2005-06-13  6:47   ` Steven Law
  2005-06-13  8:20     ` David Mohr
  2005-06-13  7:33   ` Steven Law
  1 sibling, 1 reply; 5+ messages in thread
From: Steven Law @ 2005-06-13  6:47 UTC (permalink / raw)
  To: 'LVM general discussion and development'

 

> -----Original Message-----
> From: linux-lvm-bounces@redhat.com 
> [mailto:linux-lvm-bounces@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
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [linux-lvm] how to move data from one PV to other PV automaticly?
  2005-06-13  5:13 ` Garrick Staples
  2005-06-13  6:47   ` Steven Law
@ 2005-06-13  7:33   ` Steven Law
  1 sibling, 0 replies; 5+ messages in thread
From: Steven Law @ 2005-06-13  7:33 UTC (permalink / raw)
  To: 'LVM general discussion and development'

 

> -----Original Message-----
> From: linux-lvm-bounces@redhat.com 
> [mailto:linux-lvm-bounces@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 
> filesystem so this shouldn't be a problem.

my kernel is 2.6.10

> 
> Then reduce the size of niclv and you'll be able to move the 
> PEs off of sdb1.
> 
> 

i have add 10 disks on that server and there is no space to add in even one
new disk.
data is too huge , no space on any other server to backup them.
so what i want to do is to move data from PV to PV automaticly.
i have got enough space on the VG(disk usage is 40%).

> --
> Garrick Staples, Linux/HPCC Administrator University of 
> Southern California
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] how to move data from one PV to other PV automaticly?
  2005-06-13  6:47   ` Steven Law
@ 2005-06-13  8:20     ` David Mohr
  0 siblings, 0 replies; 5+ messages in thread
From: David Mohr @ 2005-06-13  8:20 UTC (permalink / raw)
  To: LVM general discussion and development

On 6/13/05, Steven Law <cwinl-linux-lvm@lnnu.edu.cn> wrote:
> > -----Original Message-----
> > From: linux-lvm-bounces@redhat.com
> > [mailto:linux-lvm-bounces@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-13  8:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-13  2:51 [linux-lvm] how to move data from one PV to other PV automaticly? cwinl
2005-06-13  5:13 ` Garrick Staples
2005-06-13  6:47   ` Steven Law
2005-06-13  8:20     ` David Mohr
2005-06-13  7:33   ` Steven Law

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.