Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've seen this question asked before, but nobody has ever had an answer. I'm hoping someone can help me figure out how to mount the root filesystem on an ext3 partition using the writeback journaling method. I know it's technically not the best for data integrity, but the speed hit on our database server is just too large using the ordered method. So I wanted to try using the writeback method, as it's supposed to be a lot faster. But everytime I try to add the data=writeback to my /etc/fstab file, I get all kinds of read errors on bootup (read-only filesystem errors) and have to reboot and then recover. Here's what I've been trying:
My original fstab file for root looks like this:
LABEL=/ / ext3 defaults 1 1
I've been trying to change it to this:
LABEL=/ / ext3 data=writeback 1 1
Another thread suggested adding the "noatime" value as well, but didn't go into how to get it set up, and I can't seem to find any examples of someone actually using it. So, can anyone help out with this, as I'd really like to see if either of these will make a difference in my speeds.
Thanks.
Edit: I think I have the "noatime" option working.. just replaced the 'defaults' option with 'noatime' and it seemed to take. I'd still like to try the data=writeback option though if someone knows how to get it working.
Thanks for the examples, I think it's working ok with the noatime options. Is there an easy way to verify this?
Also, I did get the writeback mode set properly on my root partition... it's just not as easy as it should be. Basically, here's what you need to do:
1. Modify the /etc/fstab file. In place of defaults, I put in data=writeback,noatime
2. Run mkinitrd and create a new image file
3. Modify the grub.conf (or lilo) file to point to the new image file.
Apparently, if you just change the fstab file without doing the rest, it is in effect trying to remount the filesystem, but for some reason (bug?), it's not able to remount it with write access, so booting always fails. I tried it the way I specified twice (2 different kernel versions), and I saw during the boot process that it set journaling to writeback mode. Now to test it and see what kind of performance I get...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.