On Thu, 04 Sep 2003 19:35:42 +0200 Sasa Stupar <[EMAIL PROTECTED]> wrote:
> Hi! > > I have been trying all day to change ext3 mode from ORDERED to WRITEBACK > and so far no success. Let me say what I have been trying: > -adding a parameter to /etc/fstab data=writeback next to the defaults > for the root and /boot partition eg. > LABEL=/ / ext3 defaults,data=writeback 1 1 > LABEL=/boot /boot ext3 defaults,data=writeback 1 2 > when I try to boot I get a lot of errors to be unable to write because > it is readonly etc. and after it stops at starting syslog. > -adding a parameter to the grub.conf file: > ... > kernel /vmlinuz-2.4.20-20.8 ro root=LABEL=/ hdc=ide-scsi data=writeback > ... > This time it boots normally but fs is mounted in ordered data mode. > -adding another parameter to grub.conf: > kernel /vmlinuz-2.4.20-20.8 ro root=LABEL=/ hdc=ide-scsi > rootflags=data=writeback > I got kernel panic - unrecognized mount parameter. > Hi Sasa, You're on the right track but you're caught up in some subtle issues. The one that is biting you the hardest is that the Redhat kernel has ext3 compiled as a module. This prohibits you from passing data=writeback as a boot parameter because the root filesystem has to be mounted (via ext2) before the ext3 module can be loaded. You have a few options to resolve this. One option is to compile your own kernel with ext3 compiled-in rather than as a module. A second option is to create an initrd image that is used at boot. You'll have to modify the initrd image so that the linuxrc script passes "data=writeback" when mounting the root filesystem. Ext3 does not allow the journal type to be changed once the filesystem has been mounted. Thus for a root filesystem you have extra hassles instead of using /etc/fstab alone. One thing i didn't mention before is the tune2fs option for setting the default journal mode: tune2fs -o journal_data_writeback /dev/hda2 Again i think the modular kernel will get in the way of using this but you can play around with it. good luck, Sean -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list