- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: var is 90 %
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-18-2009 09:13 AM
тАО08-18-2009 09:13 AM
var is 90 %
Hi techiees
In my hp-ux 6600 server the /var if 90%
if i do the du -sk /var/adm | sort -nr | more it will tell as
736715 sw
25496 syslog -
10801 cron
6601 sa
3619 perfmgr
2209 sulog -
1101 sudolog -
561 OLDsulog -
122 wtmp
SO i tried to move the OLDsulog file .. then also the size of the /var is 90%
Could anybody tell what task should be performed for this ... Thxs in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 09:18 AM
тАО08-18-2009 09:18 AM
Re: var is 90 %
From the above details it looks like you have many old patches residing on /var/adm/sw/
Try cleanup with preview option and see what it can clean up for the superseded patches from /var/adm/sw/save/ . (Remember not to delete anything manually.)
# cleanup -p -c 1
And if it shows many patches it can cleanup do a cleanup and it will recover the free space on var.
Cheers,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 09:23 AM
тАО08-18-2009 09:23 AM
Re: var is 90 %
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 09:39 AM
тАО08-18-2009 09:39 AM
Re: var is 90 %
or remove the file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 09:42 AM
тАО08-18-2009 09:42 AM
Re: var is 90 %
As noted, you can use 'cleanup -c 1' to recover space from '/var/adm/sw'. This will remove the rollback images of patches that have been superseded at least once. This is quite safe.
Never remove or otherwise muddle with the contents of '/var/adm/sw'. To do so may leave your server in a state where it can no longer be patched or have software added, removed or even listed.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 11:15 AM
тАО08-18-2009 11:15 AM
Re: var is 90 %
It is certainly possible, but it will not make a big difference.
In your output above, the 'sw' dir is approx. 730 MB. The 'syslog' dir approx 24 MB.
The OLDsulog was only 561 KB, so I'm not surprised the percentage didn't move.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 06:56 PM
тАО08-18-2009 06:56 PM
Re: var is 90 %
du -kx /var | sort -nr | head -20
This will show the largest directories. Work on thos first.
Logfiles in /var/adm and /var/adm/syslog can be copied to a new name, compressed and the old logfile reduced to zero bytes like this:
cd /var/adm/syslog
cp syslog.log syslog.log.20090818
cat /dev/null > /var/adm/syslog/syslog.log
mv OLDsyslog.log OLDsyslog.log.20090818
compress syslog.log.20090818
compress OLDsyslog.log.20090818
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 07:49 PM
тАО08-18-2009 07:49 PM
Re: var is 90 %
You might also want to check the size of /var/tmp and /var/adm/sw/save.
The FS /var/adm/sw/save contains the old files saved when patches applied to provide for rollbqack of the patches.
Another option, if you have disk space, to create another lv, is to copy the contents /var/adm/sw/save to a new FS and then mount it under /var/adm/sw/save. This file system can get very large, especially if you have products like the Data Protector Cell Manager, NNM, or OM installed.
As mentioned above, cleanup -c1 will remove all patches that have been supersceeded at least once from /var/adm/sw/save.
Regards,
Norm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 09:01 PM
тАО08-18-2009 09:01 PM
Re: var is 90 %
as mentioned find out folders which are occupying more space in /var through below command.
du -kx /var | sort -nr | head -20
once you have folder list you should have Couple choices.
1) create new logical volume and migrate these folder in new lv put symbolic link.
2)create a nfs space to storage server or any other server which having more space and migrate these folder there.
hope this will help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2009 09:12 PM
тАО08-18-2009 09:12 PM
Re: var is 90 %
first you should verify and find out the possibility to housekeep.