Menu Close

Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

5.3.2. 移​​​​​​​動​​​​​​​資​​​​​​​料​​​​​​​

您​​​​​​​可​​​​​​​透​​​​​​​過​​​​​​​使​​​​​​​用​​​​​​​ pvmove 指​​​​​​​令​​​​​​​來​​​​​​​將​​​​​​​ /dev/sdc1 中​​​​​​​所​​​​​​​有​​​​​​​已​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​實​​​​​​​體​​​​​​​扇​​​​​​​區​​​​​​​移​​​​​​​至​​​​​​​ /dev/sdb1。​​​​​​​pvmove 指​​​​​​​令​​​​​​​的​​​​​​​執​​​​​​​行​​​​​​​可​​​​​​​能​​​​​​​會​​​​​​​花​​​​​​​上​​​​​​​一​​​​​​​段​​​​​​​時​​​​​​​間​​​​​​​。​​​​​​​
[root@tng3-1 ~]# pvmove /dev/sdc1 /dev/sdb1
  /dev/sdc1: Moved: 14.7%
  /dev/sdc1: Moved: 30.3%
  /dev/sdc1: Moved: 45.7%
  /dev/sdc1: Moved: 61.0%
  /dev/sdc1: Moved: 76.6%
  /dev/sdc1: Moved: 92.2%
  /dev/sdc1: Moved: 100.0%
移​​​​​​​動​​​​​​​了​​​​​​​資​​​​​​​料​​​​​​​之​​​​​​​後​​​​​​​,您​​​​​​​便​​​​​​​會​​​​​​​看​​​​​​​見​​​​​​​ /dev/sdc1 上​​​​​​​的​​​​​​​所​​​​​​​有​​​​​​​空​​​​​​​間​​​​​​​都​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​。​​​​​​​
[root@tng3-1 ~]# pvscan
  PV /dev/sda1   VG myvg   lvm2 [17.15 GB / 0    free]
  PV /dev/sdb1   VG myvg   lvm2 [17.15 GB / 10.80 GB free]
  PV /dev/sdc1   VG myvg   lvm2 [17.15 GB / 17.15 GB free]
  Total: 3 [51.45 GB] / in use: 3 [51.45 GB] / in no VG: 0 [0   ]