Centos7.0 8.0磁盘在线扩容

yum install cloud-utils-growpart xfsprogs -y

fdisk -l

df -Th

growpart /dev/vda 1

resize2fs /dev/vda1 【centos7.0】
xfs_growfs /dev/vda1 【centos8.0】


df -h

 

 

 

https://www.alibabacloud.com/help/zh/elastic-compute-service/latest/resize-partitions-and-file-systems-of-linux-system-disks?spm=a2c63.p38356.0.0.5f2a4c236leY5E#concept-ocb-htw-dhb

 

 

 

清理服务器文件常用命令

du -h --max-depth=1

posted @ 2022-09-13 19:30  大漠孤烟~  阅读(64)  评论(0编辑  收藏  举报