- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /var 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
08-18-2008 09:43 AM
08-18-2008 09:43 AM
/var full
I'm using a HP-UX v11 with 2 rp5470 in cluster configuration. Is there a way to know the real free space on those disks, they're in cluster configuration...because the /var is full it seems there's no way to free up space, if anybody can help...it will helpfull...
Best Regards,
Marco Hernandez
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2008 09:55 AM
08-18-2008 09:55 AM
Re: /var 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-18-2008 10:26 AM
08-18-2008 10:26 AM
Re: /var full
swmodify -x patch_commit=true patch_name
I will note that once you do this you will not be able to back out of the patch. Ah, the peril's of being a sysadmin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2008 10:30 AM
08-18-2008 10:30 AM
Re: /var full
If you have ever patched
cleanup -c 1
or (brain freeze)
cleanup 1
Also use sam routine functions and trim your log files
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2008 10:32 AM
08-18-2008 10:32 AM
Re: /var full
find /var -xdev -size +10000000c -exec ll {} \;
You can clear the syslog.log, mail.log or you can gzip the sar files inside /var/adm/sa directory. Also you can remove the older crash directory if it is there inside /var/adm/crash.
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2008 10:48 AM
08-18-2008 10:48 AM
Re: /var full
Other things to look into:
/var/adm/syslog/*
* maillog and syslog.log can be quite hugh
/var/adm/*tmp*
* login logging grow without bounds.
* If you're interested in maintaining these (and you should be) examine fwtmp and wtmpfix man pages to learn how to truncate them.
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2008 04:52 PM
08-18-2008 04:52 PM
Re: /var full
you can trim the syslog files..
you can delete the files from /var/spool/mqueue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2008 07:25 PM
08-18-2008 07:25 PM
Re: /var full
check which is consuming more space using
#du -kx |sort -nr | more
then trim it by using
#> file
but delete it accoring to your IS policies.
Reagards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2008 11:54 PM
08-18-2008 11:54 PM
Re: /var full
/var/mail =======> truncate the mails here
/var/tmp ========> check these file and remove
/var/opt/ =======> check logs here
also see,
/var/opt/ignite ===> here in log and tmp folders you may remove the data..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 02:51 AM
08-19-2008 02:51 AM
Re: /var full
Trimming syslog is not recommended as anytime you need this info for diagnostics...
SEP and James are absolutely correct here.
First find the big files and analyse if these are currently in use .
Also cleanup will free some space here.
No problem even if you are running cluster on this system...if free space is there you can add some space into it.
Paste...following output.
find /var -xdev -type f -exec ls -lrt {} \+
and
bdf /var
and
swlist |grep -i onlinejfs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 02:57 AM
08-19-2008 02:57 AM
Re: /var full
Sometimes it is a lot of smaller files that are better candidates for deletion, but these are harder to track down and do not give the quick wins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 04:10 AM
08-19-2008 04:10 AM
Re: /var full
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 08:24 AM
08-19-2008 08:24 AM
Re: /var full
Your replies have been very usefull, I found the following:
1. In /var/tmp/dp
-rw-r--r-- 1 root sys 34201600 Sep 30 2003 PHSS_29143.depot
-rw-r--r-- 1 root sys 14790 Oct 1 2003 PHSS_29143.text
-rw-r--r-- 1 root sys 972800 Sep 25 2003 PHSS_29411.depot
-rw-r--r-- 1 root sys 10687 Sep 29 2003 PHSS_29411.text
-rw-r--r-- 1 root sys 17382 Sep 29 2003 PHSS_29414.text
-rw-r--r-- 1 root sys 4249600 Oct 30 2003 PHSS_29423.depot
-rw-r--r-- 1 root sys 30290 Oct 31 2003 PHSS_29423.text
-rw-r--r-- 1 root sys 42588160 Nov 17 2003 PHSS_29867.depot
-rw-r--r-- 1 root sys 24609 Nov 19 2003 PHSS_29867.text
-rw-r--r-- 1 root sys 68505600 Dec 1 2003 PHSS_29869.depot
-rw-r--r-- 1 root sys 21677 Dec 2 2003 PHSS_29869.text
and these:
/var/adm/crash/crash.0
#
# ls -la
total 392992
drwxr-xr-x 2 root root 8192 Sep 14 2004 .
drwxr-xr-x 4 root root 96 Dec 21 2006 ..
-rw-r--r-- 1 root root 1197 Sep 14 2004 INDEX
-rw-r--r-- 1 root root 33550336 Sep 14 2004 image.1.1
-rw-r--r-- 1 root root 33525760 Sep 14 2004 image.1.2
-rw-r--r-- 1 root root 33525760 Sep 14 2004 image.1.3
-rw-r--r-- 1 root root 33488896 Sep 14 2004 image.1.4
-rw-r--r-- 1 root root 33525760 Sep 14 2004 image.1.5
-rw-r--r-- 1 root root 5378048 Sep 14 2004 image.1.6
-rw-r--r-- 1 root root 28177128 Sep 14 2004 vmunix
Those files are very large, but the PHSS I think they're patches or something like that, it is possible to move them to /tmp on root directory then delete them form where they are now?
And the same quiestion for files on crash.0 directory.
I need your advise 'cause i don't know if they're in use or not, some time ago i cp some files from /var to /tmp to freeup space...well i'll wait your advises.
Best Regards,
Marco Hernandez
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 08:54 AM
08-19-2008 08:54 AM
Re: /var full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 08:59 AM
08-19-2008 08:59 AM
Re: /var full
Delete or move the depot files, you can always download again.. These are SD depots used to install patches, not actually active files on the system.
Delete or move the crash dumps.
The action is up to you...
If you need the crash analyzed then keep them somewhere else.
If you need the downloaded depot distros then move them somewhere else.
In a nut, these files are not needed for the system to run. They could be needed by you to admin the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 09:11 AM
08-19-2008 09:11 AM
Re: /var full
Ditto to Court and Tim's recommendations to remove the patch depots and the crash dump images.
Consider that the patch files can always be re-feteched *AND* have probably had superseded versions made available anyway.
Consider that a 4-year old crash dump is meaningless --- it's 4-years old so it hasn't happened again --- why keep it?!?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2008 12:47 PM
08-19-2008 12:47 PM
Re: /var full
GUYS...everything that you told me was right now /var is 87%, i backed up the PHSS, just in case, and the crash.0 files are gone.
Now the application AAA it seems that will have some space to work.
I want to thank you for all your great help.
God Bless everyone.
Best Regards,
Marco Hernandez