SourceForge has been redesigned. Learn more.

resize2fs shrink - removing journal

  • John Finigan

    John Finigan - 2010-11-16

    I am wondering if the common advice about running tune2fs -O^has_journal to convert to ext2 before shrinking is still meaningful.  Shrinking ext3 with journal seems to work fine, but I haven't seen anything in the e2fsprogs release notes about the change being made, or any direct answer googling around.

    Should I have any reservations about shrinking ext3 or 4 with a journal?  If not, when did resize2fs shrink begin to support a journal being present?

  • Theodore Ts'o

    Theodore Ts'o - 2010-12-17

    i'm not sure where this "common advice" to remove the journal before resizing came from, to be honest.   Shrinking an ext3 file system has always worked as long as I can remember….

    Can you offer up a reference of where this "common knowledge" came from?


    • Ted
  • Theodore Ts'o

    Theodore Ts'o - 2010-12-19

    Yeah, this makes no sense.  RHEL3 was released in late 2003, and resize2fs definitely should have been able to handle ext3 file sysems by then.  The first ext3 support went into e2fsprogs in August 2000, and I was using ext3 from almost the very beginning.
    (Resize2fs support was folded in in 1997, so it does predate ext3, but by 2003 I'm sure resize2fs was fully supporting ext3.)


Log in to post a comment.