nv-l
[Top] [All Lists]

RE: [nv-l] Weird Poblem of the Week

To: <nv-l@lists.us.ibm.com>
Subject: RE: [nv-l] Weird Poblem of the Week
From: "Barr, Scott" <Scott_Barr@csgsystems.com>
Date: Tue, 18 May 2004 10:16:54 -0500
Delivery-date: Tue, 18 May 2004 16:27:00 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Thread-index: AcQ86bpH/tyQvj51RqK2hluYobRnrwAAGxyw
Thread-topic: [nv-l] Weird Poblem of the Week
I believe the truncate works in the same fashion as the utility provided by NetView. While it is possible that snmpCollect is writing to a file that truncate is trying to trim, I find it hard to understand how it would do that to the 7300+ files in the directory. One file I understand, all files, I don't understand. I am not aware of the files being deleted at all, but maybe that's how truncate works (deletes the old one and writes a new one). The cron job does not stop/start snmpCollect.
 
Hm.... doesn't solaris have a limit of 8192 file handles per process? Hm.......


From: owner-nv-l@lists.us.ibm.com [mailto:owner-nv-l@lists.us.ibm.com] On Behalf Of John M Gatrell
Sent: Tuesday, May 18, 2004 10:03 AM
To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Weird Poblem of the Week


Just how is the truncate being done.  Could there be a race condition?
You could have snmpCollect writing to a file that has been deleted, while a file of the same
name is left visible for you to look at. If your truncate cron job also restarts snmpCollect
then that would explain the recovery the next day.

John Gatrell.
<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web