I was trying to unmount the /opt filesystem today, but I was prompted with a "device busy" message. Frankly speaking, I thought the file system was already in an inactive state, so I was curious as to what processes were hanging it. These processes were identified and subsequently killed.
# cd /
# umount /opt (device busy)
After realizing that processes were still accessing the /opt filesystem, here's what was done to umount it.
Determine which processes were accessing /opt
# cd /
# fuser -cu /opt
# kill -9 PID1 PID2
# umount /opt
Alternately, this could have been done, too.
# cd /
# fuser -ck /opt
# umount /opt
or simply force it
# cd /
# umount -f /opt
This blog covers Unix system administration HOWTO tips for using inline for loops, find command, Unix scripting, configuration, SQL, various Unix-based tools, and command line interface syntax. The Unix OS supports tasks such as running hardware, device drivers, peripherals and third party applications. Share tips/comments. Read the comments. But most importantly: Read Disclaimer - Read Disclaimer.
Wednesday, April 04, 2007
Determine Processes Accessing a File System
Subscribe to:
Post Comments (Atom)
2 comments:
Thank You!
I found it really helpful..
nambi, I'm glad you found it useful.
Post a Comment