I want to unload the modules "gsch and redirfs" from kernel on RHEL 7.2 , which is causing frequent kernel panic.
But when I try to unload , I am getting below error.
# modprobe -r gsch
modprobe: FATAL: Module gsch is in use.
# modprobe -r redirfs
modprobe: FATAL: Module redirfs is in use.
# lsmod | grep gsch
gsch 88591 4
redirfs 79430 1 gsch
As checked , no processes holding these modules,
# ps -ef | grep gsch
root 26417 7838 0 10:58 pts/3 00:00:00 grep --color=auto gsch
# lsof | grep gsch
#
lsmod
is the number of processes using the modules. You will not see modules as processes inps -ef
or as files inlsof
because modules are compiled kernel code, and not files or processes by themselves. The module code gets loaded into memory when needed by a process, and you need to know what the module does to identify which process might have loaded it.dmesg
is probably your best bet at figuring out what caused the module to load.gsch
andredirfs
modules are RHEL proprietary modules and to get info about them you need a RHEL subscription. If you have a subscription, the best approach would be to contact RHEL support for this issue. If not, you should wait for someone here who knows about RHEL to answer here.