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
|