1851643 Members
4191 Online
104061 Solutions
New Discussion

increase space in /usr

 
Jeff Hagstrom
Regular Advisor

increase space in /usr

I have a RP7410 running 11.i. I need to increase the space in /usr to load a patch. I've never increase space in the root area. How do I do that?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: increase space in /usr

Shalom,

/usr is not in the root filesystem, it is separate.

If you have space on the disk for it:

bdf /usr

# get the device

lvextend -L /dev/vg00/lvol#
umount /usr
extendfs disk device above.

You system needs to be near idle or booted to single user mode before this operation.

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
Yashwant
Valued Contributor

Re: increase space in /usr

See first wich lvol are used for /usr with bdf

You've got to boot the server in single-user mode to increase 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

#mount /usr

to verify the new size

and reboot the server on
James R. Ferguson
Acclaimed Contributor

Re: increase space in /usr

Hi Jeff:

If you have OnlineJFS (which you should because no server should be without!) then, use:

# lvextend -L /dev/vg00/lvolN
# fsadm -b /usr

If you don't have OnlineJFS, you should boot into single-user mode, where '/usr' isn't mounted and do:

# lvextend ...
# extendfs /dev/vg00/rlvolN #...note 'r'aw device
# shutdown -ry 0 # to reboot and resume

Regards!

...JRF...
Sajjad Sahir
Honored Contributor

Re: increase space in /usr


first I have to clarify
I've never increase space in the root area
u /usr is not root file sytem

before extending u file system /usr
first u have to understand online jfs is installed in u system or not for understanding that
u can use
swlist -l product | grep -i jfs
if online jfs installed in u system u can use fsadm command to increase the file system
first u have to check in u volume group any space is there or not
by using vgdisplay command if space is there
u can extend logical volume first then file sytem ok (otherwise u have to extend the size of the volume group first)

if online jfs is there do the following steps to increase the file system
lvextend -L 800 /dev/vg00/lvol5
fsadm -F vxfs -b 800 /usr