Take the example of adjusting the home space to the / directory
#Reduce the XXG space of /home partition, such as 980G, remove 900G
lvreduce -L -900G /dev/mapper/centos-home
#Increase / partition XXG space
lvextend -L +900G /dev/mapper/centos-root
y
Execute/Scale Operation
xfs_growfs /dev/mapper/centos-root
#Remount the home partition
mount -t /dev/mapper/centos-home /home
If an error is reported
yum install -y psmisc
fuser -kuc /dev/mapper/centos-home
#Reformat the home partition
lvremove -f /dev/mapper/centos-home
vgdispaly
View free space
#Recreate the home volume with an allocation size of 190G
lvcreate -L 64GB -n home centos
#Format the new home partition
mkfs.xfs /dev/centos/home
#Mount the home partition
mount /dev/mapper/centos-home