阿里云ECS,Centos8磁盘扩容遇到的问题[错误信息:it cannot be grown]

问题描述:之前一台centos7.x也是磁盘扩容,按照一篇文章,很随意的就扩容成功了,这台centos8.x就不乐观了,各种尝试,但因为数据还在跑,也是一直很忐忑,输入命令一直报这个错误

[root@xxx ~]# growpart /dev/vda 1
NOCHANGE: partition 1 is size 209713119. it cannot be grown
[root@xxx ~]# resize2fs /dev/vda1
resize2fs 1.45.6 (20-Mar-2020)
resize2fs: Bad magic number in super-block while trying to open /dev/vda1
Couldn't find valid filesystem superblock.

解决方案:各种尝试之后,找到这篇官方的文章https://help.aliyun.com/knowledge_detail/155936.html,可能执行了这么一句

xfs_growfs /

之后就扩容成功了,有点神奇了。。。

 

posted @ 2021-09-18 22:04  wangbg  阅读(2128)  评论(0编辑  收藏  举报