Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-10 Thread Volker Lendecke
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-file

What 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-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-09 Thread Daniel Müller
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: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: Volker Lendecke [mailto:volker.lende...@sernet.de] 
Gesendet: Mittwoch, 9. Februar 2011 09:52
An: Daniel Müller
Cc: samba@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 read
only?!!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-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-09 Thread Volker Lendecke
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-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-09 Thread Daniel Müller
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: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: Volker Lendecke [mailto:volker.lende...@sernet.de] 
Gesendet: Mittwoch, 9. Februar 2011 09:52
An: Daniel Müller
Cc: samba@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 read
only?!!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-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-09 Thread Daniel Müller
Posix locking is yes so I will point it to no!?

[root@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: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: Volker Lendecke [mailto:volker.lende...@sernet.de] 
Gesendet: Mittwoch, 9. Februar 2011 09:52
An: Daniel Müller
Cc: samba@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 read
only?!!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-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-09 Thread Volker Lendecke
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 read only?!!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-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-09 Thread Daniel Müller
[0]:  pid = 6921, share_access = 0x5,
private_options = 0x40, access_mask = 0x20089, mid = 0x0, type= 0x10, gen_id
= 356, uid = 0, flags = 0, file_id 13:16013e:0
[2011/02/09 09:27:21.256230, 10] locking/locking.c:655(parse_share_modes)
  parse_share_modes: share_mode_entry[1]:  pid = 6921, share_access = 0x5,
private_options = 0x40, access_mask = 0x20089, mid = 0x0, type= 0x10, gen_id
= 359, uid = 0, flags = 0, file_id 13:16013e:0
[2011/02/09 09:27:21.256246,  3]
smbd/trans2.c:5225(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo Microsoft Office Excel-Arbeitsblatt (neu).xlsx
(fnum = -1) level=1004 call=5 total_data=0
[2011/02/09 09:27:21.256263,  5] smbd/trans2.c:4197(smbd_do_qfilepathinfo)
  smbd_do_qfilepathinfo: Microsoft Office Excel-Arbeitsblatt (neu).xlsx
(fnum = -1) level=1004 max_data=40
[2011/02/09 09:27:21.256278,  8] smbd/dosmode.c:613(dos_mode)
  dos_mode: Microsoft Office Excel-Arbeitsblatt (neu).xlsx
[2011/02/09 09:27:21.256292,  8] smbd/dosmode.c:207(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning a
[2011/02/09 09:27:21.256306,  8] smbd/dosmode.c:666(dos_mode)
  dos_mode returning a
[2011/02/09 09:27:21.256323, 10] smbd/trans2.c:4431(smbd_do_qfilepathinfo)
  smbd_do_qfilepathinfo: SMB_FILE_BASIC_INFORMATION
[2011/02/09 09:27:21.256337,  5] smbd/trans2.c:4441(smbd_do_qfilepathinfo)
  SMB_QFBI - create: Wed Feb  9 09:27:21 2011
   access: Wed Feb  9 09:39:19 2011
   write: Wed Feb  9 09:27:21 2011



---
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: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: Volker Lendecke [mailto:volker.lende...@sernet.de] 
Gesendet: Dienstag, 8. Februar 2011 16:17
An: Daniel Müller
Cc: samba@lists.samba.org
Betreff: Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

On Tue, Feb 08, 2011 at 03:51:26PM +0100, Daniel Müller wrote:
> So I created the file versuch.docx on the glusterd-vol. At the end of my
> smbd.log the file is read only. Only one change in the file possible

If that is all the logs that you can ever get out of your
Server (your "max log size" must be EXTREMELY small) then I
don't see any chance to help you.

A full debug level 10 log, a network sniff and at some point
potentially a strace of smbd, that would be the information
that you might have a chance with. But that is probably more
effort for you than installing GFS2.

Sorry for that,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-08 Thread Harry Jede
On 18:33:52 wrote Daniel Müller:
> So I created the file versuch.docx on the glusterd-vol. At the end of
> my smbd.log the file is read only. Only one change in the file
> possible
>
>
> My share definition:
>
> [test]
> path=/mnt/glusterfs/windows/test
> readonly=no
> profile acls = YES
> oplocks=NO
> level2 oplocks=NO
> write list="Domain Users" "Domain Admins"
  write list=@"Domain Users" @"Domain Admins"

should be groups, not a single user

> create mask = 2770
> force group= "Domain Users"
>
> -rwxrw 1 root Domain Users 10021  8. Feb 15:42 versuch.docx


-- 

Gruss
Harry Jede
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-08 Thread Aaron E.
Is this possibly a caching issue? I had some problems with nfs file 
share that sounded somewhat like this and it turned out to be caching. I 
disabled caching on the mount and it all worked perfectly.


On 02/08/2011 10:16 AM, Volker Lendecke wrote:

On Tue, Feb 08, 2011 at 03:51:26PM +0100, Daniel Müller wrote:

So I created the file versuch.docx on the glusterd-vol. At the end of my
smbd.log the file is read only. Only one change in the file possible


If that is all the logs that you can ever get out of your
Server (your "max log size" must be EXTREMELY small) then I
don't see any chance to help you.

A full debug level 10 log, a network sniff and at some point
potentially a strace of smbd, that would be the information
that you might have a chance with. But that is probably more
effort for you than installing GFS2.

Sorry for that,

Volker Lendecke



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-08 Thread Volker Lendecke
On Tue, Feb 08, 2011 at 03:51:26PM +0100, Daniel Müller wrote:
> So I created the file versuch.docx on the glusterd-vol. At the end of my
> smbd.log the file is read only. Only one change in the file possible

If that is all the logs that you can ever get out of your
Server (your "max log size" must be EXTREMELY small) then I
don't see any chance to help you.

A full debug level 10 log, a network sniff and at some point
potentially a strace of smbd, that would be the information
that you might have a chance with. But that is probably more
effort for you than installing GFS2.

Sorry for that,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-08 Thread Daniel Müller
ct=15
  smb_vwv[ 0]=4 (0x4)
  smb_vwv[ 1]=0 (0x0)
  smb_vwv[ 2]=2 (0x2)
  smb_vwv[ 3]=   24 (0x18)
  smb_vwv[ 4]=0 (0x0)
  smb_vwv[ 5]=0 (0x0)
  smb_vwv[ 6]=0 (0x0)
  smb_vwv[ 7]=0 (0x0)
  smb_vwv[ 8]=0 (0x0)
  smb_vwv[ 9]=4 (0x4)
  smb_vwv[10]=   68 (0x44)
  smb_vwv[11]=0 (0x0)
  smb_vwv[12]=0 (0x0)
  smb_vwv[13]=1 (0x1)
  smb_vwv[14]=7 (0x7)
  smb_bcc=7
[2011/02/08 15:42:05.903057,  3] smbd/process.c:1294(switch_message)
  switch message SMBtrans2 (pid 2781) conn 0x2b53d94fe810
[2011/02/08 15:42:05.903073,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/02/08 15:42:05.903087,  5] auth/token_util.c:531(debug_nt_user_token)
  NT user token of user S-1-5-21-1678901364-838636917-1519461565-500
  contains 12 SIDs
  SID[  0]: S-1-5-21-1678901364-838636917-1519461565-500
[2011/02/08 15:42:53.747650,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/02/08 15:42:53.747891,  5] auth/token_util.c:525(debug_nt_user_token)
  NT user token: (NULL)
[2011/02/08 15:42:53.748275,  5]
auth/token_util.c:551(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2011/02/08 15:42:53.748433,  5] smbd/uid.c:369(change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0


It drives me crazy :-)


---
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: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: Volker Lendecke [mailto:volker.lende...@sernet.de] 
Gesendet: Dienstag, 8. Februar 2011 15:16
An: Daniel Müller
Cc: samba@lists.samba.org
Betreff: Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

On Tue, Feb 08, 2011 at 03:12:00PM +0100, Daniel Müller wrote:
> 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.

Without further analysis I don't think this is appropriate.

Volker

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-08 Thread Volker Lendecke
On Tue, Feb 08, 2011 at 03:12:00PM +0100, Daniel Müller wrote:
> 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.

Without further analysis I don't think this is appropriate.

Volker
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-08 Thread Daniel Müller
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: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: John Drescher [mailto:dresche...@gmail.com] 
Gesendet: Dienstag, 8. Februar 2011 13:34
An: muel...@tropenklinik.de
Cc: samba@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

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-08 Thread John Drescher
> 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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CentOs 5.5 Glusterfs 3.1.0 Samba 3.5 MSOffice Files

2011-02-08 Thread Daniel Müller
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: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---

-Ursprüngliche Nachricht-
Von: Harry Jede [mailto:walk2...@arcor.de] 
Gesendet: Dienstag, 8. Februar 2011 11:32
An: muel...@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: muel...@tropenklinik.de
> Internet: www.tropenklinik.de
> ---



-- 

Gruss
Harry Jede

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba