/ 레드햇

16.3 Creating an LVM Logical Volume

레드햇 rhcsa LVM vg fdisk command mkfs partprobe vgcreate pvcreate pvs lvs vgs EXT2
https://4am.kr/16-3-creating-an-lvm-logical-volume/
fdisk sdb
n
p
3
ENTER
+100M
p
t
3
l
8e
ENTER
w
partprobe
pvcreate --help
pvcreate /dev/sdb3
pvs
vgcreate --help
vgcreate vgmyvg /etc/sdb3
vgs
lvcreate --help
lvcreate -n lvmylv -L 96M vgmyvg
mkfs.ext2 /dev/vg
mkfs.ext2 /dev/vgmyvg/lvmylv
mount /dev/vgmyvg/lvmylv /mnt
mount | rep ^/dev
ls -l /dev/mapper/vgmyvg-lvmylv /dev/vgmyvg/lvmylv