1848540 Members
10289 Online
104033 Solutions
New Discussion

Re: /usr 100%

 
tayal_sumit
Occasional Advisor

/usr 100%

Hi All,

I am using HP-UX 11.23 my /usr FS is 100% and i don't have the online JFS utility. And the size of /usr if 2gb and i have to increase it upto 5gb i have the enough space in vg00.

So please tell me steps to increase /usr FS.


regards,
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: /usr 100%

There are a couple of ways to go about this. The straight forward way is to lvextend the LV, unmount the filesystem, then extendfs the file system and remount it. The only problem is unmounting - you will probably end up having to boot into single user mode to get /usr unmounted.

The other method, if you have sufficient space, is to create a new file system of the required size, copy /usr into it, then switch the entries in /etc/fstab to point /usr to the new file system, then reboot the system.


Pete

Pete
Kapil Jha
Honored Contributor

Re: /usr 100%

If u do not have JFS.
1.Take backup
2.check if space is available
vgdisplay vg00

if space is there fine , else add disk
do pvcreate and vgextend

3.umount /usr
4.extendfs -F vxfs -s newsize /dev/vg00/lvolxx
5.mount usr


Thats all
BR,
Kapil
I am in this small bowl, I wane see the real world......
Kapil Jha
Honored Contributor

Re: /usr 100%

sorry missed most important command lvextend
lvextend -L new_size /dev/vg00/lvolxx
umount /usr
extendfs
mount

BR,
Kapil
I am in this small bowl, I wane see the real world......
Sajjad Sahir
Honored Contributor

Re: /usr 100%

umount the file system
extend the logical volum
extend the file system
mount the file system
Davis Paul
Valued Contributor

Re: /usr 100%

Hi,
boot your system in single user mode
#vgchange -a y vg00
#lvextend -L 5000M /dev/vg00/lvoxx
#extendfs -F vxfs /dev/vg00/rlvoxx
#mountall
#init 3

Regards,
Davis Paul

Shibin_2
Honored Contributor

Re: /usr 100%

Hey,

Are you sure, 11.23 didn't have online jfs? I heard, from 11.23 onwards, Online JFS is defualt.
Regards
Shibin
AL_3001
Regular Advisor

Re: /usr 100%

As per the above comment from Shibin, kindly confirm if ONline JFS is installed or not.

i.e

swlist -l product | grep -i OnlineJFS

If it is installed , you can extend /usr FS online or else you will have to unmount the FS and extend.


Check the large file in /usr FS that are responsible for FS growth because /usr contain
system files and it should not shhot up drastically

i.e

find /usr -xdev -type f -mtime -2 -ls | sort -nr +6 | head -n 5


If you still want to extend the /usr FS, do the following:



1. If Online JFS is installed:

Extend the lv (lvextend command)
Extend the Filesystem (fsadm command)

2. If Online JFS is not installed:

fuser -cu /usr (to check no user is working)

If user is, kill the user

fuser -ck /usr

umount /usr

extendfs -F

To find the fs-type of /usr:

fstyp

E.g

> fstyp /dev/vg00/lvol7
vxfs
>

extendfs -F vxfs /dev/vg00/lvol7


mount /usr

bdf /usr


Cheers,
Ashish
AL_3001
Regular Advisor

Re: /usr 100%

Hi Tayal,

I'm sorry coz i just noticed, the extendfs commad i have mentioned does not include the size of fs. We have online jfs installed on all our systems, so i have alwyas extended the filesystems online.

Gurus - Kindly add your inputs to the extendfs command to contain the size.

Cheers,
Ashish
Robert-Jan Goossens
Honored Contributor

Re: /usr 100%

Hi,

Your previous thread about extending usr
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1214686

Please assign points to your older threads and close them if they are solved, so we know what helped you!

Your questions
http://forums11.itrc.hp.com/service/forums/pageList.do?userId=WW30447&listType=unassigned&forumId=1

Regards,
Robert-Jan