File size issues....

2007-12-25 2:13:00

Hail Sunmanagers!

I have a file issue I do not understand.

O/S: Solaris 8 Generic_108528-19
Pltfrm: E10K domain

We have an actively running web application whose siteminder webagent is
logging to siteminder.log. I was under the impression that you could do
something like:

cp siteminder.log otherlocation.log
cat /dev/null > siteminder.log and free up disk space.

It seems that shortly after I do this the filesystem reports that the log
file is at the size it was when I began and still growing. df reflects this
as well.

I wrote a script that captures a particular case:

+ ls -l siteminder.log
-rwxrwxr-x 1 kintana iplanet 109625128 Oct 20 14:37 siteminder.log
+ wc -l siteminder.log
49312 siteminder.log
+ wc -c siteminder.log
109629860 siteminder.log
+ cp -p siteminder.log /var/tmp/kintana
+ cat /dev/null
+ 1> siteminder.log
+ ls -l siteminder.log
-rwxrwxr-x 1 kintana iplanet 0 Oct 20 14:38 siteminder.log
+ wc -l siteminder.log
0 siteminder.log
+ wc -c siteminder.log
0 siteminder.log
+ sleep 60
+ ls -l siteminder.log
-rwxrwxr-x 1 kintana iplanet 109635695 Oct 20 14:39 siteminder.log
+ wc -l siteminder.log
65 siteminder.log
+ wc -c siteminder.log
109647732 siteminder.log

You can see that the line count appears that it may be correct but the
character count shows the file to still be very large. We have often dealt
with this in the past successfully. But now it seems to be ineffective.
Can someone help? We are running out of disk space fast....
g ERC
_______________________________
Rick Brashear
Server Systems
Information Technology Department
Employers Reinsurance Corporation
5200 Metcalf
Overland Park, Kansas 66201
* 913 676-6418
* rick.brashear at ercgroup.com

Comments

Got something to say?

You must be logged in to post a comment.