Home / lvextend –resize do not resize ext4 filesystem

lvextend –resize do not resize ext4 filesystem

lvm disk
  • After running ‘lvextend’ with the ‘-r’ option as below.

# lvextend -L <size> -r -v /path/of/logical-volume

  • Instead of manually doing’resize2fs’ after performing the above lvextend command, the ext4 filesystem should Auto-resize itself. But instead, tune2fs shows the following output.

# tune2fs -l /name/of/logical-volume
tune2fs 1.38 (11-Aug-2007)
tune2fs: Filesystem has unsupported feature(s) while trying to open /path/of/logical-volume
Couldn't find valid filesystem superblock.

  • To fix the above issue, you should upgrade the lvm2 package.
  • As a workaround, you should extend the logical volume and then extend the ext4 filesystem with resize4fs.

# lvextend -L +4G /dev/VolGroup01/LogVol01
# resize4fs /dev/VolGroup01/LogVol01

  • Extending the logical volume and then manually resizing the filesystem with resize4fs resizes the filesystem successfully.

Leave a Reply