Operating System - HP-UX
1834648 Members
2715 Online
110069 Solutions
New Discussion

Re: cannot unmount /usr : Device busy

 
SOLVED
Go to solution
P.V.Ramesh
Advisor

cannot unmount /usr : Device busy

Hi

I am receiving the above error when i am umount /usr. I have to extend the above file system. Can anybody help me on overcoming the above problem.
8 REPLIES 8
John Poff
Honored Contributor
Solution

Re: cannot unmount /usr : Device busy

Hello,

You can't unmount /usr while the system is running at a regular run level (3). You'll have to shutdown the system and reboot into single user mode to extend /usr (if your /usr filesystem isn't vxfs and you don't have Online JFS installed).

JP
eran maor
Honored Contributor

Re: cannot unmount /usr : Device busy

Hi

you will need to boot to single user mode to do it :

when you will boot the system you will get this message :
Firmware Version 40.14
Duplex Console IO Dependent Code (IODC) revision 1
------------------------------------------------------------------------------
(c) Copyright 1995-1998, Hewlett-Packard Company, All rights reserved
------------------------------------------------------------------------------
Processor Speed State CoProcessor State Cache Size
Number State Inst Data
--------- -------- --------------------- ----------------- ------------
0 360 MHz Active Functional 512 KB 1 MB
Central Bus Speed (in MHz) : 82
Available Memory : 262144 KB
Good Memory Required : 37268 KB
Primary boot path: 0/0/2/0.0
Alternate boot path: 0/0/1/1.0
Console path: 0/0/4/0.0
Keyboard path: 0/0/4/0.0
Processor is starting autoboot process.
To discontinue, press any key within 10 seconds.


pleass any key and you will get this menu :

Command Description
------- -----------
BOot [PRI|ALT|] Boot from specified path
PAth [PRI|ALT] [] Display or modify a path
SEArch [DIsplay|IPL] [] Search for boot devices
COnfiguration menu Displays or sets boot values
INformation menu Displays hardware information
SERvice menu Displays service commands
DIsplay Redisplay the current menu
HElp [|] Display help for menu or command
RESET Restart the system
----
Main Menu: Enter command or menu >
enter bo

and you will be ask :
Interact with IPL (Y, N, or Cancel)?> y

ISL> hpux -is

this will boot to a single user mode .

you can also try to shutdown all your software and to see which process are using /usr with the command : fuser /usr but it is much easier to do it on single user mode
love computers
Pete Randall
Outstanding Contributor

Re: cannot unmount /usr : Device busy

Reboot. Interrupt the boot process when it says you have 10 seconds. Enter "boot pri", interact with ISL: "y". At ISL prompt, enter "hpus -is" to get to single user state. Enlarge the file system. Reboot.

Pete

Pete
Leif Halvarsson_2
Honored Contributor

Re: cannot unmount /usr : Device busy

Hi
Or use "init s" it is perhaps easier. See the man page for init.
Sandip Ghosh
Honored Contributor

Re: cannot unmount /usr : Device busy

I think init -S will not work. You have to reboot and boot it to single user mode.

Pete,

I think it's a typo.Type hpux -is instead of hpus -is.

Sandip
Good Luck!!!
Martin Johnson
Honored Contributor

Re: cannot unmount /usr : Device busy

Yes, you have to reboot and come up in single user mode. init -s leaves processes running that access /usr.

Sometimes I still have problems with /usr even when booted in single user mode. I have found that doing a "mount /usr; umount /usr" usually fixes the problem.

HTH
Marty
Rita C Workman
Honored Contributor

Re: cannot unmount /usr : Device busy

Before you reboot into single user...

Do you have OnlineJFS???

...cause if you do you don't need to umount anything. Just extend the lvol with lvextend and then run fsadm -F vxfs -b(size_in_mb)m /filesystem (note there is no space between size and letter m).

Now if you don't have OnlineJFS - than take the above suggestions..

Rgrds,
Rita
Pete Randall
Outstanding Contributor

Re: cannot unmount /usr : Device busy

Sandip,

Good catch. Even when I proof read my answers those darn typo's slip through anyway.

Pete

Pete