- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /var getting full
Operating System - HP-UX
1753259
Members
5730
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО06-08-2011 06:56 AM
тАО06-08-2011 06:56 AM
Dear Experts,
Suddenly i have got sendmail[820]: NOQUEUE: low on space (have 91, SMTP-DAEMON needs 101 in ....) messages in my console. bdf output shows that /var is 100%. then i have followed below steps:
Step 1: Trim below logs
=======
> /var/adm/btmp (note use of >, not rm)
> /var/adm/cron/OLDlog
> /var/adm/cron/log
> /var/adm/lp/log
> /var/adm/sulog
> /var/adm/syslog/mail.log
> /var/adm/syslog/OLDsyslog.log
> /var/adm/syslog/syslog.log (check for error messages before nulling syslog)
> /var/adm/wtmp
Step 2:
=======
Run below command:
Check if you have superseded patches installed.
# cleanup -p -c1
# cleanup -c1 --->This command will clean up superced patch files from
"/var/adm/sw/save" locatio
Step 3:
=====
# rm /var/spool/mqueue/*
But i have also found some other files under "/var/tmp/" directory like "/var/tmp/hp/newpatch" & there are many files. My query is can i delete all files & folders under "/var/tmp/hp/", "/var/tmp/hp/newpatch", "/var/tmp/hp/depot" directory using "rm" commands ??
BR
Minhaz
Suddenly i have got sendmail[820]: NOQUEUE: low on space (have 91, SMTP-DAEMON needs 101 in ....) messages in my console. bdf output shows that /var is 100%. then i have followed below steps:
Step 1: Trim below logs
=======
> /var/adm/btmp (note use of >, not rm)
> /var/adm/cron/OLDlog
> /var/adm/cron/log
> /var/adm/lp/log
> /var/adm/sulog
> /var/adm/syslog/mail.log
> /var/adm/syslog/OLDsyslog.log
> /var/adm/syslog/syslog.log (check for error messages before nulling syslog)
> /var/adm/wtmp
Step 2:
=======
Run below command:
Check if you have superseded patches installed.
# cleanup -p -c1
# cleanup -c1 --->This command will clean up superced patch files from
"/var/adm/sw/save" locatio
Step 3:
=====
# rm /var/spool/mqueue/*
But i have also found some other files under "/var/tmp/" directory like "/var/tmp/hp/newpatch" & there are many files. My query is can i delete all files & folders under "/var/tmp/hp/", "/var/tmp/hp/newpatch", "/var/tmp/hp/depot" directory using "rm" commands ??
BR
Minhaz
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2011 07:06 AM
тАО06-08-2011 07:06 AM
Re: /var getting full
Hi:
By definition, '/var/tmp' is intended for use by non-root users for creating temporary files. As such, you are free to 'rm' files from this directory.
Regards!
...JRF...
By definition, '/var/tmp' is intended for use by non-root users for creating temporary files. As such, you are free to 'rm' files from this directory.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2011 10:26 AM
тАО06-08-2011 10:26 AM
Solution
Find out where your space is actually used by running this command:
du -kx /var | sort -rn | head -30
These arfe the biggest directories. It's always better to search for big directories first. You may find a massive amount of space used by the diagnostic logs due to a problems with the hardware, or you might find a disabled printer that has dozens or jobs queued.
Post the results and we can provide better choices for cleaning up /var. NOTE: /var and /tmp require regular maintenance (cleaning out junki files, etc).
The /var/tmp/hp directory was created by a sysadmin and is probably not needed anymore. Check with the sysadmin to see if these depots have already been installed and are not used by other HP-UX systems.
Bill Hassell, sysadmin
du -kx /var | sort -rn | head -30
These arfe the biggest directories. It's always better to search for big directories first. You may find a massive amount of space used by the diagnostic logs due to a problems with the hardware, or you might find a disabled printer that has dozens or jobs queued.
Post the results and we can provide better choices for cleaning up /var. NOTE: /var and /tmp require regular maintenance (cleaning out junki files, etc).
The /var/tmp/hp directory was created by a sysadmin and is probably not needed anymore. Check with the sysadmin to see if these depots have already been installed and are not used by other HP-UX systems.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2011 10:49 PM
тАО06-08-2011 10:49 PM
Re: /var getting full
Thanks a lot
BR
Minhaz
BR
Minhaz
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP