xfs
[Top] [All Lists]

Re: files in /etc/xinetd.d become 0 byte size

To: Juri Haberland <juri@xxxxxxxxxxxxxx>
Subject: Re: files in /etc/xinetd.d become 0 byte size
From: Simon Matter <simon.matter@xxxxxxxxxxxxxxxx>
Date: Tue, 19 Mar 2002 17:01:46 +0100
>received: from mobile.sauter-bc.com (unknown [10.1.6.21]) by basel1.sauter-bc.com (Postfix) with ESMTP id 0463457306; Tue, 19 Mar 2002 17:01:47 +0100 (CET)
Cc: Eric Sandeen <sandeen@xxxxxxx>, linux-xfs <linux-xfs@xxxxxxxxxxx>
Organization: Sauter AG, Basel
References: <Pine.LNX.4.33.0203190839410.19919-100000@xxxxxxxxxxxxxxxxxxxxxxxx> <3C97591B.FF456D25@xxxxxxxxxxxxxxxx> <3C975DB7.4010201@xxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Juri Haberland schrieb:
> 
> Simon Matter wrote:
> 
> >
> > So I should be safe. Tried a bonnie and the result shows that cache IS
> > off.
> >
> > Tried
> >
> > [root@gw-linux-dev xinetd.d]# ntsysv ; reboot
> >
> > and got zeroed files in /etc/xinetd.d/ again!!!
> >
> > What can I do now?
> 
> Did you upgrade from RH7.1 to 7.2?
> Did you alter the /etc/init.d/halt script?
> Do you have a part in it that looks like this:
> 
> # Remount read only anything that's left mounted.
> #echo $"Remounting remaining filesystems (if any) readonly"
> mount | awk '/( \/ |^\/dev\/root)/ { print $3 }' | while read line; do
>     mount -n -o ro,remount $line
> done

This is a fresh install of 7.2 XFS. I have the mentioned lines in
/etc/rc.d/init.d/halt.

I think that something in the shutdown process is not okay. I remember
the bdflush discussion and the vim story. So I think the remount
readonly trick does not make shure data is flushed to disk.
I enabled write cache again because it doesn't help and tried this

[root@gw-linux-dev xinetd.d]# ntsysv ; sleep 40 ; reboot

No zeroed files ! I did 40 second sleep because bdflush should flush
metadata after 5 seconds, data after 30 seconds. If it is what I think,
how can we force the flushing on shutdown? Calling sync seems not to
help. Do I miss something here. It is also to mention that I have the
root FS on MD raid1.

Thanks for any help!
-Simon



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