gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Daniel Wong
Subject: Re: [Gluster-devel] Doesn't work well with SAMBA
Date: Tue, 15 Nov 2011 14:08:48 +0800

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 <address@hidden> 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,@guest
        admin users = guest,@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 <address@hidden> wrote:
Hi Daniel,

Can you please paste your samba conf file and  "gluster volume info" output here.

-
Anush

From: gluster-devel-bounces+anush=address@hidden [gluster-devel-bounces+anush=address@hidden] on behalf of Daniel Wong [address@hidden]
Sent: 02 November 2011 17:49:00
To: address@hidden
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]