Operating System - HP-UX
1833866 Members
2389 Online
110063 Solutions
New Discussion

How to increase the size of /usr ?

 
Kenneth_61
Frequent Advisor

How to increase the size of /usr ?

I use #sam to add the size of /usr partition. However, it say that the partition need to be umount first and the /usr cannot unmounted. I do it on command, but device is said to be busy. How can I increase the size in HP-UX 11.00?

===========================
# umount /usr
umount: cannot unmount /usr : Device busy
5 REPLIES 5
Thayanidhi
Honored Contributor

Re: How to increase the size of /usr ?

/usr is part OS, it cannot be unmounted while the OS is running.

If you have OnlineJFS, you can do it online.

swlist -l product | grep -i online
To find out whether you have OnlineJFS.

Then run

lvextend -L /dev/vg00/lvolx
fsadm -F vxfs -b /usr

If you don't have OnlineJFS, reboot the system and interupt the autoboot. Interact with ISL. (In BDC>"bo pri" Interact with ISL "y")

From ISL>"hpux -lm" to boot the system in LVM maintenance mode.

Vgchange -a y /dev/vg00

lvextend -L /dev/vg00/lvolx
extendfs /dev/vg00/rlvolx

Reboot once done with this.

Refer to coresponding manpages for more details.

Regds
TT


Attitude (not aptitude) determines altitude.
Devender Khatana
Honored Contributor

Re: How to increase the size of /usr ?

Hi,

The procedure told above is enough to achive this. Find online JFS on user machine by

#swlist -l product|grep -i online
OnlineJFS B.11.11 Online features of the VxFS File System

If you get similar output, you have it and can use the first step otherwise use the second option which involves reboot.Prior to reboot also find that your vg00 has enough free space for file system to be extended by

#vgdisplay -v /dev/vg00 |more

In the output look for Free PE and PE Size. Your vg has free space in MB which equals to the number obtained by multiplying these two nos.

HTH,
Devender
Impossible itself mentions "I m possible"
Sยภเl Kย๓คг
Respected Contributor

Re: How to increase the size of /usr ?

If u have Online JFS you can extend the filesystem without unmouting it. Else u need to bring the system in to single user mode and do the lvextend then extendfs..refer to filesystem management

With Online JFS

#lvextend -L /dev/vg00/lvol7
#fsadm -L /usr

Regards,
SK
Your imagination is the preview of your life's coming attractions
Cem Tugrul
Esteemed Contributor

Re: How to increase the size of /usr ?

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=885957
Our greatest duty in this life is to help others. And please, if you can't
Kevin O'Donovan
Regular Advisor

Re: How to increase the size of /usr ?

Another alternative would be to backup your system using Ignite, boot from the Ignite image, and during the reinstall adjust the /usr filesystem to the appropriate size.

Kev.