CIFS error occurred: cannot read the given file

  • 7009045
  • 25-Jul-2011
  • 27-Apr-2012

Environment

Novell Open Enterprise Server 2 (OES 2) Linux
Novell CIFS

Situation

Error: Storage Error
CIFS error occurred: cannot read the given file
Unable to manage CIFS through iManager
Unable to manage AFP through iManager
Unable to manage Samba (SMB) through iManager

Resolution

1. Check to see if owcimomd is running:
     At the console, type "rcowcimomd status" If it comes back as "running" this resolution will not apply, and you should see TID# 3417215 for additional troubleshooting

2. If it is not running, try to restart it:
     rcowcimomd start
     Wait a few moments, and then try, "rcowcimomd status"  If it comes back as "running" try the iManager operation again.

3. If it runs for a moment, and then goes to a "dead" or "stopped" status, follow the steps below:

Check the /etc/nsswitch.conf file, if it looks like the following:

------------------------------
passwd: compat nam 
group:  compat nam 
hosts:  files dns
networks:       files dns
services:       files ldap
protocols:      files
rpc:    files
ethers: files
netmasks:       files
netgroup:       files ldap
publickey:      files
bootparams:     files
automount:      files nis
aliases:        files ldap
passwd_compat:  ldap
group_compat:   ldap
-------------------------------

That means that both NSS_ldap and LUM have both been enabled. These two options are mutually exclusive. Modify the file to look like this:


/etc/nsswitch.conf
------------------------
passwd: compat nam 
group:  compat nam 
hosts:  files dns
networks:       files dns
services:       files
protocols:      files
rpc:    files
ethers: files
netmasks:       files
netgroup:       files
publickey:      files
bootparams:     files
automount:      files nis
aliases:        files
---------------------------

4. Restart owcimomd and re-try to manage CIFS / AFP, etc.