LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2010, 04:46 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Rep: Reputation: 48
Aborted journal and volume remounted read-only??


I have errors like this in my messages file, and nobody can write to the volume its talking about. i'm assuming i need to reboot and do an e2fsck but what options would you recommend? -fyc i'm thinking but not sure. thanks for the help!!


journal_bmap: journal block not found at offset 5132 on hdb5
Aborting journal on device hdb5.
__journal_remove_journal_head: freeing b_committed_data
journal commit I/O error
ext3_abort called.
EXT3-fs error (device hdb5): ext3_journal_start_sb: Detected aborted journal
Remounting filesystem read-only
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 06-04-2010, 04:52 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Actually, what you need to do is remove the journal from the filesystem and then do the e2fsck -f. Then readd the journal and reboot. Of course to do all this you need the filesystem unmounted.

Code:
tune2sf -O ^has_journal /dev/<dev>
e2fsck -f /dev/<dev>
tune2sf -j /dev/<dev>
Regards,

Alunduil
 
2 members found this post helpful.
Old 06-04-2010, 04:54 PM   #3
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
What you're going to need to do is reboot to single user mode, make sure drive is unmounted and then fsck it. I would suggest -fn first run to see what it says... after that if necessary -fc and if there are tons of errors -fcy and you know you want to answer yes on everything... first thing first though, I would be get back up off that drive NOW.
 
0 members found this post helpful.
Old 06-04-2010, 04:55 PM   #4
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by alunduil View Post
Actually, what you need to do is remove the journal from the filesystem and then do the e2fsck -f. Then readd the journal and reboot. Of course to do all this you need the filesystem unmounted.

Code:
tune2sf -O ^has_journal /dev/<dev>
e2fsck -f /dev/<dev>
tune2sf -j /dev/<dev>
Regards,

Alunduil
Does removing the journal make me lose all my data or no? If it will just remove it then it can be re-added without data loss I'd be ok with that.
 
Old 06-04-2010, 04:56 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by rweaver View Post
What you're going to need to do is reboot to single user mode, make sure drive is unmounted and then fsck it. I would suggest -fn first run to see what it says... after that if necessary -fc and if there are tons of errors -fcy and you know you want to answer yes on everything... first thing first though, I would be get back up off that drive NOW.
luckily (i guess) this is my backup server, so its backups of all my other servers. I have a -fcy running now, figure might as well check it all since i have some time. but what about the bad journal thing?
 
Old 06-04-2010, 06:35 PM   #6
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Yes, the journal can be added and removed from ext3 at will.

Regards,

Alunduil
 
Old 06-04-2010, 06:51 PM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
So with those messages i was getting, is it absolutely necessary, a good idea, or just possible that i will need to drop and recreate the journal? Also, how long does that process take roughly?
 
Old 06-04-2010, 06:56 PM   #8
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Everything I've been told about dealing with an aborted journal says that you need to drop the journal, fsck, and re-add the journal. Simply get into an environment where you can unmount and work on the device in question and run the three commands that I suggested earlier.

Regards,

Alunduil
 
Old 06-04-2010, 06:59 PM   #9
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
ok, thanks, i'll give it a shot after my e2fsck -fcy finishes.
 
Old 06-04-2010, 07:39 PM   #10
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Here's to you not losing any files.

Regards,

Alunduil
 
Old 06-04-2010, 07:40 PM   #11
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
Thanks, I got my fingers crossed!
 
Old 06-05-2010, 08:25 AM   #12
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
So once my original e2fsck finishes, done without dropping the journal, do I still need to do another one once I drop the journal or can I just drop and create it skipping the e2fsck in the middle of those 2 commands?
 
Old 06-05-2010, 10:13 AM   #13
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
I'm not sure but I wouldn't take the risk of not doing it. Let us know how things go when it's all done.

Regards,

Alunduil
 
1 members found this post helpful.
Old 06-05-2010, 10:28 AM   #14
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
I just removed the journal and am now e2fsck'ing. Will let you know how it turns out. Thanks for answering!
 
Old 06-05-2010, 11:11 AM   #15
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,695

Original Poster
Rep: Reputation: 48
Journal rebuilt, said volume was clean on startup, and I just successfully did a du -sh * on the entire volume, which I couldn't do before! I think I'm ok!
I do have a question though, now my lost+found is 17GB though. I think I saw it say it was moving stuff to there during the e2fsck. All the file names in there look like a number sign than an inode number maybe? What are all those files? Does this mean I lost 17GB of data?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ext3 - Short read reading journal superblock izaakrach Linux - Hardware 4 10-28-2008 05:47 PM
[SOLVED] EXT3-fs error (device sd(8,7)) in start_transaction: Journal has aborted harikrishnan81 Linux - Newbie 4 04-25-2008 12:50 AM
EXT3-fs error (device md0) in start_transaction: Journal has aborted pilot11 Linux - Software 14 02-27-2007 04:14 AM
Compilation aborted - Please read the FAQ for linux-libc-headers package ???? idardh Linux - Software 3 07-17-2006 07:31 PM
tmpfs is remounted read only vavoem Debian 2 04-11-2006 12:41 PM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration