- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: managing /var area
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
09-16-2002 04:19 AM
09-16-2002 04:19 AM
managing /var area
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 04:30 AM
09-16-2002 04:30 AM
Re: managing /var area
also
> btmp
> wtmp
if you don't want to keep last logins , bad logins (you can still copy the files elsewhere before you reset them)
Same idea for the log files.
But this may not help you if you have a process writing mad in /var.
detect the process and check what its behaviour !
Last resort, your /var was too small andyou readch 100% today. Therefore you need to expand /var.
plenty of threads on the subject.
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 04:33 AM
09-16-2002 04:33 AM
Re: managing /var area
if all the present files are critical, then you have to increase the /var filesyetm size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 04:35 AM
09-16-2002 04:35 AM
Re: managing /var area
Beware of deleting files in these areas, as if a process has them open, you will not reclaim the space until the process completes/is killed.
better to use
> filename
to truncate the size to 0, but make absolutely sure that nobody needs the file(s) before doing this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 04:36 AM
09-16-2002 04:36 AM
Re: managing /var area
There are several places to look for files to remove in '/var':
If you have old crash (memory) dumps in '/var/adm/crash' taht have been analyzed, then remove them.
Old 'vi' editor recovery files reside in 'var/preserve'. You can remove old ones, appropriately.
Look for 'core' files and remove with:
# find /var -name core -exec rm -i {} \;
Use 'cleanup' to trim old SD (software distributer) logs and commit patches. Do *NOT* manually diddle with the 'var/adm/sw' directory!!! :
# cleanup -c 1 #...for 11.x
# cleanup #...for 10.20
Files in '/var/tmp' are candiates for removal.
Look for directories with large sizes:
# du -kx /var|sort -rn|more
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 04:55 AM
09-16-2002 04:55 AM
Re: managing /var area
start with finding large files:
find /var -type f -size +1000000c -exec ls -l {} \;
download and install "lsof"
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/
and use lsof to make sure no process has the file opened before removing or gzip'ing it.
also find sub-directories of /var that might be an issue:
du -sk /var/* | sort -rn | more
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 05:47 AM
09-16-2002 05:47 AM
Re: managing /var area
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 06:39 AM
09-16-2002 06:39 AM
Re: managing /var area
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 07:43 AM
09-16-2002 07:43 AM
Re: managing /var area
you can cleanup /var/adm/crash if not required. /var/adm/sa could be cleaned up except the current file. Also look for log files under /var/stm/logs/os, /var/tmp, /var/opt/perf/datafiles.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 09:03 AM
09-16-2002 09:03 AM
Re: managing /var area
Follow these steps to create space in /var
1) Check for /var/adm/crash directory. If this is not a seperate filesystem (ideally it should be equal to your installed memory space and mounted as seperate FS) then your /var directory may lose a lot of space. Clear up the directories listed within this.
2) Do a "du -sk /var/*"
This will give you a listing of which directory is using a high amount of space. Check your /var/adm/syslog directory. If you feel the log size is too big clear the log file and create a new one with the same name. Whatever space you get in such times, is always essential space.
3) Verify your application log directories under /var
Mostly all application log files are placed under /var
You may move into each application directory under /var if they are not mounted as seperate filesystems and clear the log files.
4) Run "top" command and see if any process is going haywire and creating problems utilizing large CPU or memory. If that's the case, kill the process with the process id shown in TOP and you should be good to go.
Enjoy,
Anil
(Don't forget to assign points if you find answers valuable. Many people have helped you here"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 01:09 AM
09-17-2002 01:09 AM
Re: managing /var area
If all the above do not work,simply reboot the system.By all means you have to reboot because if /var is full you can not print,edit files or even use sam.
Regards