差分

移動先: 案内検索

LVMの構築方法

42 バイト追加, 2015年7月27日 (月) 17:34
/* 論理ボリュームグループ作成 */
ここでのPVは、用意しているパーティション /dev/sdc1 にあたります。
 <ttpre class="bash">
# vgcreate vg_ext /dev/sdc1
No physical volume label read from /dev/sdc1
Physical volume "/dev/sdc1" successfully created
Volume group "vg_ext" successfully created
</ttpre
VGの内容を確認するにはvgdisplayを使います。
 <ttpre class="bash">
# vgdisplay vg_ext
--- Volume group ---
Free PE / Size 127 / 508.00 MiB
VG UUID KHZvkW-Adlo-hjNO-xZOO-cHeV-lJPi-8YNBEk
</ttpre
PE (Physical Extent)のサイズが4.00 MiBとなっているのはデフォルトです。
vgcreateを実行する際にオプション''-s s''(もしくは ''--physicalextentsize '') を利用します。
32mを指定した場合、最大のLVは2TiBとなります。