Operating System - HP-UX
1827741 Members
3168 Online
109969 Solutions
New Discussion

Re: How do I increase the space in /var & /usr

 
SOLVED
Go to solution
David Heard
Occasional Advisor

How do I increase the space in /var & /usr

How do I increase the space in /var & /usr
7 REPLIES 7
RAC_1
Honored Contributor
Solution

Re: How do I increase the space in /var & /usr

1. If you have online jfs.

do lvextend and fsadm

lvextend -L new_size_in_MB lv_device_file
fsadm -b new_size_in_MB /var

2. If you do not have online jfs.

Goto to single user mode.

hpux -is

do
lvextend and extendfs.

(For both options you need to have enough free space )
There is no substitute to HARDWORK
David Heard
Occasional Advisor

Re: How do I increase the space in /var & /usr

what is hpux -is?
Kurt Beyers.
Honored Contributor

Re: How do I increase the space in /var & /usr

See first wich lvol are used for /usr and /var with bdf

You've got to boot the server in single-user mode to increase /var (lvol8) and /usr (lvol7):

#shutdown -r -y

boot pri
Interact with ISL? Yes
ISL>hpux -is

When you are in single user mode, increase the file system as follows:

#lvextend â L â new size in MBâ /dev/vg00/lvol7
#extendfs /dev/vg00/rlvol7

#lvextend â L â new size in MBâ /dev/vg00/lvol8
#extendfs /dev/vg00/rlvol8

#mount /usr
#mount /var

to verify the new size

and reboot the server on
Steven E. Protter
Exalted Contributor

Re: How do I increase the space in /var & /usr

Online JFS or?

boot the box at the console

Interupt at the 10 second prompt

bo pri

Y(es) Interact

hpux -is

Now you can extend /var and /usr.

It would be a good idea to find out first where the lvm commands are and have the commands in a script with full path name.

I will always try to present a non OnlineJFS option even though I now have it in my shop.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Marco Santerre
Honored Contributor

Re: How do I increase the space in /var & /usr

hpux -is is the command to boot in single-user mode.
Cooperation is doing with a smile what you have to do anyhow.
Hazem Mahmoud_3
Respected Contributor

Re: How do I increase the space in /var & /usr

David,
Also make sure that you have enough space in the volume group that /var and /usr are in. If they are in vg00 do:
# vgdisplay /dev/vg00
and look at the Free PE value. To get the total number of free MB, multiply that value by PE Size (usually 4MB).
If there isn't enough space, there are other options you can do. But you would need to find that out first.

-Hazem
Todd McDaniel_1
Honored Contributor

Re: How do I increase the space in /var & /usr

David,

Seems like the question is already answered, but I feel you have a second question in the back of your head...

IF you have JFS online, then you can increase any LVOL on your box while in multi-user mode EXCEPT for / and /stand which MUST be contiguous extents... and require you to rebuild or ignite the box to extend them.

You would have to make a backup or 2 of your OS and then ignite and change the sizes of them and continue with the ignite process.

/var and /usr dont require contiguous space so you can do them in multi user mode, but I would schedule time where users are not on the box, just to make it quiet for your work.

However, it can be done "online" while the box is running with users. But always err on the side of caution.
Unix, the other white meat.