一、逻辑卷LVM
1. LVM 概述
LVM:Logical Volume Manage 逻辑卷管理
能够在保持现有数据不变的情况下动态调整磁盘容量,从而提高磁盘管理的灵活性
/boot 分区用于存放引导文件,不能基于 LVM 创建
2. LVM机制概念
3. LVM 的管理命令
pvcreate 设备名1 [设备名2 .....] #创建物理卷
vgcreate 卷组名 物理卷名1 物理卷名2 .... #创建卷组
vgextend 卷组名 物理卷名1 .... #卷组扩容
lvcreate -L 容量大小 -n 逻辑卷名 卷组 #从卷组中创建逻辑卷 # -l 小写l 表示pe个数
lvextend -L +容量大小 逻辑卷 #将逻辑卷扩容
mkfs -t 文件系统 逻辑卷 #格式化逻辑卷
xfs_growfs 逻辑卷 #扩展xfs格式文件系统
resize2fs 逻辑卷 #扩展ext4 格式文件系统
功能
|
物理卷管理
|
卷组管理
|
逻辑卷管理
|
Scan 扫描
|
pvscan
|
vgscan
|
lvscan
|
Creat 建立
|
pvcreate
|
vgcreate
|
lvcreate
|
Display 显示
|
pvdisplay
|
vgdisplay
|
lvdisplay
|
Remove 删除
|
pvremove
|
vgremove
|
lvremove
|
Extend
|
————
|
vgextend
|
lvextend
|
Reduce
|
————
|
vgextend
|
lvextend
|
4.
原文:https://www.cnblogs.com/darryallen/p/14976915.html