Red Hat Training

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

5.3.2. データの移動

pvmove コマンドを使用して、/dev/sdc1 内の すべての使用中の物理エクステントを /dev/sdb1 に移動することができます。pvmove コマンドは実行するのに長い時間がかかる場合があります。
# 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 上のすべての領域が空き領域になっていることを確認できます。
# 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   ]