1826163 Members
4414 Online
109691 Solutions
New Discussion

Increase /var volume

 
David Young_12
Occasional Contributor

Increase /var volume

How would I increase the /var volume. It won't let me as long as I am in VUE.
The only way I know how to extend a volume is through SAM. What are the command
line to extend a volume.
2 REPLIES 2
Anthony Goonetilleke_1
Regular Advisor

Re: Increase /var volume

If you are running things like Omniback or ITSM that take up a bit of space in
/var I always find that it is better to put these on seperate logical volumes
and then just mount it under /var in anycase here are the commands you need to
extend a logical volume.

Create a physical volume
pvcreate /dev/rdsk/c1t2d0

Extend the volume group
vgextend /dev/vg01 /dev/rdsk/c1t2d0

Now you can use the new space to either extend a logical volume or createa new
one.

lvextend -L 1000 /dev/rdsk/c1t2d0

Note: The -L is the new size not the amount to extend by.

regards,
AG
Zhang Zhao gui
Frequent Advisor

Re: Increase /var volume

You can shutdown to single-user mode and try to umount
/var. After that you can use lvextend and extendfs command to extend /var.