Switch off journal on ext3 online
Brought to you by:
tytso
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?
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.