xfs
[Top] [All Lists]

Re: XFS question

To: Rahul Jain <rahul@xxxxxxxx>
Subject: Re: XFS question
From: Russell Cattelan <cattelan@xxxxxxxxxxx>
Date: Tue, 01 May 2001 18:59:00 -0400
Cc: linux-xfs@xxxxxxxxxxx
References: <D3DC1A12F511D511A83000B0D0AA447F0E9096@bbking.techtrader.com> <20010501165706.B20890@photino.sid.rice.edu>
Sender: owner-linux-xfs@xxxxxxxxxxx
Rahul Jain wrote:

> On Tue, May 01, 2001 at 05:40:40PM -0400, Castellanos, Leon wrote:
> > I just converted all my file systems to xfs and have a few questions to
> > which I did not find answers to in the website. First, I would like to know
> > why it is that xfs doesn't like to be mounted "ro" read-only. I didn't find
> > anyone addressing this issue and had to figure out on my own to change the
> > /etc/lilo.conf entry "read-only" to "read-write".

Hmm never tried that... guess we'll have to look at that.

>
> > Second, how can I get by the problem of xfs doing its job too well :) and
> > leaving pid files and caches? I pulled the power cord out of my box to test
> > the xfs journaling and several things didn't work out well when the system
> > came back up: sysklogd didn't start up because it found its old pid file and
> > thought it was still running and also my enlightenment window-manager
> > configuration was totally purged. I had to rearrange my entire start-up
> > setup (location of apps that run on startup, etc). Are there any flags to
> > pass to mount in order to fix these problems?

Note no file system can guarantee no data is ever lost. Pulling the plug on a
system
means any data still on the cache that has not been written out to disk is lost.
The only way to reduce the amount of data loss is to run the  file system with
"sync"
enabled, but you will be negating the performance advantages of XFSs delay
allocation.


>

>
>
> I don't think this issue has anything to do with mount. It has to do with your
> init scripts not cleaning up /var/run on boot, as they should. e.g. on Debian:

Yes exactly.

>
>
> ----- excerpt from /etc/init.d/bootmisc.sh -----
>
> #
> # Clean up /var/run and create /var/run/utmp so that we can login.
> #
> [ "$VERBOSE" != no ] && echo -n "/var/run"
> ( cd /var/run && \
>         find . ! -type d ! -name utmp ! -name innd.pid ! -name random-seed \
>         ! -newer /etc/mtab -exec rm -f -- {} \; )
> : > /var/run/utmp
> if grep -q ^utmp: /etc/group
> then
>         chmod 664 /var/run/utmp
>         chgrp utmp /var/run/utmp
> fi
> [ "$VERBOSE" != no ] && echo "."
>
> -------------------------------------------------
>
> --
> -> -/-                       - Rahul Jain -                       -\- <-
> -> -\- http://linux.rice.edu/~rahul -=- mailto:rahul-jain@xxxxxxx -/- <-
> -> -/- "I never could get the hang of Thursdays." - HHGTTG by DNA -\- <-
> |--|--------|--------------|----|-------------|------|---------|-----|-|
>    Version 11.423.999.220020101.23.50110101.042
>    (c)1996-2000, All rights reserved. Disclaimer available upon request.

--
Russell Cattelan
--
Digital Elves inc. -- Currently on loan to SGI
Linux XFS core developer.




<Prev in Thread] Current Thread [Next in Thread>