CentOS 6.4 以降の論理ボリュームのシンプロビジョニング

CentOS 6.4 (RHEL 6.4) 以降(CentOS 7はもちろん)は論理ボリュームのシンプロビジョニングが可能になっていた。
実際の運用で使用するかどうかはともかく、大きなボリュームを使用する検証作業を行ううえではとても役に立つ。

# pvcreate /dev/sde
  Physical volume "/dev/sde" successfully created
# vgcreate thinpoolvg /dev/sde
  Volume group "thinpoolvg" successfully created
# lvcreate -L 10G -T --thinpool pool thinpoolvg
  Logical volume "pool" created

# lvdisplay thinpoolvg/pool
  --- Logical volume ---
  LV Name                pool
  VG Name                thinpoolvg
  LV UUID                FNWrpA-Pwi5-uQ1G-ssFm-2QIl-q0M3-V1jKXj
  LV Write Access        read/write
  LV Creation host, time garnet-vm01, 2015-03-03 09:51:47 +0900
  LV Pool transaction ID 0
  LV Pool metadata       pool_tmeta
  LV Pool data           pool_tdata
  LV Pool chunk size     64.00 KiB
  LV Zero new blocks     yes
  LV Status              available
  # open                 0
  LV Size                10.00 GiB
  Allocated pool data    0.00%
  Allocated metadata     0.62%
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:6
# lvcreate -T thinpoolvg/pool -V 50G -n volume50g
  Logical volume "volume50g" created

# lvcreate -T thinpoolvg/pool -V 100G -n volume100g
  Logical volume "volume100g" created

# lvdisplay thinpoolvg/volume50g
  --- Logical volume ---
  LV Path                /dev/thinpoolvg/volume50g
  LV Name                volume50g
  VG Name                thinpoolvg
  LV UUID                M99pkt-QnoE-TuPi-wa6M-yyax-M5yU-XP10Px
  LV Write Access        read/write
  LV Creation host, time garnet-vm01, 2015-03-03 09:53:54 +0900
  LV Pool name           pool
  LV Status              available
  # open                 0
  LV Size                50.00 GiB
  Mapped size            0.00%
  Current LE             12800
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:7

# lvdisplay thinpoolvg/volume100g
  --- Logical volume ---
  LV Path                /dev/thinpoolvg/volume100g
  LV Name                volume100g
  VG Name                thinpoolvg
  LV UUID                Vu7efq-DuRG-Vw1m-fA0B-g9iY-CU6O-CqMjop
  LV Write Access        read/write
  LV Creation host, time garnet-vm01, 2015-03-03 10:32:36 +0900
  LV Pool name           pool
  LV Status              available
  # open                 0
  LV Size                100.00 GiB
  Mapped size            0.00%
  Current LE             25600
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:8