当前位置: 首页 > 工具软件 > Resize Magic > 使用案例 >

resize2fs: Bad magic number in super-block while trying to open Couldn't find valid filesystem

封梓
2023-12-01

[root@docker01 appserver]# lvextend -L 5g /dev/mapper/root--vg-var
  Size of logical volume root-vg/var changed from 3.00 GiB (768 extents) to 5.00 GiB (1280 extents).
  Logical volume root-vg/var successfully resized.
[root@docker01 appserver]# resize2fs /dev/mapper/root--vg-var
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /dev/mapper/root--vg-var
Couldn't find valid filesystem superblock.

[root@docker01 ~]#  mount |grep root--vg-var
/dev/mapper/root--vg-var on /var type xfs (rw,relatime,attr2,inode64,noquota)

[root@docker01 appserver]# xfs_growfs /dev/mapper/root--vg-var
meta-data=/dev/mapper/root--vg-var isize=512    agcount=4, agsize=196608 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=786432, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 786432 to 1310720

[root@docker01 appserver]# df -h
Filesystem                 Size  Used Avail Use% Mounted on
devtmpfs                   899M     0  899M   0% /dev
tmpfs                      910M     0  910M   0% /dev/shm
tmpfs                      910M  9.6M  901M   2% /run
tmpfs                      910M     0  910M   0% /sys/fs/cgroup
/dev/mapper/root--vg-root  5.0G   70M  5.0G   2% /
/dev/mapper/root--vg-usr   4.0G  1.5G  2.5G  38% /usr
/dev/mapper/root--vg-home  4.0G   33M  4.0G   1% /home
/dev/mapper/root--vg-opt   4.0G   33M  4.0G   1% /opt
/dev/mapper/root--vg-var   5.0G  1.8G  3.3G  35% /var

 

 

 类似资料:

相关阅读

相关文章

相关问答