Errors on Cross-Protocol Locking nbmand (ZFS Solaris)
Hello,
I get the following errors when I move large e-mails (i.e. about 15MB) into mail files.
May 17 13:26:48 mailer3 dovecot: [ID 583609 mail.error] imap(andrew): Error: fdatasync() failed with mbox file /home/andrew/Mail/nbmandON/mbox: Permission denied May 17 13:26:48 mailer3 dovecot: [ID 583609 mail.error] imap(andrew): Error: ftruncate() failed with mbox file /home/andrew/Mail/nbmandON/mbox: Permission denied May 17 13:26:48 mailer3 dovecot: [ID 583609 mail.error] imap(andrew): Error: close() failed with mbox file /home/andrew/Mail/nbmandON/mbox: Permission denied
Background I am using Solaris 11 ZFS & SMB for my users home files with Solaris SMB protocol mandatory locking (nbmand=on)
If I turn nbmand=off then I do not get any errors, so it is to do with SMB locking.
I know this may not be a dovecot error, but any pointers why it is doing this so that I can report it to Oracle. I tried creating a small C program to mimic the same problem but no luck, since I know it would make it easier to get Oracle to fix it.
# /usr/local/dovecot/sbin/dovecot --version 2.2.24 (a82c823)
Thanks for now,
Andrew
-- Andrew Watkins * Birkbeck, University of London * Computer Science *
- http://notallmicrosoft.blogspot.com *
- UKOUG Systems SIG Chair *
- UKOUG Tech committee *
- tel: 020 7631 6720 *
On 5/17/2016 8:57 AM, Andrew Watkins wrote:
... Background I am using Solaris 11 ZFS & SMB for my users home files with Solaris SMB protocol mandatory locking (nbmand=on)
If I turn nbmand=off then I do not get any errors, so it is to do with SMB locking.
Posix doesn't have mandatory locking, so it doesn't surprise me that you get issues from Dovecot. Can you just leave nbmand=off? If not, have you tried Dovecot's other locking methods, such as dotlock?
On 05/17/16 17:01, Tom Talpey wrote:
On 5/17/2016 8:57 AM, Andrew Watkins wrote:
... Background I am using Solaris 11 ZFS & SMB for my users home files with Solaris SMB protocol mandatory locking (nbmand=on)
If I turn nbmand=off then I do not get any errors, so it is to do with SMB locking.
Posix doesn't have mandatory locking, so it doesn't surprise me that you get issues from Dovecot. Can you just leave nbmand=off? If not, have you tried Dovecot's other locking methods, such as dotlock?
For got to mention that the user files are on NFS file server and are being severed to NFS clients (including the Dovecot server) and SMB clients, so really I should have "Cross-Protocol Locking" on.
I may end up switching it off nbmand=off since it is very unlikely that any file will be accessed from both a NFS client and a SMB client at the same time, but I thought I would look into it to see if the problem could be fixed in Solaris.
I will also look at the dotlock options.
Thanks,
Andrew
-- Andrew Watkins * Birkbeck, University of London * Computer Science *
- http://notallmicrosoft.blogspot.com *
- UKOUG Systems SIG Chair *
- UKOUG Tech committee *
- tel: 020 7631 6720 *
participants (2)
-
Andrew Watkins
-
Tom Talpey