Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j5D2qwu15804 for ; Sun, 12 Jun 2005 22:53:00 -0400 Received: from mail.lnnu.edu.cn (mail.lnnu.edu.cn [218.25.162.219]) by mx3.redhat.com (8.12.11/8.12.11) with SMTP id j5D2qdVZ029650 for ; Sun, 12 Jun 2005 22:52:43 -0400 Message-Id: <200506130252.j5D2qdVZ029650@mx3.redhat.com> From: "cwinl" Date: Mon, 13 Jun 2005 10:51:58 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01C57005.EBFDBFB0" Subject: [linux-lvm] how to move data from one PV to other PV automaticly? Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C57005.EBFDBFB0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit 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! ------=_NextPart_000_000A_01C57005.EBFDBFB0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
hi,all:
    i have a VG=20 with 3 PV.
here is 'pvdisplay' = information:
 
------------------------------------------------
 
ftp:~# pvdisplay=20 -v
    Scanning for physical volume names
  = ---=20 Physical volume ---
  PV=20 Name           &nb= sp;  =20 /dev/sdb1
  VG=20 Name           &nb= sp;  =20 nicvg
  PV=20 Size           &nb= sp;  =20 838.09 GB / not usable 0  
 =20 Allocatable           = yes (but=20 full)
  PE Size (KByte)      =20 32768
  Total=20 PE            = ; =20 26819
  Free=20 PE            = ;  =20 0
  Allocated = PE         =20 26819
  PV=20 UUID           &nb= sp;  =20 IyahCr-NwPt-dUsC-UuVa-ki1y-5X4X-NRReLA
  
  --- = Physical=20 volume ---
  PV=20 Name           &nb= sp;  =20 /dev/sdc1
  VG=20 Name           &nb= sp;  =20 nicvg
  PV=20 Size           &nb= sp;  =20 558.72 GB / not usable 0  
 =20 Allocatable           = yes (but=20 full)
  PE Size (KByte)      =20 32768
  Total=20 PE            = ; =20 17879
  Free=20 PE            = ;  =20 0
  Allocated = PE         =20 17879
  PV=20 UUID           &nb= sp;  =20 NG6cMz-I12Q-6X8T-58gn-Fvov-gYs9-HCvYyw
  
  --- = Physical=20 volume ---
  PV=20 Name           &nb= sp;  =20 /dev/sdd1
  VG=20 Name           &nb= sp;  =20 nicvg
  PV=20 Size           &nb= sp;  =20 558.72 GB / not usable 0  
 =20 Allocatable           = yes (but=20 full)
  PE Size (KByte)      =20 32768
  Total=20 PE            = ; =20 17879
  Free=20 PE            = ;  =20 0
  Allocated = PE         =20 17879
  PV=20 UUID           &nb= sp;  =20 qqm9Ua-5owd-ZhVM-nU5D-wZeL-klu1-t0Ij68
 
----------------------------------------------------------------= -------
 
i want to move all = data from=20 /dev/sdb1 to another two PV (/dev/sdc1 and /dev/sdd1)=20 automaticly.
so i can remove the = unstable=20 PV /dev/sdb1 and repair it.
then i will restore = a new=20 /dev/sdb1 device.
 
the disk space is = all=20 right.
here is 'df'=20 information:
 
---------------------------------
 
ftp:~#=20 df
Filesystem         &nb= sp; =20 Size  Used Avail Use% Mounted=20 on
/dev/sda5         &nbs= p;  =20 1.9G  545M  1.4G  29%=20 /
tmpfs          &nb= sp;    =20 1014M  4.0K 1014M   1%=20 /dev/shm
/dev/sda1        &nbs= p;    =20 95M   39M   56M  42%=20 /boot
/dev/sda6         &= nbsp;   =20 14G  444M   14G   4%=20 /var
/dev/mapper/nicvg-niclv
      &n= bsp;           &nb= sp;  =20 2.0T  774G  1.2T  40% /ftproot
 
---------------------------------
 
the volumn=20 '/dev/mapper/nicvg-niclv' is on the VG above.
 
how can finish=20 it?
 
any suggestion is=20 regarded!
------=_NextPart_000_000A_01C57005.EBFDBFB0--