Operating System - HP-UX
1753437 Members
5077 Online
108794 Solutions
New Discussion юеВ

Re: "umount: cannot unmount : Device busy" whereas it doesn't seem to!

 
Romaric Guilloud
Regular Advisor

"umount: cannot unmount : Device busy" whereas it doesn't seem to!


glen3 # cd /
glen3 # umount /soft/RCF2
umount: cannot unmount /soft/RCF2 : Device busy
glen3 # fuser -ku /soft/RCF2
/soft/RCF2:

glen3 # fuser -ku /dev/asrcf2/lvol4
/dev/asrcf2/lvol4:

glen3 # fuser -ku /dev/asrcf2/rlvol4
/dev/asrcf2/rlvol4:

glen3 # umount /soft/RCF2
umount: cannot unmount /soft/RCF2 : Device busy
glen3 #


How tu unmount this pretended "busy" FS?
Anything else than a reboot?
Thanks in advance for your help.
Regards,

Romaric.
"And remember: There are no stupid questions; there are only stupid people." (To Homer Simpson, in "The Simpsons".)
13 REPLIES 13
Paula J Frazer-Campbell
Honored Contributor

Re: "umount: cannot unmount : Device busy" whereas it doesn't seem to!

Hi

fuser -u /soft/RCF2

Should help-- got to run it as root.

paula
If you can spell SysAdmin then you is one - anon
Robert-Jan Goossens
Honored Contributor

Re: "umount: cannot unmount : Device busy" whereas it doesn't seem to!

Hi Romanic,

You could try with lsof, but i'm afraid you will have to reboot.

Did you mount a cdrom with pfs_mount ?

Regards,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: "umount: cannot unmount : Device busy" whereas it doesn't seem to!

Romaric,

I suspect that some one has cd'd into this directory, thus making it their $PWD. Unfortunately, fuser will not detect this. The only way you can unmount this without rebooting is to make sure all your users are not cd'd into this file system.


Pete

Pete
Geoff Wild
Honored Contributor

Re: "umount: cannot unmount : Device busy" whereas it doesn't seem to!

Do a

fuser -cku /soft/RCF2

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Paula J Frazer-Campbell
Honored Contributor

Re: "umount: cannot unmount : Device busy" whereas it doesn't seem to!

Hi
Can you cd into the mount volume and traverse the dirs?

Also try an fuser on the files.

Paula
If you can spell SysAdmin then you is one - anon
Romaric Guilloud
Regular Advisor

Re: "umount: cannot unmount : Device busy" whereas it doesn't seem to!

fuser -u : not any better.
lsof : already tried, displayed no PID linked to this.

Guess will have to plan a reboot then...
Thanks anyway.

Romaric.
"And remember: There are no stupid questions; there are only stupid people." (To Homer Simpson, in "The Simpsons".)
Bharat Katkar
Honored Contributor

Re: "umount: cannot unmount : Device busy" whereas it doesn't seem to!

Are u sure whether FS name is /soft/RCF2 or just /soft.
If it is earlier one then Geof's solution should work otherwise,
#umount /soft
OR
#fuser -kuc /soft
#umount /soft

You need to know a lot to actually know how little you know
Romaric Guilloud
Regular Advisor

Re: "umount: cannot unmount : Device busy" whereas it doesn't seem to!

Yes, /soft/RCF2 is the mount point.
Nothing worked amongst your proposals.
Thanks anyway, reboot is next then.
Romaric.
"And remember: There are no stupid questions; there are only stupid people." (To Homer Simpson, in "The Simpsons".)
Victor BERRIDGE
Honored Contributor

Re: "umount: cannot unmount : Device busy" whereas it doesn't seem to!

I suspect your problem being another mount on the filesystem you are trying to umount...

I just tested my 2 cent thoughts on a box:
/dev/vg00/lvol6 2662400 1391180 1191825 54% /opt
/dev/r5vg03/lvol5 2560000 1613253 887604 65% /opt/sas/8.2
/dev/vg00/lvol12 516096 212744 284501 43% /opt/patrol
/dev/vg00/lvol13 6144000 5440438 659593 89% /octant
/dev/vg00/lvol5 500000 14819 454947 3% /home
/dev/r5vg03/lvol6 1024000 327647 652888 33% /export/s
/dev/r5vg02/lvol6 1024000 9718 950963 1% /export/f
/dev/s4vg01/lvol5 4096000 756758 3136142 19% /data/www
octant # umount /data/www
octant # cd /sm/export
octant # mkdir importfs
octant # cd /
octant # umount /sm/export
octant # mount /sm/export
octant # mount /dev/s4vg01/lvol5 /sm/export/importfs
octant # umount /sm/export
umount: cannot unmount /sm/export : Device busy
octant # fuser -cku /sm/export
/sm/export:

octant # r umount
umount /sm/export
umount: cannot unmount /sm/export : Device busy
octant # fuser -cu /sm/export
/sm/export:

octant # umount /sm/export/importfs
octant # umount /sm/export
octant #
octant # mount /sm/export
octant # mount /data/www
octant #

All the best
Victor