Re: [Gluster-users] Samba performance

2019-04-05 Thread Pascal Suter
also i think you should be able to get better performance if you use 
vfs_glusterfs [1]. From what I understand it's similar to samba what 
nfs-ganesha does for nfs, it uses the libgfapi directly rather than 
sharing a fuse-mount


[1] https://www.samba.org/samba/docs/current/man-html/vfs_glusterfs.8.html

on my test machine i did this: (centos 7)

first we need to install |samba-vfs-glusterfs| and of course the samba 
server which comes as a dependency:


yum install samba-vfs-glusterfs

gluster volume set vol1 server.allow-insecure on

now stop and start the gluster volume, this will auto-create a 
(non-working, how funny is that) configuration in |/etc/samba/smb.conf| 
gluster volume stop vol1


gluster volume start vol1

now edit |/etc/samba/smb.conf| and add |kernel share modes = no| and 
also |guest ok=yes| to the newly created |[gluster-vol1]| section so 
that it finally looks about like this:


[gluster-vol1]
comment = For samba share of volume vol1
vfs objects = glusterfs
glusterfs:volume = vol1
glusterfs:logfile = /var/log/samba/glusterfs-vol1.%M.log
glusterfs:loglevel = 7
path = /
read only = no
guest ok = yes
kernel share modes = no

now restart samba

systemctl restart smb

and now you should be able to mount the samba share

mount.cifs -o guest //gluster1/gluster-vol1 /mnt/cifs

On 05.04.19 13:58, David Spisla wrote:


I forgot the link. Here it is:
https://github.com/gluster/glusterdocs/blob/9f2c979b50517b7cb7bf9fbcfccb033bc7bf5082/docs/Administrator%20Guide/Accessing%20Gluster%20from%20Windows.md

Am Fr., 5. Apr. 2019 um 13:57 Uhr schrieb David Spisla 
mailto:spisl...@gmail.com>>:


Hello Anoop,

it is a known issue that Gluster+Samba has a poor performance
especially for small files.
May this manual can give you more inspiration how to setup your
Gluster and Samba environment.

Regards
David Spisla

Am Fr., 5. Apr. 2019 um 11:28 Uhr schrieb Anoop C S
mailto:anoo...@cryptolab.net>>:

On Fri, 2019-04-05 at 09:28 +0200, Benedikt Kaleß wrote:
> Hi everyone,
>
> I'm running gluster version 5.5-1 and I'm dealing with a slow
> performance together with samba and start to analyze the issue.
>
> I want to set the options for samba. But when I try
>
>     gluster volume set   group samba
>
> I get the following error message:
>
>     Unable to open file '/var/lib/glusterd/groups/samba'.
>
> Do you have any hints for me?

This particular group command is only available from v6.0 (as
of now).

https://bugzilla.redhat.com/show_bug.cgi?id=1656771

> Thank you in advance
>
> Benedikt
>

___
Gluster-users mailing list
Gluster-users@gluster.org 
https://lists.gluster.org/mailman/listinfo/gluster-users


___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users
___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] Samba performance

2019-04-05 Thread David Spisla
I forgot the link. Here it is:
https://github.com/gluster/glusterdocs/blob/9f2c979b50517b7cb7bf9fbcfccb033bc7bf5082/docs/Administrator%20Guide/Accessing%20Gluster%20from%20Windows.md

Am Fr., 5. Apr. 2019 um 13:57 Uhr schrieb David Spisla :

> Hello Anoop,
>
> it is a known issue that Gluster+Samba has a poor performance especially
> for small files.
> May this manual can give you more inspiration how to setup your Gluster
> and Samba environment.
>
> Regards
> David Spisla
>
> Am Fr., 5. Apr. 2019 um 11:28 Uhr schrieb Anoop C S  >:
>
>> On Fri, 2019-04-05 at 09:28 +0200, Benedikt Kaleß wrote:
>> > Hi everyone,
>> >
>> > I'm running gluster version 5.5-1 and I'm dealing with a slow
>> > performance together with samba and start to analyze the issue.
>> >
>> > I want to set the options for samba. But when I try
>> >
>> > gluster volume set   group samba
>> >
>> > I get the following error message:
>> >
>> > Unable to open file '/var/lib/glusterd/groups/samba'.
>> >
>> > Do you have any hints for me?
>>
>> This particular group command is only available from v6.0 (as of now).
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=1656771
>>
>> > Thank you in advance
>> >
>> > Benedikt
>> >
>>
>> ___
>> Gluster-users mailing list
>> Gluster-users@gluster.org
>> https://lists.gluster.org/mailman/listinfo/gluster-users
>
>
___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] Samba performance

2019-04-05 Thread David Spisla
Hello Anoop,

it is a known issue that Gluster+Samba has a poor performance especially
for small files.
May this manual can give you more inspiration how to setup your Gluster and
Samba environment.

Regards
David Spisla

Am Fr., 5. Apr. 2019 um 11:28 Uhr schrieb Anoop C S :

> On Fri, 2019-04-05 at 09:28 +0200, Benedikt Kaleß wrote:
> > Hi everyone,
> >
> > I'm running gluster version 5.5-1 and I'm dealing with a slow
> > performance together with samba and start to analyze the issue.
> >
> > I want to set the options for samba. But when I try
> >
> > gluster volume set   group samba
> >
> > I get the following error message:
> >
> > Unable to open file '/var/lib/glusterd/groups/samba'.
> >
> > Do you have any hints for me?
>
> This particular group command is only available from v6.0 (as of now).
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1656771
>
> > Thank you in advance
> >
> > Benedikt
> >
>
> ___
> Gluster-users mailing list
> Gluster-users@gluster.org
> https://lists.gluster.org/mailman/listinfo/gluster-users
___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] Samba performance

2019-04-05 Thread Anoop C S
On Fri, 2019-04-05 at 09:28 +0200, Benedikt Kaleß wrote:
> Hi everyone,
> 
> I'm running gluster version 5.5-1 and I'm dealing with a slow
> performance together with samba and start to analyze the issue.
> 
> I want to set the options for samba. But when I try
> 
> gluster volume set   group samba
> 
> I get the following error message:
> 
> Unable to open file '/var/lib/glusterd/groups/samba'.
> 
> Do you have any hints for me?

This particular group command is only available from v6.0 (as of now).

https://bugzilla.redhat.com/show_bug.cgi?id=1656771

> Thank you in advance
> 
> Benedikt
> 

___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users

[Gluster-users] Samba performance

2019-04-05 Thread Benedikt Kaleß
Hi everyone,

I'm running gluster version 5.5-1 and I'm dealing with a slow
performance together with samba and start to analyze the issue.

I want to set the options for samba. But when I try

    gluster volume set   group samba

I get the following error message:

    Unable to open file '/var/lib/glusterd/groups/samba'.

Do you have any hints for me?

Thank you in advance

Benedikt

-- 
forumZFD
Entschieden für Frieden|Committed to Peace

Benedikt Kaleß
Leiter Team IT|Head team IT

Forum Ziviler Friedensdienst e.V.|Forum Civil Peace Service
Am Kölner Brett 8 | 50825 Köln | Germany  

Tel 0221 91273233 | Fax 0221 91273299 | 
http://www.forumZFD.de 

Vorstand nach § 26 BGB, einzelvertretungsberechtigt|Executive Board:
Oliver Knabe (Vorsitz|Chair), Sonja Wiekenberg-Mlalandle, Alexander Mauz  
VR 17651 Amtsgericht Köln

Spenden|Donations: IBAN DE37 3702 0500 0008 2401 01 BIC BFSWDE33XXX 

___
Gluster-users mailing list
Gluster-users@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-users

[Gluster-users] samba performance downgrade with glusterfs backend

2012-10-11 Thread nuaa_liuben
Hi folks,

We found that samba performance downgrade a lot with glusterfs backend. volume 
info as followed,
Volume Name: vol1
Type: Distribute
Status: Started
Number of Bricks: 1
Transport-type: tcp
Bricks:
Brick1: pana53:/data/
Options Reconfigured:
auth.allow: 192.168.*
features.quota: on
nfs.disable: on

Use dd (bs=1MB) or iozone (block=1MB) to test write performance,  about 400MB/s.
#dd if=/dev/zero of=dd.dat bs=1MB count=1k
1024+0 records in
1024+0 records out
102400 bytes (1.0 GB) copied, 2.6142 s, 392 MB/s

But exporting with samba, use 4 Win7 clients to test with SANergy/Iometer, 
write performance only about 170MB/s.
Command line used: iozone -s 1g -r 1m -i 0 -t 4
Output is in Kbytes/sec
Time Resolution = 0.01 seconds.
Processor cache size set to 1024 Kbytes.
Processor cache line size set to 32 bytes.
File stride size set to 17 * record size.
Throughput test with 4 processes
Each process writes a 1048576 Kbyte file in 1024 Kbyte records

Children see throughput for  4 initial writers  =  171295.03 KB/sec
Parent sees throughput for  4 initial writers   =  170732.54 KB/sec
Min throughput per process  =   42684.70 KB/sec 
Max throughput per process  =   42991.59 KB/sec
Avg throughput per process  =   42823.76 KB/sec
Min xfer= 1041408.00 KB

#smb.conf 
[global]
log file = /var/log/samba/log.%m
max log size = 50
guest account = nobody
map to guest = bad password
posix locking = no
max protocol = SMB2
socket options = TCP_NODELAY IPTOS_LOWDELAY
[test]
comment = None 
path = /mnt/glusterfs
browseable = yes
read only = no
hosts allow = 
hosts deny = 
guest ok = yes

Anyone meet such issues? 
thanks a lot




nuaa_liuben___
Gluster-users mailing list
Gluster-users@gluster.org
http://supercolony.gluster.org/mailman/listinfo/gluster-users