LVM設定 -LV作成-

全部ReiserFSで。 オンラインで拡張できるから2GBでいいや。

# for p in Home Var Portage Tmp Opt; do lvcreate -n$p -L2G VG0; done
# for p in /dev/VG0/*; do mkreiserfs $p; done

結果はこんな感じ

# lvdisplay
--- Logical volume ---
LV Name                /dev/VG0/Home
VG Name                VG0
LV UUID                PSpzkE-AmSp-EweF-f8lt-haH4-nZyK-L6mj9c
LV Write Access        read/write
LV Status              available
# open                 0
LV Size                2.00 GB
Current LE             512
Segments               1
Allocation             inherit
Read ahead sectors     0
Block device           253:0

--- Logical volume ---
LV Name                /dev/VG0/Var
VG Name                VG0
LV UUID                YqA1cx-B72h-K71V-Cor4-h6AX-qBO6-Q3I20K
LV Write Access        read/write
LV Status              available
# open                 0
LV Size                2.00 GB
Current LE             512
Segments               1
Allocation             inherit
Read ahead sectors     0
Block device           253:1

--- Logical volume ---
LV Name                /dev/VG0/Portage
VG Name                VG0
LV UUID                CICmO3-3Hnm-1K9e-gAfQ-aGRT-6F1f-XRw0aB
LV Write Access        read/write
LV Status              available
# open                 0
LV Size                2.00 GB
Current LE             512
Segments               1
Allocation             inherit
Read ahead sectors     0
Block device           253:2

--- Logical volume ---
LV Name                /dev/VG0/Tmp
VG Name                VG0
LV UUID                nH0nGd-523t-Hr3u-eOod-3swt-KXeD-ALH4lH
LV Write Access        read/write
LV Status              available
# open                 0
LV Size                2.00 GB
Current LE             512
Segments               1
Allocation             inherit
Read ahead sectors     0
Block device           253:3

--- Logical volume ---
LV Name                /dev/VG0/Opt
VG Name                VG0
LV UUID                msJKKf-2ISi-AkQ6-y4Ix-oZkb-4vG6-TnZ5UW
LV Write Access        read/write
LV Status              available
# open                 0
LV Size                2.00 GB
Current LE             512
Segments               1
Allocation             inherit
Read ahead sectors     0
Block device           253:4