CentOS7修改分区空间

CentOS7修改分区空间

一:减少/home空间   1.1:备份/home实质     cp -r/home/* /homebak   1.2:简略过载/home     umount /home   1.3:简略/home地方lv     lvremove /dev/mapper/centos-home   1.4:从新创造home的lv     lvcreate -L 6G -n home centos      L表白巨细,默许单元为M;n表白卷名;这边的centos是CentOS7安置体例的功夫就默许创造好的卷组名   1.5:文献体例方法为xfs     mkfs.xfs /dev/mapper/centos-home   1.6:过载     mount /dev/mapper/centos-home /home 二:兴建卷   2.1:察看卷组结余空间     vgdisplay [root@zz-01 /]# vgdisplay --- Volume group --- VG Name               centos System ID             Format                lvm2 Metadata Areas       ...