CentOS 扩容系统盘&挂载数据盘

222 阅读1分钟

系统盘扩容

登录服务器,依次执行下下面的命令,对系统盘进行扩容:

yum install -y cloud-utils-growpart
growpart /dev/vda 1
xfs_growfs /

宝塔面板挂载数据盘

yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh