- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var filesystem 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
Discussions
Discussions
Forums
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
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
тАО08-09-2008 03:21 AM
тАО08-09-2008 03:21 AM
May i know the resolution steps if /var filesystem is full ??
Thanks & Regards
Swetha
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2008 03:31 AM
тАО08-09-2008 03:31 AM
Re: /var filesystem full
>syslog.log
/var/mail/ clear the mailboxes of the persons if they are not using it.
you can do a du -xk /var|sort -k1nr and check for the space consuming files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2008 03:39 AM
тАО08-09-2008 03:39 AM
Re: /var filesystem full
If you do copy your /var/adm/syslog/syslog.log file to another directory before you null the original you can always compress it to save disk space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2008 03:43 AM
тАО08-09-2008 03:43 AM
Re: /var filesystem full
Also look at the /var/adm/crash directory which may contains big sized crash dump files.
Purge your /var/adm/wtmps files regurlarly, at least once in a month.
You can achieve this via a cron schedule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2008 03:56 AM
тАО08-09-2008 03:56 AM
SolutionFirst run following:
cd /var
bdf . ====status
sorted list of all dir and files in var
du -sk *|sort -krn
Find out large size files:
find . -xdev -type f -size +100000 -exec ls -lrt {} \+
analyse if you see biggest file related to any logs or any unused data that you can compress or move to some other location.
You can try nullifying
/var/mail/users_files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2008 04:10 AM
тАО08-09-2008 04:10 AM
Re: /var filesystem full
# du -kx /var|sort -k1rn|more
...will produce a descendingly sorted list of the largest directories and files. Do *NOT* manually manage the 'var/adm/sw' directory or its contents! This is your IPD (Installed Product Database). Corruption or deletion of entries herein will render you server unpatchable.
Instead, use:
# cleanup -c 1
...to regain space. See the 'cleanup' man-pages for more information.
Aside from trimming log files like 'wtmp' ('> /var/adm/wtmp'), you can remove old '/var/adm/crash' dumps (if any) and look for old, unused 'vi' recovery files in '/var/preserve'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2008 10:36 AM
тАО08-09-2008 10:36 AM
Re: /var filesystem full
Dear Swehta
u have to trim log files regularly
for that u can use >logfile
for example
/var/adm/sulog/sulog.log
>/var/adm/sulog/sulog.log
this is the way to trim the log files
/var dir contains log files u have to monitore that one
don't delete any log files just trim thats all
second thing u have to check any dir under var is consuming more space
u can use du -sk /var/* etc...
third u can check any core file is there or not
if core file is there u can easily remove it
thanks and regard
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2008 10:45 AM
тАО08-09-2008 10:45 AM
Re: /var filesystem full
The above replies explains clearly about how to house keep the /var filesystem,still it is not under threshold then you may need to plan for extending the filesystem.
Thanks,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2008 01:25 PM
тАО08-10-2008 01:25 PM
Re: /var filesystem full
u have to trim log files regularly
for that u can use >logfile
for example
/var/adm/sulog/sulog.log
>/var/adm/sulog/sulog.log
this is the way to trim the log files
/var dir contains log files u have to monitore that one
don't delete any log files just trim thats all
second thing u have to check any dir under var is consuming more space
u can use du -sk /var/* etc...
third u can check any core file is there or not
if core file is there u can easily remove it
thanks and regard
arun k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2008 06:58 PM
тАО08-10-2008 06:58 PM
Re: /var filesystem full
cd /var ; du -sk * |sort -n to short list files and dirs by size.
use the below find command to find the largest files you can purge it.
find . -xdev -type f -size +100000 -exec ls -lrt {} \+
You can also remove files from /var/spool/mqueue.
If your compressing the syslog's then after check the daemon the syslog is getting updated or not, if not then you have to restart the syslogd daemon.