Operating System - HP-UX
1838703 Members
3079 Online
110128 Solutions
New Discussion

Re: how to umount and extend /usr

 
SOLVED
Go to solution
Susan W Roden
Contributor

how to umount and extend /usr

I have shut the system down to single user and am still unable to umount /usr. I need to extend /usr so I can update from 10.20 to 11.0. How do I unmount the /usr filesystem?

4 REPLIES 4
Rita C Workman
Honored Contributor
Solution

Re: how to umount and extend /usr

I am going to presume you simply did a shutdown o. To extend /usr (if it is being difficult about umount) - I would do a
shutdown -ry 0 and interupt the boot
Yes I want ISL then enter hpux -is to get into single user.

Since at this point (if memory servers me right, it's been awhile) /usr is not mounted. Then you can do your extends....
(If you want to be real careful do a couple manual mounts like /var & /usr and check your work lvdisplay...)
Then reboot

Regards,

Kofi ARTHIABAH
Honored Contributor

Re: how to umount and extend /usr

It would be really difficult to umount /usr from shutting down into single user mode - I would rather suggest that you reboot the server and interrupt it's normal boot up process... and use the

hpux -is
to boot into single user mode.

but if you absolutely must, you can:

1. ensure that all processes using /usr are dead:
fuser -cu /usr
fuser -ku /usr
2. use the lvol device corresponding to /usr as the parameter to umount:

umount /dev/vg00/lvol7
where /dev/vg00/lvol7 corresponds to /usr

then continue with your lvextend and extendfs...

good luck
nothing wrong with me that a few lines of code cannot fix!
Kofi ARTHIABAH
Honored Contributor

Re: how to umount and extend /usr

By the way, if you want to upgrade to HPUX 11, I would suggest that rather than upgrade, you should install from scratch... that seems to be the consensus.

1. create an ignite image;
2. backup your data;
3. cold install hpux 11;
4. install all other software (eg. databases etc)
5. restore your user data;

if things fail you can always go back by restoring the ignite tape.

if you do a search for upgrade in the forums, there are a number of threads on the pluses of cold install as opposed to upgrading.

my 2cents
nothing wrong with me that a few lines of code cannot fix!
Neal Krawetz
New Member

Re: how to umount and extend /usr

Just as an aside to this topic...
We created an rc script to increase /usr during init level 1.

The problem...
You know that pretty list that appears on
the screen. The one that says:
Startup process 1 ....... [ OK ]
Startup process 2 ....... [WAIT]
And the "WAIT/BUSY" switches every second.

The WAIT/BUSY message comes from /sbin/rc.utils. This uses /usr/bin/sleep.
(What! Using a mounted partition during
init level 1?!? Yup.)
So you cannot unmount /usr as long as
that pretty menu is up since /usr is in use.

Our pittiful solution:
mv /usr/bin/sleep /usr/bin/sleep.hold
/usr/bin/sleep.hold 5 # give the other sleep processes time to expire
# Now the WAIT/BUSY message flashes like mad
# and you see an error about /usr/bin/sleep not found
umount /usr # it's safe now!
lvextend -L ${Amount} ${Vol}
extendfs ${Rvol_Name}
mount /usr
mv /usr/bin/sleep.hold /usr/bin/sleep

-Neal
If you can't say something nice, say what you're thinking nicely.