I saw there was a similar question in user request mail list. And the answer solved my problem as well.
Thank you anyway.
Daniel
On Fri, Nov 4, 2011 at 1:04 PM, Daniel Wong <wangjinxin.gluster@xxxxxxxxx> wrote:
Hi Anush,The conf. files are in the follow. And I have tried to modify the method fuse_statfs in 3.2.4 like this:2297 | ret = fuse_loc_fill (&state->loc, state, finh->nodeid, 0, NULL);Because I also test 3.3beta2, and it sets the ino as the finh>nodeid instead of 1.Now, it is getting better, when I create, remove, modify folders, doc and excel files, the folder can refresh itself automatically. But still sometimes failed to open files by MS-Office.Here is the samba conf. file:debian04:~# cat /etc/samba/smb.conf[aaa]comment = Public Directorypath = /home/guest/Publicbrowseable = yesvalid users = guestwritable = yeswrite list = guest,@guestadmin users = guest,@guestguest ok = yescreate mask = 0777force create mask = 0777////////////////////////////////////////////////////////And server conf. filesdebian04:/usr/local/workspace/server01# cat server.volvolume posix1type storage/posixoption directory /usr/local/workspace/server01_share/end-volumevolume locks1type features/lockssubvolumes posix1end-volumevolume brick1type performance/io-threadsoption thread-count 8subvolumes locks1end-volumevolume server-tcptype protocol/serveroption transport-type tcpoption auth.addr.brick1.allow *option transport.socket.listen-port 10004option transport.socket.nodelay onsubvolumes brick1end-volume----------------------------------------debian04:/usr/local/workspace# cat server02/server.volvolume posix1type storage/posixoption directory /usr/local/workspace/server02_share/end-volumevolume locks1type features/lockssubvolumes posix1end-volumevolume brick1type performance/io-threadsoption thread-count 8subvolumes locks1end-volumevolume server-tcptype protocol/serveroption transport-type tcpoption auth.addr.brick1.allow *option transport.socket.listen-port 10005option transport.socket.nodelay onsubvolumes brick1end-volume///////////////////////////////////////////////////////////////The client conf files:debian04:/usr/local/workspace# cat client/client.volvolume node-1-10004type protocol/clientoption transport-type tcpoption remote-host 127.0.0.1option transport.socket.nodelay onoption remote-port 10004option remote-subvolume brick1end-volumevolume node-1-10005type protocol/clientoption transport-type tcpoption remote-host 127.0.0.1option transport.socket.nodelay onoption remote-port 10005option remote-subvolume brick1end-volumevolume distributetype cluster/dhtoption layout-version 1option min-free-disk 5%option lookup-unhashed onsubvolumes node-1-10005 node-1-10004end-volume//////////////////////////////////////////////debian04:/usr/local/workspace# uname -aLinux debian04 2.6.26-1-amd64 #1 SMP Fri Mar 13 17:46:45 UTC 2009 x86_64 GNU/Linuxdebian04:/usr/local/workspace# smbd --versionVersion 3.2.5I mount it on WindowsXP, and operate by MS-office 2007.////////////////////////////////////////////////Thank youDanOn Thu, Nov 3, 2011 at 5:10 PM, Anush Shetty <anush@xxxxxxxxxxx> wrote:
Hi Daniel,
Can you please paste your samba conf file and "gluster volume info" output here.
-
Anush
From: gluster-devel-bounces+anush=zresearch.com@xxxxxxxxxx [gluster-devel-bounces+anush=zresearch.com@xxxxxxxxxx] on behalf of Daniel Wong [wangjinxin.gluster@xxxxxxxxx]
Sent: 02 November 2011 17:49:00
To: gluster-devel@xxxxxxxxxx
Subject: Doesn't work well with SAMBA
Hello,
I am using GlusterFS 3.2.4. When it is shared by SAMBA, on the windows client, it doesn't works well, the folder has to be refreshed manually for adding, renaming and removing, sometimes the MS office doc can't be opened.
Could you help me with this?
Thanks a lot
Daniel