Re: Resize journal on root filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 04, 2002 at 06:21:14PM -0400, Michael J. Accetta wrote:
> 
> > Then in /etc/rc.oneshot, do something like this:
> > 
> > #!/bin/sh
> > tune2fs -O ^has_journal /dev/hdXXXX
> > tune2fs -j -J size=XXX /dev/hdXXXX
> > rm -f /etc/rc.oneshot
> > reboot
> > 
> > After you make these sorts of changes to the root filesystem, even
> > though it's mounted read-only, you really do want to reboot
> > immediately.  Hence the need for doing it as a rc script that only is
> > run once.
> 
> Presumably /etc/rc.oneshot is on the (read-only) root file system so
> unfortunately it can't be as straightforward as this.  

Good point.  The rm -f /etc/rc.oneshot needs to be in /etc/rc.sysinit,
or wherever the root filesystem is fsck'ed and remounted read-write.  
And of course, things are different if you're using an initrd setup....

						- Ted



_______________________________________________

Ext3-users@redhat.com
https://listman.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux