差分

移動先: 案内検索

LVMの追加方法

49 バイト追加, 2015年7月27日 (月) 17:42
/* LVの拡張 */
=== LVの拡張 ===
VGからLVへ容量を追加します。VGからLVへ容量を追加します。現在のlv_rootをlvdisplayコマンドでチェックしてみます。
現在のlv_rootをlvdisplayコマンドでチェックしてみます。
 <ttpre class="bash">
# lvdisplay /dev/vg_c0/lv_root
--- Logical volume ---
- currently set to 256
Block device 253:0
</ttpre
コマンドlvextendを使いlv_rootに容量を追加します。
現在VGで利用できるPEの量は382なので、そこから300を利用します。
 <ttpre class="bash">
# lvextend -l +300 /dev/vg_c0/lv_root
Extending logical volume lv_root to 7.74 GiB
Logical volume lv_root successfully resized
</ttpre
コマンドlvscanを使って確認をします。
 <ttpre class="bash">
# lvscan
ACTIVE '/dev/vg_c0/lv_root' [7.74 GiB] inherit
...
</ttpre>
=== ファイルシステムの拡張 ===