Page 1 of 1

fuser - identify processes using files or sockets

Posted: Wed Dec 14, 2016 3:33 pm
by cah
Using the following command to check which user(s) are using the file systems.

Code: Select all

# fuser -c <file system>
# fuser -u <file system>
E.g.

Code: Select all

# fuser -c /user/hsiaoc1
/user/hsiaoc1:       30111c
# fuser -u /user/hsiaoc1
/user/hsiaoc1:       30111c(hsiaoc1)
The process(es):

Code: Select all

# ps -ef | grep 30111
hsiaoc1  30111 30109  0 12:28 pts/0    00:00:00 -ksh
Once the process(es) is(are) determined, admin can then kill the process(es) and will be able to un-mount the file system(s).