centos7 动态扩容


sudo df -h

sudo tar cvf /run/home.tar /home

sudo fuser -km /home

sudo umount /home

sudo lvremove /dev/mapper/centos-home

sudo lvextend -L +1T /dev/mapper/centos-root

sudo xfs_growfs /dev/mapper/centos-root

sudo lvcreate -L 2.5T -n/dev/mapper/centos-home

sudo mkfs.xfs  /dev/mapper/centos-home

sudo mount /dev/mapper/centos-home

sudo tar xvf /run/home.tar -C /