Linux - Resize2fs operation not permitted, Error - resize2fs Operation not permitted

Resize2fs operation not permitted


Error - resize2fs: Operation not permitted While trying to add group

Extending LVM partition and resize it
# lvextend -L+1G /dev/VGw3/calc

# resize2fs /dev/VGw3/calc

Today while resizing the LVM I was receiving the below error message.

resize2fs: Operation not permitted While trying to add group #1234

The fix is to remove and recreate the journal. If that doesnt work, then take a backup of filesystem and run the command
  # dumpe2fs /dev/VGw3/calc | grep Journal\\ size

Journal size: 32M
  # tune2fs -O ^has_journal /dev/VGw3/calc

  # tune2fs -j /dev/VGw3/calc  

Creating journal inode: done
  # dumpe2fs /dev/VGw3/calc | grep Journal\\ size

After executing the above commands try to resize filesystem again
  # resize2fs /dev/VGw3/calc

If the above execution dosent work then you can make a filesystem check.
  # e2fsck -f /dev/VGw3/calc

  # fsck -C -V -y /dev/VGw3/calc

If that dosent work even after filesystem check, then make sure you have the backup of the filessytem and do mkfs you can try to reboot the server and do it.
  # mkdir /backup

  # du --max-depth=1 -h

  # mv * /backup

  # mkfs.ext4 /dev/VGw3/calc

  # cd /backup

  # mv * /calc

The topic on Linux - Resize2fs operation not permitted is posted by - Maha

Hope you have enjoyed, Linux - Resize2fs operation not permittedThanks for your time

Tech Bluff