- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var maintenence
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
07-03-2003 04:12 PM
07-03-2003 04:12 PM
Our /var filesystem is 95% full, and I dont have any space left to increase it :(
I was looking through it for files over 1MB and saw alot of files from Perf View, cstm, ignite, OV, and something in /var/adm/sw? (I am guessing software distributor).
I have also cleaned out the /var/tmp dir, but that did not clean up much space...
So I was wondering if you could compress or delete any of these files from the above applications, and if so, what type of files, and how long their life span should be?
Thanks in advance,
Andrew
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 04:36 PM
07-03-2003 04:36 PM
Re: /var maintenence
Do you have any files in /var/adm/crash that are old?
You could remove most the old files in /var/tombstones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 04:52 PM
07-03-2003 04:52 PM
SolutionThere's alot of potential files that can be cleaned up.
1) cleanup -c 2 will committ patches superseeded twice. Use -p to preview.
(attached script will show space reclaimed by committing patches.)
2)The files in /var/opt/perf are part of measureware. The log files in the /var/opt/perf/datafiles directory. shouldn't be removed but you can set limits on their size in the /var/opt/perf/parm file.
3) Other potential files to look at
/var/mail/
/var/adm/sa (if it exists)
4) A # du -skx /var/* | sort -rn | head -20.
will show your biggest directories etc.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 04:56 PM
07-03-2003 04:56 PM
Re: /var maintenence
I deleted the old tombstones, and there was only 1 REALLY small file in /var/adm/crash.
When you say "Trim" the logs, what do you mean by that exactly? Can I delete them?
Will that break the applications?
Or just vi the logs, and remove really OLD information??
thanks again,
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 05:04 PM
07-03-2003 05:04 PM
Re: /var maintenence
trim means either make the files 0 size by doing > say to syslog you want to do then do
#>/var/adm/syslog/syslog
Also this can be done by SAM-->routine task-->System Log files and select the file you want to trim an din actions menu you can trim.
Also celanup -c 1 will give you a lot of space.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 05:09 PM
07-03-2003 05:09 PM
Re: /var maintenence
# cp
# gzip logfile.old (& possibly move to bkup directory on another FS)
# cat /dev/null > logfile.
(cp & gzip not strictly necessary but good idea to have a backup)
What's the size of your /var??
You probably need to identify the largest directories/files.
Can also use:
# du -kx /var | sort -rn | head -20.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 05:10 PM
07-03-2003 05:10 PM
Re: /var maintenence
sam --> Routine Tasks --> System log files.
Select the files and away you go. /var/adm/lp logs are another good one. As mentioned before, be careful how much you trim from /var/adm/btmp and /var/adm/wtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 05:10 PM
07-03-2003 05:10 PM
Re: /var maintenence
Here is a previous on the similar problem:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2e095fe8b250d71190080090279cd0f9,00.html
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2003 05:15 PM
07-03-2003 05:15 PM
Re: /var maintenence
Now this can get to be tedious for a lot of servers so you'll want to script the trimming steps and run them through cron.
Use the du suggestion to locate big directories first, then look inside the biggest directories to see if there are any large files. NOTE: The /var/adm/sw directory has critical information about patches and installed software. The cleanup command will handle these files properly. Don't remove any files from /var/adm/sw/save or you may mever be able to patch your system again.
Bill Hassell, sysadmin