1834149 Members
2258 Online
110064 Solutions
New Discussion

Extending /usr

 
SOLVED
Go to solution
Mutum
Frequent Advisor

Extending /usr

I have been runing out of space on my /usr file system.

I managed to extend the volume group vg00, and also extended the logical volume on which /usr in mounted, but when I try to extend the file system /usr, it can't be extend since it's mounted, and I can't umount it.

Can some one advice me how to perform this.

Thanks
BAGI
6 REPLIES 6
Camel_1
Valued Contributor
Solution

Re: Extending /usr

do you have online JFS? If no you have to boot server into single user mode and extend the FS.

Sudeesh
Respected Contributor

Re: Extending /usr

Do you have Online JFS installed? If yes you can extend online by fsadm without much issues. Otherwise you need to kill all the process accessing /usr and umount or reboot the system to single user mode and do extendfs.

fuser -cu /usr -> to see all the pid accessing /usr.
fuser -ku /usr -> to kill all process on /usr(Warning! killing process is dangerious suggested option is to reboot in single user mode)

Let me know if u need further help

Sudeesh
The most predictable thing in life is its unpredictability
Steven E. Protter
Exalted Contributor

Re: Extending /usr

Boot the box

Interupt at the 10 second prompt

bo

Y Interact
hpux -is

This will boot into single usre mode.

/usr will not be mounted.

Now you can lvextend and then extendfs without any trouble. You can lvextend usually while the logical volume is mounted. You can't extendfs

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
Senthil Kumar .A_1
Honored Contributor

Re: Extending /usr

Hi Muatasim,

One less effort way extending the /usr filesystem, if you do not have "online JFS".

When the system is online , u can still "lvextend" but not "extendfs". So you can use this feature to your advantage.

When the system is online, perform....

lvextend -L /dev/vg00/lvolx

(find the /dev/vg00/lvolx by issue following command
bdf /usr )

Then add the following entry in /etc/inittab file just above "brcl" entry...

exfs::bootwait:/sbin/extendfs -F vxfs /dev/vg00/rlolx
/dev/console 2>&1

Then reboot the system...
shutdown -ry 0

When the sytem is up .. check.. the size

bdf /usr
it will reflect the new size..

Now you can remove the entry u made in inittab file earlier.

regards..
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Mutum
Frequent Advisor

Re: Extending /usr

Thanks to all of you for the valuable information.

I have perform it in single user mode, after reboot.
BAGI
Mutum
Frequent Advisor

Re: Extending /usr

I have fixed in single user mode.
BAGI