- lvs命令分盘
pvcreate /dev/sdc
vgcreate data_vg /dev/sdc
lvcreate -n data_lv1 data_vg -L 40G
lvcreate -n data_lv2 data_vg -L 40G
补充-L跟大小,还有%比 - mkfs初始化
mkfs.ext4 /dev/data_vg/data_lv1
mkfs.ext4 /dev/data_vg/data_lv2 - 目录和磁盘绑定
mkdir -p /tmp/test1
mkidr -p /tmp/test2
echo “/dev/data_vg/data_lv1 /tmp/test1 ext4 defaults 1 0” 》 /etc/fstab
echo “/dev/data_vg/data_lv2 /tmp/test2 ext4
lvs常用命令
最新推荐文章于 2024-06-18 19:02:36 发布