UnixPedia : HPUX / LINUX / SOLARIS: June 2016

Tuesday, June 14, 2016

How to check what are process running on the Filesystem

#your system should hold the binary of lsof, or you can install from HP tooling site.

#
fuser and lsof will let you know the process which are accessing the Filesystem, and help you to figure out the problem of space lock and busy status of FS.

tcsci012:root:/.root
# fuser -cu /ees/shr/oradata10
/ees/shr/oradata10:    21388o(eesdba)    1480o(eesdba)   13338o(eesdba)   24762o(eesdba)   13277o(eesdba)   18125o(eesdba)   13363o(eesdba)   13312o(eesdba)   13479o(eesdba)   13404o(eesdba)   18160o(eesdba)   21397o(eesdba)   18189o(eesdba)   21464o(eesdba)   18077o(eesdba)   18046o(eesdba)   21437o(eesdba)   26481o(eesdba)    2828o(eesdba)    8771o(eesdba)    9939o(eesdba)    4319o(eesdba)    6360o(eesdba)    8059o(eesdba)    6312o(eesdba)    2020o(eesdba)   16953o(eesdba)    7430o(eesdba)    2847o(eesdba)    6212o(eesdba)    3182o(eesdba)   12221o(eesdba)    9719o(eesdba)   24519o(eesdba)    7888o(eesdba)   16988o(eesdba)   13152o(eesdba)    6333o(eesdba)    7065o(eesdba)    3171o(eesdba)   19191o(eesdba)     911o(eesdba)    1192o(eesdba)     107o(eesdba)     819o(eesdba)   15685o(eesdba)   25611o(eesdba)   26236o(eesdba)    1938o(eesdba)

tcsci012:root:/.root
# lsof /ees/shr/oradata10 |head -40
COMMAND   PID   USER   FD   TYPE      DEVICE    SIZE/OFF NODE NAME
oracle    107 eesdba   18u   REG 64,0x110001  2147491840   13 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle    819 eesdba   20u   REG 64,0x110001  2147491840   13 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle    911 eesdba   17u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   1192 eesdba   17u   REG 64,0x110001  2147491840   13 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   1480 eesdba   17u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   1938 eesdba   17u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   2020 eesdba   17u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   2828 eesdba   17u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   2847 eesdba   17u   REG 64,0x110001  2147491840   13 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   3171 eesdba   19u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   3182 eesdba   17u   REG 64,0x110001  2147491840   13 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   4319 eesdba   17u   REG 64,0x110001  2147491840   13 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   6212 eesdba   17u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   6312 eesdba   24u   REG 64,0x110001 13107208192    9 /ees/shr/oradata10/eescip20/index01u.dbf
oracle   6333 eesdba   17u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   6360 eesdba   17u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   7065 eesdba   17u   REG 64,0x110001  2147491840   13 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   7430 eesdba   17u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   7888 eesdba   15u   REG 64,0x110001  2147491840   13 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)
oracle   8059 eesdba   18u   REG 64,0x110001  2147491840   12 /ees/shr/oradata10 (/dev/ees_vg6/lv_shr-oradata10)