- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /var space increase steps
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
тАО08-03-2011 01:53 AM
тАО08-03-2011 01:53 AM
/var space incress steps
Dear All,
We have HP-UX 11.23 U ia64 server. VAR partition 75% full, what can I do to increase free space? Please guide the same.
Thanks in advance
Thanks & Regards, Mastan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2011 02:42 AM
тАО08-03-2011 02:42 AM
Re: /var space increase steps
It may be simpler to find out what's taking all of that space and remove it.
What are the large directories?
For /var/adm/sw/, you can use cleanup(1m) to cleanup superseded patches.
For /var/tmp/, you can remove old files.
For /var/spool/, you can clean up old mail messages.
- Tags:
- cleanup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2011 03:55 AM
тАО08-03-2011 03:55 AM
Re: /var space incress steps
Hi Mastan:
Analyze output from next commands:
# du -skx /var/* | sort -nr | head -10
# find /var -type f -xdev -size +5000000c -exec ll {} \;
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2011 04:52 AM
тАО08-03-2011 04:52 AM
Re: /var space incress steps
Check, with vgdisplay, to see if there is free space in vg00. If there is, you can lvextend the lvol containing /var and then extendfs the file system (see the examples section of man lvextend (1M). If not, you will have to provide extra space through vgextend first or start trimming, as others have suggested.
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2011 06:47 AM
тАО08-03-2011 06:47 AM
Re: /var space incress steps
Hi,
You need free PEs in your root vg (vg00) to be able to extend any LVs. If you dont have any free space, then you need to add new disk and follow below steps.
# ioscan -fnC disk
# insf
# reboot the server in single user mode (i.e. boot -is from EFI shell)
# pvcreate /dev/rdsk/cxtxdx
# vgextend vg00 /dev/rdsk/cxtxdx
# umount /var
# lvextend /dev/vg00/lvol5 (Here, lvol5 is for /var mount point)
# extendfs -F vxfs /dev/vg00/lvol5
# mount /dev/vg00/lvol5 /var (Or use mountall as it is already there in /etc/fstab)
Hope this helps!!!!
Cheers.
Was this post useful? - You may click the KUDOS! star to say thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2011 07:49 AM
тАО08-03-2011 07:49 AM
Re: /var space incress steps
Hey;
As others have mentioned, the first thing to do is to see if there is anything that can be cleaned up in /var. That filesystem holds log files and various temp files which have to be periodically cleaned up or the filesystem fills.
Things to check:
* /var/tmp - old files in here
* /var/adm/syslog - logs in here can grow w/o bounds
* /var/adm/*tmp* - btmp, wtmp, and wtmpx grow w/o bounds
* /var/adm/sw/save - where commitable patches are saved.
You should run "cleanup -c 1" to clean up any patches, then check those items above. After that, I tend to run "du -sk * | sort -n -k 1" to find out where the space is being used.
Once you've done that, and still need more space, you can extend the space in /var assuming you have the space available.
First, find out if you have online jfs: "swlist -l fileset | grep -i onlinejfs".
Next, find out if you have the space in vg00 to extend: "vgdisplay vg00"
If you have the space, ID the lv for /var: mount | grep -i "/var " | awk '{print $3}'
extend the filesystem: lvextend -L ${new_size_in_megs} ${lv}
if you have online jfs: fsadm -F vxfs -b $(new_size_in_megs}m /var
If you don't have online jfs, unmount /var and run extendfs -F vxfs ${raw_lv}
You'll probably have to go into single user mode in order to unmount /var. *LOTS* of processes keep files open in that filesystem...
Hope that helps.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2011 09:03 PM
тАО08-03-2011 09:03 PM
Re: /var space incress steps
Why this thread is still open!!!
http://h30499.www3.hp.com/t5/Integrity-Servers/var-space-incress-steps/m-p/5290241#M11050
Was this post useful? - You may click the KUDOS! star to say thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2011 04:23 AM
тАО08-04-2011 04:23 AM
Re: /var space incress steps
> Why this thread is still open!!!
Is that supposed to be a question or a statement? If it's a question, what is it you're questioning? If it's a statement, could you explain what you're commenting about?
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2011 06:19 AM
тАО08-04-2011 06:19 AM
Re: /var space incress steps
Check the link please, its a duplicate thread from same user, should have closed that thread if posted to different category by mistake. Wasn't that self understandable?
Was this post useful? - You may click the KUDOS! star to say thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2011 06:21 AM
тАО08-04-2011 06:21 AM
Re: /var space incress steps
No, not to me.
Pete