/var getting full due to sar & mwa data files (193 Views)
Reply
Regular Advisor
Indrajit Bhagat
Posts: 319
Registered: ‎07-22-2006
Message 1 of 2 (193 Views)

/var getting full due to sar & mwa data files

Hi Experts,

 

Request to please suggest, what could be done to housekeeping the below max utilization file:

 

abcd:/var#find . -type f -xdev -print | xargs -e ll | sort -rn -k5 | head -n 10
-rw-r--r--   1 root       sys        853758720 Jun 20 00:00 ./sardata/20130619
-rw-r--r--   1 root       sys        403756728 Jun 20 11:21 ./sardata/20130620
-rw-r--r--   1 root       root       145455340 Jun 20 11:21 ./opt/perf/datafiles/logproc
-rw-r--r--   1 root       sys        107851007 Jun 19 00:00 ./sardata/20130618.gz
-rw-r--r--   1 root       root       20859156 Jun 20 11:21 ./opt/perf/datafiles/logdev
-rw-------   1 sfmdb      users      16777216 May 15 18:37 ./opt/psb/db/pgsql/pg_xlog/0000000000000021
-rw-------   1 sfmdb      users      16777216 Jun 20 01:08 ./opt/psb/db/pgsql/pg_xlog/000000000000001F
-rw-------   1 sfmdb      users      16777216 Jun 18 01:05 ./opt/psb/db/pgsql/pg_xlog/0000000000000022
-rw-------   1 sfmdb      users      16777216 Apr 18 01:05 ./opt/psb/db/pgsql/pg_xlog/0000000000000020
-rw-r--r--   1 root       root       16490868 Jun 20 11:21 ./opt/perf/datafiles/logglob

 

Daily i am fed up with performing housekeeping this /var

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,879
Registered: ‎03-06-2006
Message 2 of 2 (190 Views)

Re: /var getting full due to sar & mwa data files

Create symlinks for those directories that contain large files and move them to a larger filesystem.

./sardata/
./opt/perf/datafiles/
 ./opt/psb/db/pgsql/pg_xlog/

 

>Daily I am fed up with performing housekeeping this /var

 

You haven't automated it?  :-)

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation