View Single Post
Sitat av vidarlo Vis innlegg
Har glusterfs med ein brick, som er geo-replisert til ein anna brick. Volumet er ikkje replica, ettersom det funker dårlig med så høg latency som det vil få når ting er utplassert.
Vis hele sitatet...
Forstår jeg riktig at du forsøker å dele volumet fra lokal site, der det ikke er replikert?

Hvordan er ytelsen ved å lese rett fra fra monterte fuse-volumet, lokalt ?

Hvordan har du satt opp volumet og smb ? Finner dette fra Red Hat sin dok (https://access.redhat.com/documentat...ide/index.html - seksjon 7.3) :

Kode

The following configuration items have to be implemented before using SMB with Red Hat Gluster Storage.
Run gluster volume set VOLNAME stat-prefetch off to disable stat-prefetch for the volume.
Run gluster volume set VOLNAME server.allow-insecure on to permit insecure ports.
NOTE
This allows Samba to communicate with brick processes even with untrusted ports.
Edit the /etc/glusterfs/glusterd.vol in each Red Hat Gluster Storage node, and add the following setting:
option rpc-auth-allow-insecure on
NOTE
This allows Samba to communicate with glusterd even with untrusted ports.
Restart glusterd service on each Red Hat Gluster Storage node.
Run the following command to verify proper lock and I/O coherency.
# gluster volume set VOLNAME storage.batch-fsync-delay-usec 0
To verify if the volume can be accessed from the SMB/CIFS share, run the following command:
# smbclient -L <hostname> -U%
For example:
# smbclient -L rhs-vm1 -U%
Domain=[MYGROUP] OS=[Unix] Server=[Samba 4.1.17]

     Sharename       Type      Comment
     ---------       ----      -------
     IPC$            IPC       IPC Service (Samba Server Version 4.1.17)
     gluster-vol1    Disk      For samba share of volume vol1
Domain=[MYGROUP] OS=[Unix] Server=[Samba 4.1.17]

     Server               Comment
     ---------            -------

     Workgroup            Master
     ---------            -------
To verify if the SMB/CIFS share can be accessed by the user, run the following command:
#  smbclient //<hostname>/gluster-<volname> -U <username>%<password>
For example:
# smbclient //10.0.0.1/gluster-vol1 -U root%redhat
Domain=[MYGROUP] OS=[Unix] Server=[Samba 4.1.17]
smb: \> mkdir test
smb: \> cd test\
smb: \test\> pwd
Current directory is \\10.0.0.1\gluster-vol1\test\
smb: \test\>
When a volume is started using the gluster volume start VOLNAME command, the volume is automatically exported through Samba on all Red Hat Gluster Storage servers running Samba.
To be able to mount from any server in the trusted storage pool, repeat these steps on each Red Hat Gluster Storage node. For more advanced configurations, refer to the Samba documentation.
Open the /etc/samba/smb.conf file in a text editor and add the following lines for a simple configuration:
[gluster-VOLNAME]
comment = For samba share of volume VOLNAME
vfs objects = glusterfs
glusterfs:volume = VOLNAME
glusterfs:logfile = /var/log/samba/VOLNAME.log
glusterfs:loglevel = 7
path = /
read only = no
guest ok = yes
Hvis du ikke har konto der mener jeg du får en gratis ved å registrere deg her: https://developers.redhat.com/