1834679 Members
2730 Online
110069 Solutions
New Discussion

/var

 
SOLVED
Go to solution
John Curtis
Occasional Advisor

/var

How can I extend the /var directory?
4 REPLIES 4
Rita C Workman
Honored Contributor
Solution

Re: /var

If you have Online JFS (do swlist and check for it..)
than you can easily extend /var without umounting it.
On most systems /var is lvol8... so

lvextend -l xxx /dev/vg00/lvol8
fsadm -F vxfs -b /var
Note newsize=MB*1024

If you don't have Online JFS then:
1.Reboot server, interupt boot
2. bo pri isl
3. Interact with ISL> Yes
4. hpux -is

The only file system mounted here, like this, will be root so you can easily do the standard commands

lvextend -l xxx /dev/vg00/lvol8
extendfs -F vxfs /dev/vg00/rlvol8

/rcw
Madhu Sudhan_1
Respected Contributor

Re: /var

DIPAK KUMAR ROY
Frequent Advisor

Re: /var

Hi,

I am assuming that you have Online JFS installed on your system. Steps to increase the "/var" filesystem is as below:

Login as "root" and execute following commands:

#lvextend -L 2000 /dev/vg00/lvol8 ( Asuming new extended size= 2000 MB)

#fsadm -F vxfs -b $((2000*1024)) /var

Hope this helps.

Good Luck.

Dipak
CHRIS_ANORUO
Honored Contributor

Re: /var

To increase /var use the following steps:
1. Backup the /var filesystem ; get info about /var from /etc/fstab and/or printout bdf
2. Shutdown -r (Reboot server, interrupt boot process)
3. bo pri
4. Interact with ISL> Yes
5. isl> hpux -is
6. lvextend -L NNN /dev/vg00/lvolx
7. extendfs -F vxfs /dev/vg00/rlvolx (if vxfs or extendfs -F hfs /dev/vg00/rlvolx (if hfs))
8. mount filesystem
9. Restore previous backup
10. Reboot server


When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.