[Gluster-devel] Doesn't work well with SAMBA

Daniel Wong wangjinxin.gluster at gmail.com
Tue Nov 15 06:08:48 UTC 2011


Hi Anush,

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 at gmail.com>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 Directory
>         path = /home/guest/Public
>         browseable = yes
> valid users = guest
>         writable = yes
>         write list = guest, at guest
>         admin users = guest, at guest
>         guest ok = yes
>         create mask = 0777
>         force create mask = 0777
> ////////////////////////////////////////////////////////
>
> And server conf. files
> debian04:/usr/local/workspace/server01# cat server.vol
> volume posix1
>   type storage/posix
>   option directory /usr/local/workspace/server01_share/
> end-volume
>
> volume locks1
>     type features/locks
>     subvolumes posix1
> end-volume
>
> volume brick1
>     type performance/io-threads
>     option thread-count 8
>     subvolumes locks1
> end-volume
>
> volume server-tcp
>     type protocol/server
>     option transport-type tcp
>     option auth.addr.brick1.allow *
>     option transport.socket.listen-port 10004
>     option transport.socket.nodelay on
>     subvolumes brick1
> end-volume
> ----------------------------------------
> debian04:/usr/local/workspace# cat server02/server.vol
> volume posix1
>   type storage/posix
>   option directory /usr/local/workspace/server02_share/
> end-volume
>
> volume locks1
>     type features/locks
>     subvolumes posix1
> end-volume
>
> volume brick1
>     type performance/io-threads
>     option thread-count 8
>     subvolumes locks1
> end-volume
>
> volume server-tcp
>     type protocol/server
>     option transport-type tcp
>     option auth.addr.brick1.allow *
>     option transport.socket.listen-port 10005
>     option transport.socket.nodelay on
>     subvolumes brick1
> end-volume
> ///////////////////////////////////////////////////////////////
>
> The client conf files:
> debian04:/usr/local/workspace# cat client/client.vol
> volume node-1-10004
>     type protocol/client
>     option transport-type tcp
>     option remote-host 127.0.0.1
>     option transport.socket.nodelay on
>     option remote-port 10004
>     option remote-subvolume brick1
> end-volume
>
> volume node-1-10005
>     type protocol/client
>     option transport-type tcp
>     option remote-host 127.0.0.1
>     option transport.socket.nodelay on
>     option remote-port 10005
>     option remote-subvolume brick1
> end-volume
>
> volume distribute
>     type cluster/dht
>     option layout-version 1
>     option min-free-disk 5%
>     option lookup-unhashed on
>     subvolumes node-1-10005 node-1-10004
> end-volume
> //////////////////////////////////////////////
>
> debian04:/usr/local/workspace# uname  -a
> Linux debian04 2.6.26-1-amd64 #1 SMP Fri Mar 13 17:46:45 UTC 2009 x86_64
> GNU/Linux
> debian04:/usr/local/workspace# smbd --version
> Version 3.2.5
>
> I mount it on WindowsXP, and operate by MS-office 2007.
>
> ////////////////////////////////////////////////
>
> Thank you
>
> Dan
>
> On Thu, Nov 3, 2011 at 5:10 PM, Anush Shetty <anush at gluster.com> 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 at nongnu.org[gluster-devel-bounces+anush=
>> zresearch.com at nongnu.org] on behalf of Daniel Wong [
>> wangjinxin.gluster at gmail.com]
>> *Sent:* 02 November 2011 17:49:00
>> *To:* gluster-devel at nongnu.org
>> *Subject:* [Gluster-devel] 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20111115/c9d04848/attachment-0003.html>


More information about the Gluster-devel mailing list