Linux - Resize2fs operation not permitted while trying to add group, Error Operation not permitted lvextend
Resize2fs operation not permitted while trying to add group
When I tried to increase logical volume on the a server after rescanning the disk, I got the below error when using the resize2fs command.Command used to extend an logical volume
# lvextend -L +40G /dev/VG_MyApp/backup # resize2fs /dev/VG_MyApp/backup
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/VG_MyApp/backup is mounted on /backup; on-line resizing required
old desc_blocks = 241, new_desc_blocks = 405
Performing an on-line resize of /dev/VG_MyApp/backup to 106008576 (1k) blocks.
resize2fs: Operation not permitted While trying to add group #1234
The solution to this problem is the journal was to small and has to be re-created and do a filessytem check.
# dumpe2fs /dev/VG_MyApp/backup | grep -i 'journal size' Journal size: 4096k
# tune2fs -O ^has_journal /dev/VG_MyApp/backup
# tune2fs -j /dev/VG_MyApp/backup Creating journal inode: done
# dumpe2fs /dev/VG_MyApp/backup | grep -i 'journal size' Journal size: 32MAfter that do a filesystem check and issue the resize2fs command, which asks to run e2fsck
# resize2fs /dev/mapper/VGApp-stipsti resize2fs 1.41.12 (17-May-2010) Please run 'e2fsck -f /dev/mapper/VGApp-stipsti' first.
# e2fsck -f /dev/mapper/VGApp-stipsti e2fsck 1.41.12 (17-May-2010) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information
Thats it, now you will be able to extend the filesystem using resize2fs.
The topic on Linux - Resize2fs operation not permitted while trying to add group is posted by - Math
Hope you have enjoyed, Linux - Resize2fs operation not permitted while trying to add groupThanks for your time