Unix Technical Forum

Changing journaling mode in ext3

This is a discussion on Changing journaling mode in ext3 within the Linux Operating System forums, part of the Unix Operating Systems category; --> I already have an ext3 filesystem mounted as "/" As far as I know the journal mode enabled by ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 06:05 AM
Gianni Bragante
 
Posts: n/a
Default Changing journaling mode in ext3

I already have an ext3 filesystem mounted as "/"
As far as I know the journal mode enabled by default is "ordered". But I
want to change it to "journal".
So I have searched the documentation on how to do it and I have found that I
have to change /etc/fstab putting "data=journal" in the option field of the
filesystem.
Despite of documentation my system does not restart telling the
filesystem is read only and locks while starting system logger.

Do you know how can I change the journaling mode effectivelly?

Thanks
Gianni Bragante


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 06:05 AM
Artemio
 
Posts: n/a
Default Re: Changing journaling mode in ext3

Gianni Bragante wrote:

> I already have an ext3 filesystem mounted as "/"
> As far as I know the journal mode enabled by default is "ordered". But I
> want to change it to "journal".
> So I have searched the documentation on how to do it and I have found that
> I have to change /etc/fstab putting "data=journal" in the option field of
> the filesystem.
> Despite of documentation my system does not restart telling the
> filesystem is read only and locks while starting system logger.
>
> Do you know how can I change the journaling mode effectivelly?


Try "tune2fs" utility (man tune2fs for details).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 06:05 AM
Michael Heiming
 
Posts: n/a
Default Re: Changing journaling mode in ext3

Artemio <artemio@artemio.net> wrote:
> Gianni Bragante wrote:


....
>> Do you know how can I change the journaling mode effectivelly?


> Try "tune2fs" utility (man tune2fs for details).


And how does tune2fs help in changing journaling mode?

Using the proper /etc/fstab options is the way to go, post your fstab
and the output of the 'mount' command or none will be able to help.

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 06:05 AM
Gianni Bragante
 
Posts: n/a
Default Re: Changing journaling mode in ext3

Michael, thank you for you answer.
Here is the intended fstab that makes the computer unbootable:

LABEL=/ / ext3 data=journal
1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660
noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0
0

This is the output of the mount command obtained when ext3 is using the
deault setting of ordered:

/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda2 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

I have also tried to modify the grub.conf file as I have found in a document
modifying the line:

kernel /vmlinuz-2.4.20-18.9 ro root=LABEL=/ rootflags=data=journal

but with no result.

Any help will be great!

Thanks
Gianni Bragante


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 06:05 AM
Michael Heiming
 
Posts: n/a
Default Re: Changing journaling mode in ext3

Gianni Bragante <gbragante@libero.it> wrote:
> Michael, thank you for you answer.
> Here is the intended fstab that makes the computer unbootable:


> LABEL=/ / ext3 data=journal
> 1 1


Try:

LABEL=/ / ext3 defaults,data=journal 1 0

Good luck

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 06:05 AM
Michael Heiming
 
Posts: n/a
Default Re: Changing journaling mode in ext3

Gianni Bragante <gbragante@libero.it> wrote:
> Michael,
> I have followed your suggestions but with no luck. Even with the suggested
> configuration the system behaves the same way, hanging on Starting system
> logger. In several lines scrolling during the boot process the error "Read

....

Did you try using the "rootflags=data=journal" in addition to your grub
config, sorry I don't use grub.

Perhaps I'd try if this doesn't work, changing the LABEL=/ in fstab to
the real device.

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 06:06 AM
mjt
 
Posts: n/a
Default Re: Changing journaling mode in ext3

Gianni Bragante wrote:

[snipped]
> Do you know how can I change the journaling mode effectivelly?


did you add rootflags=data=journal to your kernel boot options?



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
Michael J. Tobler: motorcyclist, surfer, # Black holes result
skydiver, and author: "Inside Linux", # when God divides the
"C++ HowTo", "C++ Unleashed" # universe by zero

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 06:06 AM
mjt
 
Posts: n/a
Default Re: Changing journaling mode in ext3

Gianni Bragante wrote:

> I have followed your suggestions but with no luck. Even with the suggested
> configuration the system behaves the same way, hanging on Starting system
>


.... pls see my post

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
Michael J. Tobler: motorcyclist, surfer, # Black holes result
skydiver, and author: "Inside Linux", # when God divides the
"C++ HowTo", "C++ Unleashed" # universe by zero

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-17-2008, 06:07 AM
Glitch
 
Posts: n/a
Default Re: Changing journaling mode in ext3

On Sat, 28 Jun 2003 15:22:27 +0000, Gianni Bragante wrote:

> I already have an ext3 filesystem mounted as "/"
> As far as I know the journal mode enabled by default is "ordered". But I
> want to change it to "journal".
> So I have searched the documentation on how to do it and I have found that I
> have to change /etc/fstab putting "data=journal" in the option field of the
> filesystem.
> Despite of documentation my system does not restart telling the
> filesystem is read only and locks while starting system logger.
>
> Do you know how can I change the journaling mode effectivelly?
>
> Thanks
> Gianni Bragante


not that i can help you too much Gianni but I had the same problem when I
tried to use Ordered data when installing Suse 8.1 Pro on Friday evening.
I'd get a ton of errors about a read only filesystem and eventually I'd
get a kernel panic out of it. After reading deeply into the error messages
that appeared initially I started messing with /etf/fstab but was
modifying the wrong parameters. Finally for some reason I changed the way
the journal was kept and changed it from "journal" to ordered" and it
worked just fine. I specifically told the Suse installation program to
use ordered (i didnt have preference for one over the other since i didn't
know the differnce) but when I found out that what I chose didn't matter I
was still a bit peeved over it. When / is being mounted the message
displayed even says

EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.

even though I chose "journal". It's almost like its hard coded in to print
that out no matter how you tell it to do it. Anyway, I coudln't get it to work but I
didn't spend nearly as much time on it as you have. U may just want to
give up, lol.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-17-2008, 06:07 AM
Glitch
 
Posts: n/a
Default Re: Changing journaling mode in ext3

On Sat, 28 Jun 2003 15:22:27 +0000, Gianni Bragante wrote:

> I already have an ext3 filesystem mounted as "/"
> As far as I know the journal mode enabled by default is "ordered". But I
> want to change it to "journal".
> So I have searched the documentation on how to do it and I have found that I
> have to change /etc/fstab putting "data=journal" in the option field of the
> filesystem.
> Despite of documentation my system does not restart telling the
> filesystem is read only and locks while starting system logger.
>
> Do you know how can I change the journaling mode effectivelly?
>
> Thanks
> Gianni Bragante



It seems after reading your post again my situation could help you
afterall. I kept thinking you wanted Ordered and not journaled but I got
it backwards. Anyway, here is my fstab in case it helps.

/dev/hdb3 / ext3 data=ordered 1 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com