Operating System - HP-UX
1823064 Members
3046 Online
109645 Solutions
New Discussion юеВ

Re: To Increase Size of /var patition.

 
SOLVED
Go to solution
walter crasto_1
Frequent Advisor

To Increase Size of /var patition.

Hi,

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
9 REPLIES 9
SureshKumar_2
Valued Contributor

Re: To Increase Size of /var patition.

Hi walter,

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
Things are very easy, when u know about it...
KapilRaj
Honored Contributor
Solution

Re: To Increase Size of /var patition.

Do you have Online JFS ?
if YES
then
man fsadm #Don't remember the syntax
You did it
else
boot into LVM maint mode
lvextend -L extendfs -f vxfs /dev/vg00/rlvol?
reboot
fi

Regds,

Kaps
Nothing is impossible
walter crasto_1
Frequent Advisor

Re: To Increase Size of /var patition.

Hi Suresh,
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


T G Manikandan
Honored Contributor

Re: To Increase Size of /var patition.

What is the present size of /var

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.
MarkSyder
Honored Contributor

Re: To Increase Size of /var patition.

There are all sorts of things you can get rid of in /var:

> /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)
The triumph of evil requires only that good men do nothing
T G Manikandan
Honored Contributor

Re: To Increase Size of /var patition.

SureshKumar_2
Valued Contributor

Re: To Increase Size of /var patition.

Hi walter

#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
Things are very easy, when u know about it...
Fabio Ettore
Honored Contributor

Re: To Increase Size of /var patition.

Hi Walter,

if you have not OnLIneJFS then boot in single user mode and

# umount /var
# lvextend -L /dev/vg00/lvolX
# 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
WISH? IMPROVEMENT!
Victor Fridyev
Honored Contributor

Re: To Increase Size of /var patition.

Hi,

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
Entities are not to be multiplied beyond necessity - RTFM