LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CIFS VFS: No response... (https://www.linuxquestions.org/questions/linux-newbie-8/cifs-vfs-no-response-884663/)

sansone 06-05-2011 09:18 AM

CIFS VFS: No response...
 
Hi, my kern.log reports many events like these:

...
May 31 20:36:38 main kernel: [12596.700620] CIFS VFS: No response to cmd 4 mid 8270
May 31 20:36:38 main kernel: [12596.700806] CIFS VFS: Send error in Close = -11
May 31 20:36:55 main kernel: [12613.623723] CIFS VFS: No response for cmd 6 mid 8274
May 31 20:36:55 main kernel: [12613.623842] CIFS VFS: No response for cmd 50 mid 8275
May 31 20:37:16 main kernel: [12634.680159] CIFS VFS: No response for cmd 6 mid 8279
May 31 20:37:16 main kernel: [12634.680279] CIFS VFS: No response for cmd 50 mid 8280
May 31 20:37:38 main kernel: [12655.706690] CIFS VFS: No response for cmd 6 mid 8285
May 31 20:37:38 main kernel: [12655.706812] CIFS VFS: No response for cmd 50 mid 8286
May 31 20:37:38 main kernel: [12655.946296] CIFS VFS: No response for cmd 50 mid 8287
May 31 20:37:38 main kernel: [12655.946413] CIFS VFS: No response for cmd 50 mid 8288
May 31 20:37:43 main kernel: [12661.334499] CIFS VFS: No response for cmd 50 mid 8289
...

I'm 99% sure they're generated by Courier-imap trying to access emails stored in my QNAP NAS.
The shared folder of my NAS is mounted in fstab with:
...
//192.168.168.10/mail /mnt/mail cifs username=virtual,password=miapw,iocharset=utf8,nos erverino,uid=5000,gid=5000,_netdev,mapchars 0 0
...

Ubuntu 10.10 running on VMWare with Postfix + Courier-IMAP + MySQL.

I've read about similar problems on the Net solved disabling the optimistic locking of cifs. This trick didn't solve my problem.

Any idea ?

Thanks.

carltm 06-05-2011 09:55 AM

I used to see these and switched to using autofs. With autofs
a new connection is sought if the existing connection breaks.
It's likely that a temporary glitch is breaking the connection
and the traditional mount doesn't know how to reestablish it.

sansone 06-06-2011 02:33 AM

Quote:

Originally Posted by carltm (Post 4376945)
I used to see these and switched to using autofs.

I tried but I received an error of mounting not allowed because wrong type of fs, "superblock" not valid (I'm translating so the messages could be sligthly different). dmesg says "autofs: called called with bogus options".

carltm 06-06-2011 06:57 AM

If you want, post your autofs files. Just take out your password. ;-)

sansone 06-06-2011 09:37 AM

Quote:

Originally Posted by carltm (Post 4377680)
If you want, post your autofs files. Just take out your password. ;-)

Here follows the line from /etc/fstab:

//192.168.168.10/mail /mnt/mail cifs username=virtual,password=mypassword,iocharset=utf8,noserverino,uid=5000,gid=5000,_netdev,mapchars 0 0

If I switch to autofs instead of cifs I got that error message.

Thanks for your help.

carltm 06-06-2011 07:22 PM

I'm trying to follow your logic. First you said you're getting "No response"
errors when you use mount. I mentioned autofs, and you said when you ran it
you received an error about "bogus options." I asked you to post the autofs
files, and you show an entry for /etc/fstab, which is used for mount and not
for autofs.

Hmmm. Are we talking about the same thing? Autofs is a daemon with its own
configuration files.

sansone 06-07-2011 06:11 AM

Hi, you are right, I didn't know autofs, I wrongly supposed it was a parameter like cifs ("type" of mount).

I've read something now about it, I followed some "How To" but...I failed!

If you can please guide me step by step considering that I already installed autofs, smbclient and smbfs.
I wanna reach my nas' mail share through /mnt/mail exactly like I already do with the usual mount described above.
I guess you should tell me exactly what to write inside auto.master and the other auto.xxx files.

Thanks in advance for your patience.

carltm 06-07-2011 06:40 AM

It would really be better if you find how to make this work.
If you get stuck at a particular step or get an error message
I'd be glad to point you in the right direction.

You could start by posting the files you used and giving a
good description of what went wrong.


All times are GMT -5. The time now is 07:02 AM.