Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#38 Switch off journal on ext3 online

closed
nobody
None
1
2009-12-02
2009-12-02
Steiner Beat
No

Situation: restore disk, forgot to switch off journaling before starting restore process (would enhance restore performance).
Would be nice not to have to start over restore process.

$ tune2fs -f -O ^has_journal /dev/disk/...
tune2fs 1.40.8 (13-Mar-2008)
The has_journal flag may only be cleared when the filesystem is
unmounted or mounted read-only.

Supposing the filesystem is intact, would it be easy to mark the journal as dirty, inhibiting any replay and stop journaling?

Discussion

  • Steiner Beat
    Steiner Beat
    2009-12-02

    • priority: 5 --> 1
    • status: open --> closed
     
  • Steiner Beat
    Steiner Beat
    2009-12-02

    The main restore performance issue was the synchronous write.
    $ mount -o remount,async /mountpoint
    (replace /mountpoint with your actual mount point)
    works perfectly. The log is now mainly kept in RAM, which makes not much sense in case of a crash.
    So, don't forget to
    $ mount -o remount,sync /mountpoint
    afterwards.

    Finally, disabling logging on the fly is not important at all.