Bug 5938 - MS Office cant correctly open files from Samba-shares that are mounted through NFS
Summary: MS Office cant correctly open files from Samba-shares that are mounted throug...
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.2.4
Hardware: x86 Linux
: P3 normal
Target Milestone: ---
Assignee: Volker Lendecke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-04 08:17 UTC by Stefan Maier
Modified: 2009-05-13 03:59 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Maier 2008-12-04 08:17:42 UTC
We recently changed our fileserver setup and are in the middle of moving everything over to a new server. During the move both server should provide the same shares so we chose to mount the shares via NFS on the new server and then export it through samba (3.2.3-0.1-1882-SUSE-SL11.0).
This works fine for just about anything but it breaks for Microsoft Office Products running under Windows XP SP3 (SP2 is fine) or Windows Vista. The Office products complain, that the file is already opened by someone else.

As a workaround we set posix locking = no for all shares and it works fine now.
But as the manpage said "You should never need to disable this parameter." we thought we'd report this.
Comment 1 Adi Kriegisch 2008-12-10 05:36:57 UTC
I have the same issues (although only with XP SP3 and Office 2003, Vista and Office 2007 work just fine as do XP SP3 and Office 2007).
Reexport NFS-mounted filesystems are -- according to Volker Lendecke -- unsupported:
http://lists.samba.org/archive/samba/2008-June/141216.html

I contacted Dirk Kastens -- the original reporter -- some months ago; he still has "posix locking" disabled which is a fine solution for him (see http://lists.samba.org/archive/samba/2008-June/141212.html and the following).

As I need cross-server locking and stuff like that I cannot go that way. "My" solution is not to use Office 2003 in combination with XP-SP3 or Vista.

best regards,
  Adi Kriegisch

PS: I'd like to vote on this bug/feature if only I could... ;-)
Comment 2 Volker Lendecke 2008-12-10 05:43:02 UTC
I really do wonder how you make Microsoft Office use of NFS locks.

Volker
Comment 3 Adi Kriegisch 2008-12-10 06:08:38 UTC
actually not Office should use NFS locks but Samba.

In my setup several data servers use cross-mounted disk drives (via NFS) an reexport those via Samba. So I'd like "Server B" to notify users when they try to open an Office document that has already been opened -- no matter if it has been opened via "Server A" or "Server B" and no matter on which of the disks involved it is actually stored.
And what I can say from using such a setup for some years now (actually from mid 2002 on) is that it used to work just fine up to Win XP SP3 with Office 2003.
With "posix locking" disabled notifications do work -- but not cross-server anymore.
Comment 4 Volker Lendecke 2008-12-10 07:09:30 UTC
So you are exporting the same file space via two different Samba instances? That's even less supported than re-exporting an imported NFS share, that's the configuration that took us years to get right with clustered Samba.

Volker
Comment 5 Karolin Seeger 2009-05-13 03:56:36 UTC
Volker, should this bug report be closed as invalid?
Comment 6 Volker Lendecke 2009-05-13 03:59:33 UTC
Please look at ctdb.samba.org. Using that it will work. Closing the bug as worksforme. It does, but with a different configuration.