- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- full /var filesystem
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
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
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-15-2000 11:21 PM
тАО08-15-2000 11:21 PM
I have 2 qustions:
1) How can I increase /var (we have install ON-LINE JFS)?
2) I find many files in /var/adm/sw/save. Can I remove them without having problems sometimes ?
Thanks for help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 11:21 PM
тАО08-15-2000 11:21 PM
Re: full /var filesystem
First you can tidy up some old saved patches by using the cleanup command. But, if you ever want/need to revert back to these old patches then you wont be able to so be careful not to cleanup too many old patches (go back say 2 levels of old patches).
Also check /var/tmp to see if you can cleanup some old files from there.
If you need to increase /var then with onlineJFS its easy; extend the lvol first using lvextend then use fasdm -F vxfs -b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 11:26 PM
тАО08-15-2000 11:26 PM
Solutionlvextend -L
fsadm -b
however, I think your problem is patches as you have lots of /var/adm/sw/save
To 'commit' the patches (and therefore you won't be able to back them out) do :-
swlist -l fileset -a name | grep PH > /tmp/patchlist
swmodify -x patch_commit=true -f /tmp/patchlist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 11:27 PM
тАО08-15-2000 11:27 PM
Re: full /var filesystem
By default at hp-ux during patch installation, SD-UX makes rollback copies of all files and archive library objects modified. These copies are saved under the "/var/adm/sw/save" directory structure and do occupy disk space.
When desired, this disk space can be regained. Of course, when doing so there will be no way to "uninstall" the patch with swremove(1M). The rollback copies are removed from the system when the patch is "committed".
The process of "committing" a patch is accomplished with the swmodify(1M) command. It is necessary to specify which patch filesets are to be committed; thus, to commit an entire patch you would use a command similar to:
swmodify -x patch_commit=true PHCO_13284.*
Once a patch is committed, the "patch_state" is changed from "applied" to "committed". This can be observed by the following command:
swlist -l patch -a patch_state [PHCO_13284/PACHRDME/English]
The "cleanup" command may be used to simplify this process when only the rollback information for superseded patches is to be removed.
Running the following command will remove space for superseded patches in /var/adm/sw/save:
cleanup -c [number_of_time_superseded]
The new "-c" option is added in PHCO_19550. The cleanup(1) man page explains the new option:
-c
Commit patches superseded at least times.
This option is a front-end to the 'patch_commit'
option of swmodify(1M) that provides an easier
interface to commit multiple patches at once.
Running cleanup -c 1 will display all patches that have been superseded at least one time and then prompt for removal of their rollback information. As with all cleanup options no patch information will be removed without prompting the user first.
NOTE: For more information see the white paper located at /usr/share/doc/patch_pgrm.txt and the man page for cleanup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2000 11:27 PM
тАО08-15-2000 11:27 PM
Re: full /var filesystem
If so, then it's a known problem and you can delete it. (Mine was over 500Mb).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 12:06 AM
тАО08-16-2000 12:06 AM
Re: full /var filesystem
SAM tells me, that I have install OnLineJFS!!
Whats wrong????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 12:24 AM
тАО08-16-2000 12:24 AM
Re: full /var filesystem
That means
lvextend -L
extendfs /dev/vg00/rlvol8
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 12:34 AM
тАО08-16-2000 12:34 AM
Re: full /var filesystem
grep vx /stand/system
should have vxbase and vxadv
if not present do an ls of /usr/conf/lib and check for libvxfs_adv.a
If it's there, add vxadv to the /stand/system file and rebuild the kernel and reboot.
Clearing the wasted space out is better than needlessly increasing /var IMHO.
Also check what's in /var/adm/crash if anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 12:34 AM
тАО08-16-2000 12:34 AM
Re: full /var filesystem
grep vx /stand/system
should have vxbase and vxadv
if not present do an ls of /usr/conf/lib and check for libvxfs_adv.a
If it's there, add vxadv to the /stand/system file and rebuild the kernel and reboot.
Clearing the wasted space out is better than needlessly increasing /var IMHO.
Also check what's in /var/adm/crash if anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 01:21 AM
тАО08-16-2000 01:21 AM
Re: full /var filesystem
cat /dev/null > /var/adm/wtmp
/var/adm/wmtp, btmp
/var/sam/log/*.log
Remove the files under /var/preserve and /var/mail.
You can include this clean-up in a cron.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 02:58 AM
тАО08-16-2000 02:58 AM
Re: full /var filesystem
thanks for all your help!!!
The reason was:
Copy the software to depot only install a litle part of OnLine JFS! The option I have to switch of is:
"Enforce dependency analysis errors in agent"
What ever this means?! Now it is working!
Because I have many patches installed, but did not know for what, I have to wait some time before I commit them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2000 05:28 AM
тАО08-16-2000 05:28 AM
Re: full /var filesystem
/var/mail
/var/adm
/var/adm/sw
/var/adm/crash
/var/spool
If you aren't using email on a system, /var/mail can be part of /var, but if you are receiving email, anyone can send a massive message (100's of megs) and fill /var. Same with spooling, etc. /var/adm always needs logfile trimming.
Bill Hassell, sysadmin