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

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



Eric Sandeen schrieb:
> 
> On Tue, 19 Mar 2002, Simon Matter wrote:
> 
> > Eric Sandeen schrieb:
> > >
> > > I don't know for sure how IDE write caching works, to tell you the
> > > truth.  Try making sure it's off, and we'll go from there.
> >
> > How can I disable write caching on the Quantum AS20.5 disks? I've tried
> 
> hdparm -W
> 
>  -W  Disable/enable the IDE drive's write-caching feature (usually OFF
>      by default).

I have disabled the write cache directly on the disk with IBM's feature
tool. The bad thing is that after a reboot, write cache is enabled again
which means that this drive doesn't store caching config permanently!

So I have put EXTRA_PARAMS=-W0 into /etc/sysconfig/harddisks and
rebooted. syslog confirms that:

[root@gw-linux-dev xinetd.d]# grep hdparm /var/log/messages
Mar 19 16:14:30 gw-linux-dev hdparm: /dev/hda:
Mar 19 16:14:30 gw-linux-dev hdparm:  setting drive write-caching to 0
(off)
Mar 19 16:14:30 gw-linux-dev hdparm: /dev/hdb:
Mar 19 16:14:30 gw-linux-dev hdparm:  setting drive write-caching to 0
(off)

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?

-Simon