lvm 扩缩容

(base) [root@bpit59 ~]# df -Thl
	(base) [root@bpit59 ~]# lsblk
	(base) [root@bpit59 ~]# lvs
	mkdir -p /tmp/home
	cp -r /home/* /tmp/home/
	umount /home
	lvs        :进行查看
	lvreduce -L 100G /dev/centos/home	
	lvextend -r -l 100%free /dev/centos/root
	xfs_growfs /dev/centos/root
	mkfs.xfs -f /dev/centos/home
	mount -a
    

  

参考:

https://blog.csdn.net/qq_46497658/article/details/122188234

 

posted @ 2023-05-11 18:54  大川哥  阅读(12)  评论(0编辑  收藏  举报