- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: removing files from /var file system
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
12-14-2005 06:58 AM
12-14-2005 06:58 AM
We get alerts from the /var file system getting filled up.
We are thinking remove some depot file from there. I am not sure after installation of patches, can we remove
the depot files from there ? Will it have any impact on the already installed binary ?
Which are directories under /var file system from where we can delete the files ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 07:06 AM
12-14-2005 07:06 AM
SolutionBTW what is the size of var on your server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 07:11 AM
12-14-2005 07:11 AM
Re: removing files from /var file system
Do a swlist -l depot to see if the depot is a registered depot. If you no longer need the depot, do a swreg -u -l depot /path/to/depot to unregister it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 07:17 AM
12-14-2005 07:17 AM
Re: removing files from /var file system
For example, I have a depot I downloaded from HP located under /var/tmp/ANDY/PRM_PATCHES/depot. Once I installed it I verified the installation (swlist -l fileset -a state | grep -v "^#" | grep -v configured). Only then did I comfortably remove /var/tmp/ANDY and unregister the depot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 07:21 AM
12-14-2005 07:21 AM
Re: removing files from /var file system
Whatever you do, do NOT manually maintain '/var/adm/sw'. This is your IPD (Installed Product Database) used by 'swinstall' and the other Software Distributer tools.
The safest way to regain space is to run 'cleanup -c 1'. This removes all but one roll-back patch imsage.
If you have "*.depot" files and or patches (PH*_*) in '/var/tmp' then these can be removed when you are done with them, without harm.
Regards!
...JRF...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 07:30 AM
12-14-2005 07:30 AM
Re: removing files from /var file system
Y cant u try a "find" for logs inside your /var before thinking of cleaning up your sw and patches..
Some of your applications can keep old logs files which can be deleted. Even you can search for "core" dumps and touch that..
Just_In
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 07:31 AM
12-14-2005 07:31 AM
Re: removing files from /var file system
cleanup -c 1
To check other possibilities:
du -sk /var/* |sort -n
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 07:31 AM
12-14-2005 07:31 AM
Re: removing files from /var file system
Read the man page on cleanup so you fully understand the weight of committing patches.
I usually start with 'cleanup -p -c 2' and get more brave from there, depending on the server (production/development).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 08:26 AM
12-14-2005 08:26 AM
Re: removing files from /var file system
# cd /var
# du . -ka -x | sort -nr | more
This du command will list the files in ascending order by sizes.
As previously stated, use cleanup command to reduce the patch database size.
Also look in the /var/adm/syslog. Do you have large syslog.log and/or mail.log files?
Is the crash directory on the same mount point as /var? Do you have crash dumps in there?
You may want to put the /var/adm/crash on its own filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 09:08 AM
12-14-2005 09:08 AM
Re: removing files from /var file system
Check for the big files under /var and you can find some big files or logs.
You can use :
# bdf | grep var # ( check if only var mount point exists).
# cd /var
# ls -lR | sort +4 -5nr | more
( It will show all the biggest files one by one..)
Also check for
/var/adm/syslog/syslog.log
/var/adm/syslog/OLDsyslog.log
/var/adm/syslog/mail.log
/var/adm/wtmp
/var/adm/cron/log
You can nullyfy the files or move to other place to recover free space.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 02:36 PM
12-14-2005 02:36 PM
Re: removing files from /var file system
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 03:26 PM
12-14-2005 03:26 PM
Re: removing files from /var file system
i would also recommend that you go through "Routine Tasks" in SAM and purge all your old logs first
this hopefully will clear up a bit of space.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 03:55 PM
12-14-2005 03:55 PM
Re: removing files from /var file system
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=977812
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 06:07 PM
12-14-2005 06:07 PM
Re: removing files from /var file system
I just ran the command "# cleanup -p -c 2"
and got the below output on test box:-
The following patches superseded at least 2 time(s) can be committed:
Superseded # Times Superseded Disk Space in /var/adm/sw/save Superseded By
========== ================== ============================== =============
PHCO_24813 2 495616 bytes PHCO_26700
PHCO_25082 2 151552 bytes PHCO_26561
PHCO_25311 2 3426304 bytes PHCO_26824
PHCO_25452 3 23476224 bytes PHCO_27434
PHCO_27020 2 571392 bytes PHCO_28259
PHCO_27209 2 385024 bytes PHCO_27243
can anyone explain what this output says ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 06:14 PM
12-14-2005 06:14 PM
Re: removing files from /var file system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 06:15 PM
12-14-2005 06:15 PM
Re: removing files from /var file system
the superseded patch
the times its been superseded
the disk space it uses
the patch it has been superseded by.
for the actual cleanup leave the -p out of the command.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 06:23 PM
12-14-2005 06:23 PM
Re: removing files from /var file system
make sure the are not used (fuser) or registered as depot (swlist -l depot).
if the depot is registered , use :
swreg -u -l depot /var/opt/patches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 07:17 PM
12-14-2005 07:17 PM
Re: removing files from /var file system
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 10:41 PM
12-14-2005 10:41 PM
Re: removing files from /var file system
you can run cleanup -c 1 and remove patches that are superseded at least 1 time.
you may want to run swreg -u -l depot /var/opt/patches to register patches before running the cleanup.