1839031 Members
2813 Online
110132 Solutions
New Discussion

increasing size of /var

 
SOLVED
Go to solution
Amit Manna_6
Regular Advisor

increasing size of /var

Hi,

Can anybody tell me how to increase the size of /var

I am pasting the bdf and fstab o.p here
bdf /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 1036288 1034985 1303 100% /var



ev/vg00/lvol8 1036288 1034985 1303 100% /var
[root@rtkarch]/usr/bin # cat /etc/fstab
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /home vxfs delaylog 0 2
/dev/vg00/lvol5 /opt vxfs delaylog 0 2
/dev/vg00/lvol6 /tmp vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
5 REPLIES 5
Naveej.K.A
Honored Contributor

Re: increasing size of /var

hi,

check whether you have got online JFS installed?? If installed you can resize the filesystem without unmounting (provided you have free PEs) the filesystem.

Otherwise, you may need to boot in the lvm maintenance mode, increase the size and then mount the var and check.

before trying to increase the space, try cleaning up some space.

cleanup -p -c 2 will show preview of a cleanup of all superseded patches. see whether it can create some freee space for you. and then do a cleanup -c 2 to remove the patches

with best wishes
Naveej
practice makes a man perfect!!!
Michael Tully
Honored Contributor
Solution

Re: increasing size of /var

You cannot just increase /var without having additional disk space in which to do so and the on-line JFS product. If you haven't online JFS, you need to boot your system into single user mode in which to do the increase. I've seen many times, bringing the down into single use will not unmount /var

Reboot system
interrupt at the 10 second prompt
interact with ISL (yes)

ISL> hpux -is

# lvextend -L < new size> /dev/vg00/lvol8
# extendfs -F vxfs /dev/vg00/rlvol8
# mount /var
check for new size with bdf
# control -d (press control-d will continue system boot into multi-user mode.
Anyone for a Mutiny ?
Joseph Loo
Honored Contributor

Re: increasing size of /var

hi,

with online JFS:

# lvextend -L /dev/vg##/c#t#d#
# fsadm -F vxfs -b

without online JFS:

u may do a shutdown but most importantly, u must break the 10 seconds before u can proceed to single user mode via:

after breaking to PDC Menu --> bo pri

ISL> hpux -is

# mount /usr
# /usr/sbin/lvextend -L /dev/vg00/lvol#
# /usr/sbin/extendfs -F vxfs /dev/vg00/rlvol#
since the /etc/default/fs is hfs, unless u want to amend the file to vxfs
# lvdisplay /dev/vg00/lvol#
# mount /var
# bdf
to check if the size is correct.

regards.
what you do not see does not mean you should not believe
MarkSyder
Honored Contributor

Re: increasing size of /var

Increasing the size of the filesystem is no substitute for good housekeeping. Check the size of the following files:

/var/adm/btmp
/var/adm/sulog
/var/adm/wtmp
/var/adm/cron/log
/var/adm/lp/log
/var/adm/syslog/mail.log
/var/adm/syslog/syslog.log

If any of them is very large, null it (DON'T delete any of these files!). E.g.

> /var/adm/syslog/syslog.log

But before you null syslog.log read through it in case of warning/error messages.

If you have any directories in /var that are taking up a large amount of space you might like to move them into a filesystem of their own. E.g. if you have a large user area /var/users you can create a new filesystem called /var/users and move all the files into it. The users won't see the difference, but you will see a lot more space available in /var.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Bharat Katkar
Honored Contributor

Re: increasing size of /var

Hi Amit,
You could have also rated the replies of mark and joseph since they are relevent to your question and important too.
It is not compulsary to assign point to only single correct answer.
Don't mind.
Thanks bharat.

ps. no points to this one. :)))
You need to know a lot to actually know how little you know