码迷,mamicode.com
首页 > 其他好文 > 详细

resize2fs: Bad magic number in super-block while trying to open

时间:2017-02-28 13:28:45      阅读:470      评论:0      收藏:0      [点我收藏+]

标签:erb   logical   while   logs   log   gic   row   resize   magic   

I am trying to resize a logical volume on CentOS7 but am running into the following error:

resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /dev/mapper/centos-root
Couldnt find valid filesystem superblock.

 

solution:

After a bit of trial and error... as mentioned in the possible answers, it turned out to require xfs_growfs rather than resize2fs.

xfs_growfs /dev/centos/root
df -h

 

 

ref: http://stackoverflow.com/questions/26305376/resize2fs-bad-magic-number-in-super-block-while-trying-to-open

resize2fs: Bad magic number in super-block while trying to open

标签:erb   logical   while   logs   log   gic   row   resize   magic   

原文地址:http://www.cnblogs.com/pinganzi/p/6478255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!