Disk commands Leave a Comment / disk / By cloud host resize2fs: Bad magic number in super-block while trying to openuse xfs_growfsxfs file system support only extends not reduce. So if you want to resize the filesystem use xfs_growfs rather than resize2fs.lsblkblkidxfs_growfs /dev/xvda2