Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unmounting (deleting) a file system

Status
Not open for further replies.

jocasio

IS-IT--Management
Oct 11, 2002
88
US
Hey Gang:

I'm trying to delete a file system using sam, and I keep getting an error message saying the file system is busy. Can anyone tell me what could be casuing this? No one is in the file system. There are no files in the file system, yet the system thinks it's in use.

Any help would be greatly appreciated!

Thanks

jocasio
 
Did you start sam from the directory you are trying to unmount?

There is a utility called lsof which will be able to check which processes/users are using the mount by (lsof /directory).

hth

I love deadlines. I like the whooshing sound they make as they fly by - Douglas Adams
 
Thanks for the reply:

I am not in the file system. I tried to run lsof, but it's saying:

sh:lsof: not found

Am iusing it right?

thanks

jocasio
 
Hi there - try a fuser on the mount point, see if that produces a list of processes. Then use ps -ef |grep <number> to see what's happening.

Is the area exported under NFS ???

Martin
 
Martin999:

Thanks. I was trying to remember that command. Anyway, I checked and no users were using the file system. So what did I do, you asked? I rebooted my system and viola, problem solved!!! It looks like my UNIX box is going through Windows withdrawals ;)

Thanks to all who participated in this thread!

jocasio
 
You may have had orphaned files in the filesystem, where they had been deleted but a running process was still trying to access the file. lsof +L will definately tell you if that's the case.
fuser -ck on will highlight and KILL any running processes on a filesystem.
Also make sure automount/autofs isn't loading anything into the mountpoint, as that can screw-up.

--
Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top