1. Installed CentOS7.5 virtual machine but found inside the operating system home partition accounted for 400g root partition only 50g think not very good, so to change.
2. Methods. It seems to be an XFS file format that cannot be processed using RESIZE2FS, and it needs to be handled in a XFS_GROWFS way.
3. Method: Df-h View disk status
4. Then use
View the file format of the home partition
5. Uninstall the home section
Umount/home
6. Delete Home's LV
Lvremove/dev/centos/centos-home
Select Yes to operate
7. Expand the size of the root partition
Lvextend-l +350g/dev/mapper/centos-root
8. Conduct XFS_GROWFS
Xfs_growfs/dev/centos/root
9. Create the LV for home
Lvcreate-l 50gb-n Home CentOS
10. Creating a File system
Mkfs.xfs/dev/centos/home
11 Hanging on
Mount/dev/mapper/centos-home
Can
How Linux changes the root and home partition size summary