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   ]