Samba: CIFS debugging
Posted: Tue May 22, 2012 12:37 pm
In case you need to hunt nasty things with smbfs/cifs on the GNU/Linux-Samba side, it might be a good idea to enable CIFS debugging messages:
You can then check status of mounted CIFS shares, like this:
WARNING: Enabling this debug information can really (like "really!") fill up your logfiles!
On my system, I've recently had a 30 GB (!) "/var/log/kern.log" file, a 23 GB "/var/log/syslog" - and a 32 GB "/var/log/debug"
So be careful and don't enable this option for too long.
Additionally, here's a list of smbfs/cifs related threads, here in "Das-Werkstatt" forum:
Code: Select all
echo 1 > /proc/fs/cifs/cifsFYI
Code: Select all
cat /proc/fs/cifs/DebugData
On my system, I've recently had a 30 GB (!) "/var/log/kern.log" file, a 23 GB "/var/log/syslog" - and a 32 GB "/var/log/debug"
So be careful and don't enable this option for too long.
Additionally, here's a list of smbfs/cifs related threads, here in "Das-Werkstatt" forum:
- Samba: "error(11): Resource temporarily unavailable"
- Debian Lenny: Samba upgrade error "user" CIFS mounts broken
- Samba: mount error(12): Cannot allocate memory
- Samba: mount error 113 = No route to host
- Samba: "kernel BUG at fs/cifs/cifs_dfs_ref.c:274!"
- SMBFS: "mount error: permission denied or not superuser..."
- umount: This utility only unmounts cifs filesystems.
- Samba: "error(101): Network is unreachable"
- Samba mount failed: "CIFS VFS: No username specified"
- Samba mount failed: "CIFS VFS: cifs_mount failed w/return code = -22"
- Samba: Error connecting to socket. Return code -113
- mount: failed to parse mount options
- Resolve windows netbios names in fstab
- Why You Should Never Again Utter The Word, “CIFS” (by Stephen Foskett)
- What version of SMB2 am I using on my Windows file server? (by Jose Barreto)