- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var filling up
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
тАО06-04-2002 12:54 PM
тАО06-04-2002 12:54 PM
The /var file system is approaching 100% and I need to remove some stuff. This machine is on it's way to being replaced but I ned it from the next couple of weeks.
Is is safe to rm file in the /var/adm/sw dir? For instance the PHCO_XXX.depot files.
Also in the /var/adm/sw/patch directory. Can I rm the directories there? They appear to be patches from 1999.
Any assistance you can provide is appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2002 01:00 PM
тАО06-04-2002 01:00 PM
Re: /var filling up
No don't want to remove sw directory.
Instead look for big files in /var directory
Find files more than 1 GB
find /var -type f -xdev -size +100000000c -exec ll {} \;
You can also use du -sk command .
Look for /var/tmp directory Also check for old log files and remove them
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2002 01:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2002 01:04 PM
тАО06-04-2002 01:04 PM
Re: /var filling up
Dont remove the /var/adm/sw directory. It will create lot of problems for you.
Lokk for the big files in the /var/adm/crash and you can delete the subdirectories and files in this directory.
Do
# cat /dev/null > /var/adm/wtmp
# cat /dev/null > /var/adm/btmp
Check for the logs and temp files and delete them.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2002 01:11 PM
тАО06-04-2002 01:11 PM
Re: /var filling up
# man cleanup - for details.
Also check the bigger files with:
# cd /var
# du -k | sort -rn | pg
# find . -xdev -type f -size +10000 -exec ll {} \; > /tmp/big_files
Also trim the log files (/var/adm/wtmp, utmp, syslog.log, mail.log) and remove the core files ( /var/adm/cron) if not needed any more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2002 01:16 PM
тАО06-04-2002 01:16 PM
Re: /var filling up
I meant /var/adm/crash ! and NOT /var/adm/cron.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2002 01:19 PM
тАО06-04-2002 01:19 PM
Re: /var filling up
Also try
cd /var
#find . -type f -size +1000000c -exec ls -al {}\; | sort -rn > /tmp/bigfiles
This will show you the files with more than 1MB size.
Pls give the output of these files and we can suggest what files to remove.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2002 02:08 PM
тАО06-04-2002 02:08 PM
Re: /var filling up
Do not remove files from /var/adm/sw manually. Use the patch cleanup utility "cleanup" to clean the old patches from your system. The utility is available as a patch which you can download and install on your system. The cleanup patch is availble as
patch PHCO_20824 for 10.20
patch PHCO_24347 for 11.0
You can also look into the var filesystem and clean these files.
Anything under /var/adm/crash
old files under /var/opt/hparray (files starting with L , Delete the old ones only.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2002 05:14 PM
тАО06-04-2002 05:14 PM
Re: /var filling up
If you are running Oracle, and using the RMAN plugin with the Omniback software and a catalog database, this software automaticlly puts export dumps of the catalog database into /var/opt/omni/tmp. These files are mostly worthless, and can be cleaned up for space.
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2002 10:35 PM
тАО06-04-2002 10:35 PM
Re: /var filling up
as above don't erase /var/adm/sw,
did You check system logs files? If not run sam -> routine tasks -> system log files and have a look on size of this log files, trim them it should give You some free space.
Maybe in /var/adm/crash there is a core dump file, You can erase it.
If You check everything and find nothing to erase, but You have free space on other filesystem You can move something from /var to this filesystem and create a link on /var to it.
hope it help