- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var getting full
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 06:32 AM
10-06-2005 06:32 AM
/var getting full
drwxr-xr-x 12 adm adm 1024 Oct 6 19:07 adm
drwxr-xr-x 4 root sys 1024 Apr 14 19:20 dt
-rw------- 1 root sys 376 Jul 9 2004 history
drwxrwxrwt 2 bin bin 96 May 8 2003 home
drwxr-xr-x 2 root root 96 Sep 23 1999 lost+found
drwxrwxr-x 2 bin mail 9216 Oct 6 20:30 mail
drwxrwxrwx 2 bin bin 96 Sep 23 1999 news
dr-xr-xr-x 15 bin bin 1024 May 8 2003 opt
drwxrwxrwx 2 bin bin 7168 Oct 6 19:07 preserve
drwxrwxrwx 2 bin bin 8192 Jun 1 15:42 rbootd
drwxrwxrwx 3 root sys 96 Sep 19 2002 requests
dr-xr-xr-x 2 bin bin 1024 Oct 6 19:07 run
dr-xr-xr-x 12 bin bin 2048 Oct 6 19:10 sam
dr-xr-xr-x 15 bin bin 1024 Sep 19 17:51 spool
drwxr-xr-x 6 root sys 96 Aug 6 2000 statmon
drwxr-xr-x 5 root other 96 May 8 2003 stm
drwxrwxrwx 21 bin bin 13312 Oct 6 20:30 tmp
drwxr-xr-x 2 root root 2048 Oct 6 19:07 tombstones
dr-xr-xr-x 6 bin bin 96 Sep 28 1999 uucp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 06:37 AM
10-06-2005 06:37 AM
Re: /var getting full
Things to check in /var:
size of /var/adm/syslog/syslog.log?
size of /var/adm/syslog/mail.log?
Any crashdumps in /var/adm/crash?
Any large files in /var/tmp?
Can you committ superceded patches? (man cleanup for more info.)
Try this to get a listing of the largest dirs in /var:
# cd /var
du -ks * | sort -n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 06:38 AM
10-06-2005 06:38 AM
Re: /var getting full
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 06:39 AM
10-06-2005 06:39 AM
Re: /var getting full
cd /var
du . -ka | sort -nr | more
This will provide a list of files from biggest in size to smallest.
Look at the /var/adm/syslog directory. Big syslog.log and/or mail.log? (Do not remove these files. Copy them elsewhere and the 'cat /dev/null > syslog.log')
Can you do the 'cleanup' command on committed patches?
Do you have crash dump files residing on the /var partition? If so you might want to remove these.
/var/tmp could be a possible candidate for file truncating/removal.
Is the mail running on this system? What is output of 'mailq' command? If lots you may want to look at /var/mail.
Don't forget some of these directories could be separate filesystems. What is the bdf output?
What you have listed above are mostly directories. Need to look into these directories and see what is present.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 06:41 AM
10-06-2005 06:41 AM
Re: /var getting full
I have 'du -ka ...'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 06:41 AM
10-06-2005 06:41 AM
Re: /var getting full
Rather than directories see the contents which are occupying more space within these directories. You can not remove any f these directories.
This can be done by
#pwd
/var
#du |sort -rnk 1 |head -20
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 06:43 AM
10-06-2005 06:43 AM
Re: /var getting full
cleanup -c 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 07:33 AM
10-06-2005 07:33 AM
Re: /var getting full
/var, by the nature of the files written to it will continously grow unless you monitor it and periodically perform file maintenance. All of your log files go there and most do not have an upper limit i.e. syslog, mail.log wtmp, etc. You cannot simply delete/recreate these files since the system does have them open. you need to do a command such cat /dev/null > /var/adm/syslog to zero out the file (after backing it up)
The software/OS patches are stored there as well. As others has recommended, cleanup -c 1 will remove old superceded patches from the directory. Do not remove them manually s that will cause problems with future patch installs.
/var/tmp is just that a temporary storage area - it should be cleaned up periodically.
Finally /var/spool has the potential for using a lot space - unsent mail messages and prints are queued up there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 08:24 AM
10-06-2005 08:24 AM
Re: /var getting full
1.You can try checking the biggest files on /var first :
# cd /var
# ls -lR | sort +4 -5nr | more
2. Also check the usual files that grows :
/var/adm/syslog/mail.log
/var/adm/syslog/OLDsyslog.log
/var/adm/wtmp
You can nullyfy the mail.log and wtmp
#cat /dev/null > mail.log
or
# >mail.log
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2005 08:27 AM
10-06-2005 08:27 AM
Re: /var getting full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 02:30 AM
10-07-2005 02:30 AM
Re: /var getting full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 04:44 AM
10-07-2005 04:44 AM
Re: /var getting full
If you're running sar, /var/adm/sa can certainly take up alot of space.
If large print jobs go through the host.
you might want to check /var/spool
du -sk * | sort
will give you a good idea where to look.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 04:45 AM
10-07-2005 04:45 AM
Re: /var getting full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 06:10 PM
10-09-2005 06:10 PM
Re: /var getting full
gave me the following result
881282 .
464860 ./preserve
172382 ./adm
120878 ./stm
99994 ./stm/logs
98498 ./stm/logs/os
57364 ./opt
45942 ./opt/ignite
36210 ./opt/ignite/recovery
34050 ./sam
33672 ./sam/log
19794 ./spool
17678 ./opt/ignite/recovery/2003-05-10,05:59
15606 ./opt/ignite/recovery/2003-05-08,19:15
13860 ./stm/data
13078 ./stm/data/tools
13062 ./stm/data/tools/verify
13060 ./spool/lp
12278 ./spool/lp/request
9156 ./opt/ignite/logs
8028 ./mail
7024 ./stm/config
6998 ./stm/config/tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 06:21 PM
10-09-2005 06:21 PM
Re: /var getting full
You can trim down the system log files at /var file system with SAM :
SAM > routine tasks > system log files
From your info, these file can remove also (since from year 2003, it's Ignite/UX backup archive) :
17678 ./opt/ignite/recovery/2003-05-10,05:59
15606 ./opt/ignite/recovery/2003-05-08,19:15
For safety reason, please do backup before you remove any file from your system.
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 06:55 PM
10-09-2005 06:55 PM
Re: /var getting full
Are there plenty of superceding patches. These can be removed from /var directory using
#cleanup -c 2
Man cleanup for details.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 08:04 PM
10-09-2005 08:04 PM
Re: /var getting full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 09:45 PM
10-09-2005 09:45 PM
Re: /var getting full
#cd /var/adm
#tail wtmp >wtmp.new
#cp wtmp.new wtmp
Otherwise search for other big files:
#find /var -xdev -size +10000 -exec ll {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 05:15 AM
10-11-2005 05:15 AM
Re: /var getting full
Exaao00482. Can I delete these what are they for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 05:42 AM
10-11-2005 05:42 AM
Re: /var getting full
Yes these files can be deleted.These are files saved by vi editor perhaps when it crashes or the session having opened that vi session exists abnormally.
The files with old timestamps can be removed easily and the files with recent ones can be moved to some other locations.
HTH,
Devender