从centos-home分区下取出100G的空间添加到centos-root分区上去。
1.卸载centos-home分区
umount /home
2.从新设定centos-home的大小
resize2fs -p /dev/mapper/centos-home 5G
e2fsck -f /dev/mapper/centos-home
检查是否成功
mount /home
df -h
3.将home逻辑分区减小到指定大小
lvreduce -L 5G /dev/mapper/centos-home
查询卷组的信息
vgdisplay
--- Volume group ---
VG Name centos
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 39.70 GiB
PE Size 4.00 MiB
Total PE 1
从centos-home分区下取出100G的空间添加到centos-root分区上去
最新推荐文章于 2024-05-28 10:40:33 发布