- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: To Increase Size of /var patition.
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
тАО04-04-2004 06:39 PM
тАО04-04-2004 06:39 PM
My /var is almost full & now it's not allowing me to install the OS patches my OS ii HP-UX 11.0. How can I increase the /var size I have 160MB free space on my vg00.
Thanks
Walter Crasto
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 06:43 PM
тАО04-04-2004 06:43 PM
Re: To Increase Size of /var patition.
Could I get bdf output.
Where do u have Free space in PVs/PVGs.
And also output of :
*) ioscan -fnuC disk
Do u user LVM Approach / VxVM???
suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 06:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 06:48 PM
тАО04-04-2004 06:48 PM
Re: To Increase Size of /var patition.
Below is the out put of bdf & vgdisplay command.
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 925696 735752 178929 80% /
/dev/vg00/lvol1 87701 39660 39270 50% /stand
/dev/vg00/lvol8 516096 428513 82237 84% /var
/dev/vg00/lvol7 516096 479109 34796 93% /usr
/dev/vg00/lvol4 925696 47808 824330 5% /tmp
/dev/vg00/lvol6 30720000 12679830 16912681 43% /opt
/dev/vg06/lvol6 8396800 6342902 1989744 76% /home6
/dev/vg00/lvol5 925696 871938 53758 94% /home
# vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4384
VGDA 2
PE Size (Mbytes) 8
Total PE 4374
Alloc PE 4354
Free PE 20
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 06:51 PM
тАО04-04-2004 06:51 PM
Re: To Increase Size of /var patition.
Just do a
#du -k /var|sort -nr|more
check any unwanted directores lying in /var.
check /var/adm/syslog
/var/tmp
/var/preserve
/var/mail
/var/crash directories.
check whether you can free some space from those directories.
What all bunles are there on the system.
You can also run the 'cleanup -c 1 ' to commit the patches which are superseeded atleast once.
If everything of the above is not spplicable,check the number of Free PE on the vg00.
If you have online JFS just extend your /var.
Else you will have to umount it and then re-size it which can be done in single user mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 06:54 PM
тАО04-04-2004 06:54 PM
Re: To Increase Size of /var patition.
> /var/adm/btmp (note use of > - null the file, do not remove it)
> /var/adm/cron/OLDlog
> /var/adm/cron/log
> /var/adm/lp/log
> /var/adm/sulog
> /var/adm/syslog/mail.log
> /var/adm/syslog/syslog.log (having first checked the file for errors or warnings)
> /var/adm/wtmp
If this fails to free enough space you might consider creating new filesystems under /var.
E.g. move /var/tmp into its own logical volume.
Mark Syder (like the drink but spelt diferent)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 06:54 PM
тАО04-04-2004 06:54 PM
Re: To Increase Size of /var patition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 06:57 PM
тАО04-04-2004 06:57 PM
Re: To Increase Size of /var patition.
#umount /dev/vg00/lvol8
#lvextend -L 676 /dev/vg00/lvol8
#extendfs /dev/vg00/rlvol1
#mount /dev/vg00/lvol8 /var
#bdf
and check, ifnot provide me lvdisplay & fstab
......
suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 07:30 PM
тАО04-04-2004 07:30 PM
Re: To Increase Size of /var patition.
if you have not OnLIneJFS then boot in single user mode and
# umount /var
# lvextend -L
# extendfs /dev/vg00/rlvolX
# mount /var
Otherwise see /var/adm/syslog/OLDsyslog.log, mail.log and /var/adm/crash for old crashes.
HTH.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2004 07:36 PM
тАО04-04-2004 07:36 PM
Re: To Increase Size of /var patition.
First of all, you can clean up /var by using the command cleanup -c N. It will remove patches superseded at least N times. (I'd recommend N=2). Previously you should back up /var/adm/sw directory.
If this will not give you enough free space, shutdown the computer to single user mode, extend the logical volume by
lvextend -L XXX /dev/vg00/lvol8
and file system by
extendfs -F {vxfs|hfs} /dev/vg00/rlvol8
Good luck