1851510 Members
3580 Online
104059 Solutions
New Discussion

Extending /usr

 
D.B. Odom
Occasional Contributor

Extending /usr

On my B2000, running HP/UX 11.0, I want to expand /usr. I have gone into single user mode, but as root, I can not unmount /usr to extend it because my own shell is executing as /usr/bin/ksh. Since I don't have the JFSOnline product, what do I need to do to expand /usr?
7 REPLIES 7
Timothy Czarnik
Esteemed Contributor

Re: Extending /usr

D.B.

Create a make_recovery tape (make_recovery -A). Boot from it, interrupt the boot when asked, get into the filesystem menu, and resize from there. The system will recreate VG00 with the new filesystem size and import all other volume groups.

-Tim
Hey! Who turned out the lights!
James R. Ferguson
Acclaimed Contributor

Re: Extending /usr

Hi:

You have found one of the principal reasons why the root's default shell should be the Posix one: /sbin/sh

Since you don't have online JFS, you must drop to single-user mode and you must specify your shell as /sbin/sh.

...JRF...
Madhu Sudhan_1
Respected Contributor

Re: Extending /usr

You have to reboot into single user mode.
Stop autoboot mode. Got ISL> and fire hpux -is. Then you must be able to extend /usr as it will be unmounted.

...Madhu
Think Positive
Kofi ARTHIABAH
Honored Contributor

Re: Extending /usr



By the way, you might want to do some spring cleaning on the /usr file system and look for files that should not be there... you might have some log files that should not be there, some core dumps, or some user files that should not be there...

my 2c.
PS. I find that if you your data is properly distributed, you should not grow /usr.

nothing wrong with me that a few lines of code cannot fix!
Rita C Workman
Honored Contributor

Re: Extending /usr

I didn't read everyone's response..but...
if you are truly in single user mode than /usr is not mounted. You would have to manually mount /usr just to do a bdf command...

Please retry...
Interupt boot
bo pri isl
Interact with ISL> Yes
ISL> hpux -is

Now extend /usr and then manually mount it and check your work. It's a pain...but it works..

Regards,



nnf97
Regular Advisor

Re: Extending /usr

I have to agree with Madhu.
Another thing, you might want to check up on changing the root shell, there are problems with that, in case all your file systems dont come up for some reason, there is no way that you can login and do anything, since shell wont be available for root to.
You are experiencing the problem here too, in that ksh is to be found under /usr and you want to extend /usr.
Also, remember to do a vgcfgbackup before you do anything.

Regards,
Nabeel
Live Free or Die (New Hampshire)
Nick W
Frequent Advisor

Re: Extending /usr

It's all a case of something being something it didn't used to be....

The correct shell for a root-user is /sbin/sh (as has already been stated by others)
This is the POSIX shell which is similar in many respects to the Korn shell.
The POSIX shell contains a history mechanism, supports job control, and provides various other useful features.

The BOURNE Shell traditionally resided at /sbin/sh - could this be the reason why you have specified the KORN shell for the root-user? (BOURNE Shell - soon to be obsoleted - resides at /usr/old/bin/sh)

There are other instances of the POSIX shell (at /usr/bin/sh, which may have further links)

The main point to note is that /sbin/sh is a statically linked binary (i.e. it is self-contained) whereas the other instances are dynamically linked (rely on the presence of shared libraries, which may not always be available - when you are in single-user mode for instance.


End of lesson.

Regards,
Nick