Daniel Müller
2011-Feb-08 07:10 UTC
[Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files
Dear all, I have set up a two node workin gluster with glusterfs3.1 and Samba-Sernet 3.5. Everything is working great except MSOffice files (Word/Excell). On the gluster-vol they have the strange behavior That they rest read only, write protected. Every other type of files can be manged without problem, openoffice files too. So when I save a word file on the vol and try to change it it is write protected. When I open the word file with openoffice I can change it without any problem? Is there a bug in samba concerning glusterd? My share config: [test] path = /mnt/glusterfs/windows/test write list = "Domain Users", "Domain Admins" force group = "Domain Users" read only = No create mask = 02770 force create mode = 02770 profile acls = Yes veto oplock files /*.mdb/*.MDB/*.dbf/*.DBF/*.doc/*.docx/*.xls/*.xlsx/*.tmp/*.TMP/?~$*/~$*/*.ex e/*.com oplocks = No level2 oplocks = No ----------------------------------------------- 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 -----------------------------------------------
Daniel Müller
2011-Feb-08 11:25 UTC
[Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files
I did with a simpler share, but it is the same bahaviour. Telling me: another user.... open read only..... I think Fuse/Glusterfs cannot manage msoffice files written from msword or msexcell. If I change or create doc file with openoffice everything is working on the fly. ----------------------------------------------- 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: Harry Jede [mailto:walk2sun at arcor.de] Gesendet: Dienstag, 8. Februar 2011 11:32 An: mueller at tropenklinik.de Betreff: Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files On 11:24:47 wrote Daniel M?ller:> Dear all, > > I have set up a two node workin gluster with glusterfs3.1 and > Samba-Sernet 3.5. > Everything is working great except MSOffice files (Word/Excell). On > the gluster-vol they have the strange behavior > That they rest read only, write protected.As far as i know, the newer versions of MSO creates tmp-files during the save operation. So try to change or uncomment the "veto oplock files" and/or the "force create mode" directive. Maybe you start with a simpler share definition, like this: [test] path = /mnt/glusterfs/windows/test write list = "Domain Users", "Domain Admins" force group = "Domain Users" read only = No> Every other type of files > can be manged without problem, openoffice files too. > So when I save a word file on the vol and try to change it it is > write protected. When I open the word file with openoffice I can > change it without any problem? > Is there a bug in samba concerning glusterd? > My share config: > > [test] > path = /mnt/glusterfs/windows/test > write list = "Domain Users", "Domain Admins" > force group = "Domain Users" > read only = No > create mask = 02770 > force create mode = 02770 > profile acls = Yes > veto oplock files > /*.mdb/*.MDB/*.dbf/*.DBF/*.doc/*.docx/*.xls/*.xlsx/*.tmp/*.TMP/?~$*/~ >$*/*.ex e/*.com > oplocks = No > level2 oplocks = No > > > > > > > ----------------------------------------------- > 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 > ------------------------------------------------- Gruss Harry Jede
John Drescher
2011-Feb-08 12:34 UTC
[Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files
> I did with a simpler share, but it is the same bahaviour. > Telling me: another user.... open read only..... > I think Fuse/Glusterfs cannot manage msoffice files written from msword or > msexcell.Remember that office files are not normal. When you save in office the application creates a temporary file then deletes the previous file then renames the temporary file with the same filename as the the original. When that happens the windows filesystem automatically applies the permissions of the recently deleted file to the file that was just renamed to the same name. *nix filesystems do not have that strange behavior. I believe on my work network I needed to use a force create mode to fix this issue with some 3.0.X version of samba and I have not changed it in years.. John
Daniel Müller
2011-Feb-08 14:12 UTC
[Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files
But even with the force group or force create mode it is still not possible to do it on a glusterd vol. I think I will skip glusterd and return to gfs2 and drbd. ----------------------------------------------- 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: John Drescher [mailto:drescherjm at gmail.com] Gesendet: Dienstag, 8. Februar 2011 13:34 An: mueller at tropenklinik.de Cc: samba at lists.samba.org Betreff: Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files> I did with a simpler share, but it is the same bahaviour. > Telling me: another user.... open read only..... > I think Fuse/Glusterfs cannot manage msoffice files written from msword or > msexcell.Remember that office files are not normal. When you save in office the application creates a temporary file then deletes the previous file then renames the temporary file with the same filename as the the original. When that happens the windows filesystem automatically applies the permissions of the recently deleted file to the file that was just renamed to the same name. *nix filesystems do not have that strange behavior. I believe on my work network I needed to use a force create mode to fix this issue with some 3.0.X version of samba and I have not changed it in years.. John
Daniel Müller
2011-Feb-09 09:41 UTC
[Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files
Posix locking is yes so I will point it to no!? [root at ctdb1 ~]# testparm -v|grep posix Load smb config files from /etc/samba/smb.conf rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) Processing section "[netlogon]" Processing section "[homes]" Processing section "[test]" Processing section "[office]" Loaded services file OK. Server role: ROLE_DOMAIN_PDC Press enter to see a dump of your service definitions posix locking = Yes ----------------------------------------------- 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: Volker Lendecke [mailto:Volker.Lendecke at SerNet.DE] Gesendet: Mittwoch, 9. Februar 2011 09:52 An: Daniel M?ller Cc: samba at lists.samba.org Betreff: Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files On Wed, Feb 09, 2011 at 09:31:55AM +0100, Daniel M?ller wrote:> So I do not give up as other users may have the same problems: > I did a file test.xlsx and it seems samba does a posix lock readonly?!!Why? Have you taken a look at the smb.conf "posix locking" option? The posix read lock is not directly related to oplocks. With best regards, Volker Lendecke -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen
Daniel Müller
2011-Feb-09 09:43 UTC
[Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files
The other lock parameters in global: blocking locks = Yes csc policy = manual fake oplocks = No locking = Yes oplocks = Yes level2 oplocks = Yes oplock contention limit = 2 posix locking = Yes strict locking = Auto ----------------------------------------------- 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: Volker Lendecke [mailto:Volker.Lendecke at SerNet.DE] Gesendet: Mittwoch, 9. Februar 2011 09:52 An: Daniel M?ller Cc: samba at lists.samba.org Betreff: Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files On Wed, Feb 09, 2011 at 09:31:55AM +0100, Daniel M?ller wrote:> So I do not give up as other users may have the same problems: > I did a file test.xlsx and it seems samba does a posix lock readonly?!!Why? Have you taken a look at the smb.conf "posix locking" option? The posix read lock is not directly related to oplocks. With best regards, Volker Lendecke -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen
Volker Lendecke
2011-Feb-09 09:49 UTC
[Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files
On Wed, Feb 09, 2011 at 10:41:24AM +0100, Daniel M?ller wrote:> Posix locking is yes so I will point it to no!?If you want to avoid the posix lock calls, yes. I am not certain however that this will be the final fix for the problem. I have not seen the full logfiles yet, you only have small snippets available. With best regards, Volker Lendecke -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen
Daniel Müller
2011-Feb-09 09:53 UTC
[Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files
I did it thank you, Volker: This is my share definition (especially for msoffice files) working on a gluster-vol.So you can replicate your data to as many server you want: [test] path=/mnt/glusterfs/windows/test readonly=no profile acls = YES oplocks=NO <--- This is the most important setting posix locking = NO level2 oplocks=NO #oplocks auf dem share fuer folgende file-types ausschalten veto oplock files /*.mdb/*.MDB/*.dbf/*.DBF/*.doc/*.docx/*.xls/*.xlsx/*.tmp/*.TMP/?~$*/~$*/*.ex e/*.com write list=@"Domain Users" @"Domain Admins" create mask = 2770 force create mode=2770 force group= "Domain Users" ----------------------------------------------- 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: Volker Lendecke [mailto:Volker.Lendecke at SerNet.DE] Gesendet: Mittwoch, 9. Februar 2011 09:52 An: Daniel M?ller Cc: samba at lists.samba.org Betreff: Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files On Wed, Feb 09, 2011 at 09:31:55AM +0100, Daniel M?ller wrote:> So I do not give up as other users may have the same problems: > I did a file test.xlsx and it seems samba does a posix lock readonly?!!Why? Have you taken a look at the smb.conf "posix locking" option? The posix read lock is not directly related to oplocks. With best regards, Volker Lendecke -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen
Volker Lendecke
2011-Feb-10 08:38 UTC
[Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files
On Wed, Feb 09, 2011 at 02:24:01PM +0100, Daniel M?ller wrote:> You are right if I work with the share sometimes the read only access > returns. > See my attached log in the zip-fileWhat file did you want to open r/w and could not in this log file? With best regards, Volker Lendecke -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen