Doug Tucker
2011-May-09 14:04 UTC
[Samba] Microsoft Outlook pst files unable to open or create
All, I sent a message for help a couple of weeks ago about a samba migration issue. With further testing, we have isolated the issue to Microsoft Outlook (versions 2007 and 2010). All other applications have no issues when they mount the new samba server reading, writing, etc. But, in Outlook, when you try to open an archive (pst file) on the new samba server, it pops up an error "the file is already in use by the maximum number of applications. Close some of these applications and try again. You may need to restart your computer." Nothing esle has the file open. So to test, we tried to create a new archive file that does not currently exist on the server, and it gives you the same error and fails to create the file. If we unmount from the new samba server to the old one, it can create it just fine. Please help anyone, I'm at a complete loss where to go from here! Sincerely, Doug Tucker
Daniel Müller
2011-May-10 06:47 UTC
[Samba] Microsoft Outlook pst files unable to open or create
What is your samba ver. Number???? Do you use exchange?? There are the same error like yours with ost files and caching. This seems a bug in outlook(2007-2010) not in samba!?? I myself have a small group of Outlook-xp-pst files on samba 3.5.8 without any errors. I have a redirection of domain-users to samba home share. ----------------------------------------------- EDV Daniel M?ller Leitung EDV Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 T?bingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: mueller at tropenklinik.de Internet: www.tropenklinik.de ----------------------------------------------- -----Urspr?ngliche Nachricht----- Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] Im Auftrag von Doug Tucker Gesendet: Montag, 9. Mai 2011 16:05 An: samba at lists.samba.org Betreff: [Samba] Microsoft Outlook pst files unable to open or create All, I sent a message for help a couple of weeks ago about a samba migration issue. With further testing, we have isolated the issue to Microsoft Outlook (versions 2007 and 2010). All other applications have no issues when they mount the new samba server reading, writing, etc. But, in Outlook, when you try to open an archive (pst file) on the new samba server, it pops up an error "the file is already in use by the maximum number of applications. Close some of these applications and try again. You may need to restart your computer." Nothing esle has the file open. So to test, we tried to create a new archive file that does not currently exist on the server, and it gives you the same error and fails to create the file. If we unmount from the new samba server to the old one, it can create it just fine. Please help anyone, I'm at a complete loss where to go from here! Sincerely, Doug Tucker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Uli Menzebach
2011-May-12 10:16 UTC
[Samba] Microsoft Outlook pst files unable to open or create
Doug, I had the same problem. Unfortunately getting rid of the bogus SMB<->NFS proxy approach was no option. The solution was a kernel patch found on a Samba mailing list (don't recall which one, a couple of years old IIRC). Here's the patch as it will apply to a RHEL5/CentOS5 kernel: --- a/fs/nfs/file.c 2011-02-22 12:49:27.000000000 +0100 +++ b/fs/nfs/file.c 2011-02-22 13:14:57.000000000 +0100 @@ -653,10 +653,16 @@ * Not sure whether that would be unique, though, or whether * that would break in other places. */ - if (!(fl->fl_flags & FL_FLOCK)) + + /** + * Don't simulate flock() using posix locks, as they appear to collide with + * legitimate posix locks from the same process. + */ + if (fl->fl_flags & FL_FLOCK) return -ENOLCK; /* We're simulating flock() locks using posix locks on the server */ + /* ...except we shouldn't get here, due to the above patch. */ fl->fl_owner = (fl_owner_t)filp; fl->fl_start = 0; fl->fl_end = OFFSET_MAX; I downloaded the kernel source rpm, installed it and put the patch into a file in the /usr/src/redhat/SOURCES directory. Then I modified the /usr/src/redhat/SPECS/kernel-2.6.spec file to apply the patch and ran rpmbuild -ba kernel-2.6.spec The kernel RPMs created are in /usr/src/redhat/RPMS/<architecture> Mail me if you need details regarding this procedure... Uli