Linux基础教程学习笔记之创建逻辑卷
创建逻辑卷配置:
fdisk /dev/vdb n,e,+200M,t,8e,p,w
partprobe; ll /devvdb*
pvcreate /dev/vdb5; pvscan
vgcreate -s 16M datastore /dev/vdb5
vgdisplay
lvcreate -l 10 -n database datastore
mkfs -t ext4/xfs /dev/datastore/database
mkdir /mnt/database
vim /etc/fstab
/dev/datastore/database /mnt/database ext4 defaults 0 0(不检测,不备份)