1834665 Members
1938 Online
110069 Solutions
New Discussion

File System reached 86%

 
John Ferro
Regular Advisor

File System reached 86%

Hi Gentelmen,

I have hp rp2470 HP-UX B.11.11 U 9000/800, file system /var has been reached to 86%, how to reduce files and decrease the percentage to 80%?

Regards,
Faisal M.
7 REPLIES 7
Asif Sharif
Honored Contributor

Re: File System reached 86%

Assalam-O-Alaiakum Faisal,

check the size of the following files

#find /var -xdev -size +10000 -exec ls -lrt {} \;

See the big sized file and if you think they are not use able remove them.

Regards,
Asif Sharif
Regards,
Asif Sharif
whiteknight
Honored Contributor

Re: File System reached 86%


Faisal,

/var is a dynamic directory, it keeps the logs and patches information. 86% still looks fine.

if you want to trim
1) /var/opt/perf/datafiles/log* (this will grow big through times)

2) use find /var -size +2000 > /tmp/out this will give you clue what files are big

Hope this help

WK
Problem never ends, you must know how to fix it
MarkSyder
Honored Contributor

Re: File System reached 86%

If the server has been up for a long time /var/adm/btmp and /var/adm/wtmp may be large. Do not delete them: trim them thus:

> /var/adm/btmp

Please note that who will give a false reading for a while after you have trimmed wtmp.

You might also trim:

/var/adm/cron/log
/var/adm/lp/log
/var/adm/syslog/mail.log and
/var/adm/syslog/syslog.log

But as Whiteknight said, unless there is an awful lot of rapid growth on your system, 86% does not seem bad.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
rajdev
Valued Contributor

Re: File System reached 86%

Hi Faisal,

You can have some housekeeping script to housekeep the /var FS on a weekly or monthly basis.

You can use sam -> Routine Tasks -> system log files , to get list of files to choose from .

good candidates for housekeeping
---------------------------------
/var/mail
/var/adm/OLD*
/var/adm/wtmp
/var/adm/sa/sa?? --> sar needs these files


Regards,
RD


Sp4admin
Trusted Contributor

Re: File System reached 86%

The above replies pretty much cover the first step of actions. If you need to increase the size of /var you can use fsadm if you have this product.

sp,
Paul Sperry
Honored Contributor

Re: File System reached 86%

Also look in /var/adm/crash everything in there is safe to delete.
Paul Sperry
Honored Contributor

Re: File System reached 86%

And also run the /usr/sbin/cleanup command to clean up superseded patches.

man cleanup