Bracing against the wind  
www.documentroot.com  

Monday, January 18, 2010

Detected aborted journal

Got the error message "Detected aborted journal" and "Remounting filesystem read-only".

Since it was a remote server I wanted to fix it without rebooting to single user mode, or hopefully, not reboot at all.

# run fuser -v -m /home/ and shut down processes accessing drive (mounted as /home, extra slash needed)
fuser -v -m /home/
/etc/init.d/httpd stop
fuser -v -m /home/
# kill some bash process i'd left open
fuser -k -m /home/


# no more procs? ... unmount
umount /home

# ditch journal
tune2fs -O ^has_journal /dev/sda6

# fix drive
fsck /dev/sda6

# put back journal
tune2fs -j /dev/sda6

# remount
mount /home

# start needed services

/etc/init.d/httpd start
/etc/init.d/postgresql start


# pager goes off... "system back up"... yay

Labels:


[View/Post Comments] [Digg] [Del.icio.us] [Stumble]

Home | Email me when this weblog updates: | View Archive

(C) 2002 Erik Aronesty/DocumentRoot.Com. Right to copy, without attribution, is given freely to anyone for any reason.


Listed on BlogShares | Bloghop: the best pretty good | Blogarama | Technorati | Blogwise