OCI: Resizing the EXT filesystem fails with “resize2fs: Permission denied to resize filesystem" — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

OCI: Resizing the EXT filesystem fails with “resize2fs: Permission denied to resize filesystem"

Applies To:
Oracle Linux Cloud Service - Version Oracle Linux 6.0 and later
Oracle Cloud Infrastructure
Information in this document applies to any platform.

Symptoms:
Resizing the EXT4 filesystem throwing below error:

# resize2fs /dev/mapper/vg1-lv1
resize2fs 1.46.2 (28-Feb-2021)
Filesystem at /dev/mapper/vg1-lv1 is mounted on /u02; on-line resizing required
old_desc_blocks = 37, new_desc_blocks = 50
resize2fs: Permission denied to resize filesystem

Cause:
Following errors are reported in dmesg logs:

[ 6507.104025] EXT4-fs warning (device dm-1): ext4_resize_begin:83: There are errors in the filesystem, so online resizing is not allowed

Inconsistency can prevent various file system operations, including online resizing. To proceed with the resize operation, need to fix the file system errors using a file system check and repair tool.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!