You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: CentOS 6.7
Kernel: 4.1.7-1.el6.elrepo.x86_64
targetcli: 3.0.pre4.3 (latest as of 2015-09-22)
The service "target" can not re-start or stop, failing with the following error messages:
Failed to unload target core module target_core_mod
Could not stop The Linux SCSI Target
The cause of the problem is that the module target_core_user does not get unloaded whenever the target service stops and the module target_core_mod seems to depend on it. (The modules come with the kernel and are located at /lib/modules/4.1.7-1.el6.elrepo.x86_64/kernel/drivers/target)
The problem and the solution is within the init script /etc/rc.d/init.d/target at the definition of the target core modules:
I think that the ordering of the modules in the list is important, target_core_user has to be unloaded before target_core_mod when the target service stops.
The text was updated successfully, but these errors were encountered:
Thank you for the valuable information. I have faced the same issue on Ubuntu 16.04. And I have added the following line and fixed the issue! Thank you so much!
OS: CentOS 6.7
Kernel: 4.1.7-1.el6.elrepo.x86_64
targetcli: 3.0.pre4.3 (latest as of 2015-09-22)
The service "target" can not re-start or stop, failing with the following error messages:
The cause of the problem is that the module
target_core_user
does not get unloaded whenever the target service stops and the moduletarget_core_mod
seems to depend on it. (The modules come with the kernel and are located at/lib/modules/4.1.7-1.el6.elrepo.x86_64/kernel/drivers/target
)The problem and the solution is within the init script
/etc/rc.d/init.d/target
at the definition of the target core modules:Adding
target_core_user
to the list of modules to load / unload when the target service starts / stops solves the problem:I think that the ordering of the modules in the list is important,
target_core_user
has to be unloaded beforetarget_core_mod
when the target service stops.The text was updated successfully, but these errors were encountered: