Mounting out ISO from a CIFS ISO Storage Repository (SR) disconnects intermittently, and causes boot ISOs to disappear and bounced servers unable to boot.
The /var/log/messages log is displayed as following:
CIFS VFS: No response for cmd 50 mid 3457 CIFS VFS: No response for cmd 50 mid 63007 CIFS VFS: No response for cmd 50 mid 55891 CIFS VFS: No response for cmd 50 mid 56839 CIFS VFS: No response for cmd 50 mid 56931 CIFS VFS: Send error in SessSetup = -11 CIFS VFS: No response to cmd 115 mid 2108 CIFS VFS: No response to cmd 115 mid 42833
To resolve the issue, some CIFS module options have to be disabled. Complete the following procedure:
Open XenCenter. Right-click the CIFS ISO SR and select Detach.
Connect to the server and make sure that no CIFS module is loaded. To do this, complete the following procedure:
Run lsmod | grep cifs | wc –l command on the console:
If the result displays more than zero, it indicates that CIFS module is still loaded.
To ensure all the CIFS SRs are detached, run the following command:
modprobe –r cifs
This command unloads the CIFS module.
Run the following command to save /etc/modprobe.conf /etc/modprobe.conf.ori.[date]:
cp /etc/modprobe.conf{,.date}
Edit /etc/modprobe.conf by adding the following line at the end of the file:
install cifs /sbin/modprobe --ignore-install cifs; /opt/scripts/disable_cifs_opt.sh;
Create /opt/scripts/disable_cifs_opt.sh file and add the following lines to it:
# disable LookupCacheEnable
echo "0" > /proc/fs/cifs/LookupCacheEnabled
# disable OplockEnabled
echo "0" > /proc/fs/cifs/OplockEnabled
# disable LinuxExtensionsEnabled
echo "0" > /proc/fs/cifs/LinuxExtensionsEnabled
Re-attach the CIFS SRs through XenCenter.
Notes:
LookupCacheEnable: This option is used to allow inode information to be cached for one second.
OplockEnabled: Option for Opportunistic Locking. If set to 1 then distributed caching is enabled. It allows the client to cache the remote file locally on the client.
LinuxExtensionsEnabled: This option allows the use of CIFS Unix extension, optional protocol enhancement.
These options work well on most environments but might be unstable in some other environment because of network related issues.