1838642 Members
2945 Online
110128 Solutions
New Discussion

increase /usr size

 
Jeffrey F. Goldsmith
Super Advisor

increase /usr size

I am trying to upgrade my server from HP-UX 10.20 to HP-UX 11.i. When I ran the update I got an error that said that /usr didn't have enough space. In the upgrade book it tells how to upgrade /var but also talks about upgrading /usr, /opt and /stand.
I tried following the steps they offer to increase /var to increase /usr but it doesn't seem to be working for me. Can anyone tell me what i am doing wrong?


/sbin/shutdown (works)
/sbin/mount (works)
/sbin/umount /usr (works)
/sbin/lvextend -L 1500 /dev/vg00/lvol7 (works)
/sbin/extendfs /dev/vg00/rlvol7 (Doesnt work)

8 REPLIES 8
Bryan D. Quinn
Respected Contributor

Re: increase /usr size

Hello Jeff,

What error does it give you when you try the extendfs?

-Bryan
Sridhar Bhaskarla
Honored Contributor

Re: increase /usr size

Hi,

Try /sbin/extendfs -F vxfs /dev/vg00/rlvol7

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Helen French
Honored Contributor

Re: increase /usr size

I think the best option for an OS upgrade in this case is a cold install instead of a direct upgrade. But if you insist on upgrade, then check:

what's the file system type on /usr?
what's error you get?
Do you have enough space on vg00 for extending the FS?
Life is a promise, fulfill it!
Pete Randall
Outstanding Contributor

Re: increase /usr size

Jeff,

I'll just point out that this is *one* of the major problems with the 10.20 to 11.0 upgrade process. That's why the usual recommended practice is to do a cold install instead.

By the way, I think Sri's full pathname suggestion should get you by this particular problem.


Pete

Pete
Jeffrey F. Goldsmith
Super Advisor

Re: increase /usr size

when I run the /sbin/extendfs /dev/vg00/rlvol7 I get the following error:

sh: fsck: not found
vxfs extendfs: Invocation of the fsck program terminated abnormally. The file system is marked bad.
Run the full fsck manually.
Sridhar Bhaskarla
Honored Contributor

Re: increase /usr size

Hi,

I guess you are missing the PATH. Before doing extendfs, try setting the path

PATH=$PATH:/sbin

Then try extendfs

I agree with others that upgrade from 10.20 to 11i isn't a very good idea. You are better off with cold install. It may be bit difficult as you have to restore the configuration of your 10.20 onto 11i. But on the long run, you will find the system stable.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Helen French
Honored Contributor

Re: increase /usr size

Read this TKB document (# 1200365362):

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062903311

Solution:

# export PATH=$PATH:/sbin
Life is a promise, fulfill it!
Pete Randall
Outstanding Contributor

Re: increase /usr size

Jeff,

Either fix your path or use the full path name: /sbin/fsck


Pete

Pete