resize2fs: Bad magic number in super-block while trying to open /dev/rhel/root Couldn't find valid filesystem superblock.

When i updated the PV, VG and LV and run resize2fs LV name getting this error 
resize2fs: Bad magic number in super-block while trying to open /dev/rhel/root Couldn’t find valid filesystem superblock
I got eh Answer 


# resize2fs /dev/rhel/root
resize2fs: Bad magic number in super-block while trying to open /dev/rhel/root Couldn’t find valid filesystem superblock.
When you get this error Run #xfs_growfs /dev/rhel/root (LVname)

# xfs_growfs /dev/rhel/root

meta-data=/dev/mapper/rhel-root isize=256 agcount=4, agsize=1144832 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0 spinodes=0
data = bsize=4096 blocks=4579328, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0

Run Df- h to verify 

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rhel-root 98G 1.8G 96G 2% /
resize2fs: Bad magic number in super-block while trying to open /dev/rhel/root Couldn't find valid filesystem superblock. resize2fs: Bad magic number in super-block while trying to open /dev/rhel/root Couldn't find valid filesystem superblock. Reviewed by TecGeeks on November 28, 2017 Rating: 5

No comments:

Get Your Business Online Now


Powered by Blogger.