ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Resize2fs Fails to Resize Ext4

    Scheduled Pinned Locked Moved IT Discussion
    centoslinuxrhelresize2fsext4resize4fslvm
    1 Posts 1 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      You may have run into this error while resizing an existing ext4 partition:

      resize2fs /dev/rootvg/lv_root
      resize2fs: Filesystem has unsupported feature while trying to open /dev/rootvg/lv_root
      Couldn't find valid filesystem superblock.
      

      You will encounter this if you follow Red Hat’s documentation on ext4 resizing. The error comes from a mistake in the documentation. The correct command is resize4fs, not resize2fs for an ext4 filesystem.

      resize4fs /dev/rootvg/lv_root
      

      A relatively easy one to fix but not so easy to identify since the official documentation acts like resize2fs will work just fine.

      Originally found on my Linux blog in 2012 here: http://web.archive.org/web/20140822224153/http://www.scottalanmiller.com/linux/2012/08/06/resize2fs-fails-to-resize-ext4/

      1 Reply Last reply Reply Quote 3
      • 1 / 1
      • First post
        Last post