[Gluster-devel] HELP

Anand Avati avati at zresearch.com
Tue Apr 15 05:29:04 UTC 2008


Bajic,
 set the subvolume of the writebehind volume as 'santa' and not 'santa1'.

avati

2008/4/14, B P <bajicpredrag at yahoo.com>:
>
> Hi,
> I have installed glusterfs 1.3.8.pre1 (repository revision
> glusterfs--mainline--2.5--patch--676) on three severs under VMware.
> This configuration (shown bellow) works just fine (HA, self-heal,...), but
> if I want to enable writeback and readahead options,  this configuration
> refuses to be loaded?! What is wrong in that case!?
>
> Could someone, please, explain it to me, why is that so? I need this
> writeback and readahead options up and running so I can test the GlusterFS
> High Availability whith non-default parameters.
>
> Oh! One more thing. Wahat is exactly the
> option remote-host roundrobin.gluster.local for? How does it actually
> work?
> It does not work as it is, so I had to comment it. :(
> I have a feeling that my system would be much more faster if I manage to
> enable roundrobing on client side.
>
> -----
> Best regards,
> Predrag Bajić
>
>
> ***********************************************************************************************
> server1 spec file:
>
> ***********************************************************************************************
> volume mailspool-ds
>   type storage/posix
>   option directory /home/export/mailspool-ds
> end-volume
>
> volume mailspool-ns
>   type storage/posix
>   option directory /home/export/mailspool-ns
> end-volume
>
> volume mailspool-santa2-ds
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.2
>   option remote-subvolume mailspool-ds
>   option transport-timeout 1
> end-volume
>
> volume mailspool-santa2-ns
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.2
>   option remote-subvolume mailspool-ns
>   option transport-timeout 1
> end-volume
>
> volume mailspool-santa3-ds
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.3
>   option remote-subvolume mailspool-ds
>   option transport-timeout 1
> end-volume
>
> volume mailspool-santa3-ns
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.3
>   option remote-subvolume mailspool-ns
>   option transport-timeout 1
> end-volume
>
> volume mailspool-ns-afr
>   type cluster/afr
>   subvolumes mailspool-ns mailspool-santa2-ns mailspool-santa3-ns
>   #option replicate *:3
> end-volume
>
> volume mailspool-ds-afr
>   type cluster/afr
>   subvolumes mailspool-ds mailspool-santa2-ds mailspool-santa3-ds
>   #option replicate *:3
> end-volume
>
> volume mailspool-unify
>   type cluster/unify
>   subvolumes mailspool-ds-afr
>   option namespace mailspool-ns-afr
>   option scheduler rr
> end-volume
>
> volume mailspool
>   type performance/io-threads
>   #option thread-count 3
>   #option cache-size 32MB
>   subvolumes mailspool-unify
> end-volume
>
> volume server
>   type protocol/server
>   option transport-type tcp/server
>   subvolumes mailspool
>   option auth.ip.mailspool-ds.allow 127.0.0.1,192.168.0.*
>   option auth.ip.mailspool-ns.allow 127.0.0.1,192.168.0.*
>   option auth.ip.mailspool.allow 127.0.0.1,192.168.0.*
> end-volume
>
>
> **********************************************************************************************
> server2 spec file:
>
> **********************************************************************************************
> volume mailspool-ds
>   type storage/posix
>   option directory /home/export/mailspool-ds
> end-volume
>
> volume mailspool-ns
>   type storage/posix
>   option directory /home/export/mailspool-ns
> end-volume
>
> volume mailspool-santa2-ds
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.1
>   option remote-subvolume mailspool-ds
>   option transport-timeout 1
> end-volume
>
> volume mailspool-santa2-ns
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.1
>   option remote-subvolume mailspool-ns
>   option transport-timeout 1
> end-volume
>
> volume mailspool-santa3-ds
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.3
>   option remote-subvolume mailspool-ds
>   option transport-timeout 1
> end-volume
>
> volume mailspool-santa3-ns
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.3
>   option remote-subvolume mailspool-ns
>   option transport-timeout 1
> end-volume
>
> volume mailspool-ns-afr
>   type cluster/afr
>   subvolumes mailspool-ns mailspool-santa2-ns mailspool-santa3-ns
>   #option replicate *:3
> end-volume
>
> volume mailspool-ds-afr
>   type cluster/afr
>   subvolumes mailspool-ds mailspool-santa2-ds mailspool-santa3-ds
>   #option replicate *:3
> end-volume
>
> volume mailspool-unify
>   type cluster/unify
>   subvolumes mailspool-ds-afr
>   option namespace mailspool-ns-afr
>   option scheduler rr
> end-volume
>
> volume mailspool
>   type performance/io-threads
>   #option thread-count 3
>   #option cache-size 32MB
>   subvolumes mailspool-unify
> end-volume
>
> volume server
>   type protocol/server
>   option transport-type tcp/server
>   subvolumes mailspool
>   option auth.ip.mailspool-ds.allow 127.0.0.1,192.168.0.*
>   option auth.ip.mailspool-ns.allow 127.0.0.1,192.168.0.*
>   option auth.ip.mailspool.allow 127.0.0.1,192.168.0.*
> end-volume
>
>
> ***********************************************************************************************
> server3 spec file
>
> ***********************************************************************************************
> volume mailspool-ds
>   type storage/posix
>   option directory /home/export/mailspool-ds
> end-volume
>
> volume mailspool-ns
>   type storage/posix
>   option directory /home/export/mailspool-ns
> end-volume
>
> volume mailspool-santa2-ds
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.1
>   option remote-subvolume mailspool-ds
>   option transport-timeout 1
> end-volume
>
> volume mailspool-santa2-ns
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.1
>   option remote-subvolume mailspool-ns
>   option transport-timeout 1
> end-volume
>
> volume mailspool-santa3-ds
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.2
>   option remote-subvolume mailspool-ds
>   option transport-timeout 1
> end-volume
>
> volume mailspool-santa3-ns
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host 192.168.0.2
>   option remote-subvolume mailspool-ns
>   option transport-timeout 1
> end-volume
>
> volume mailspool-ns-afr
>   type cluster/afr
>   subvolumes mailspool-ns mailspool-santa2-ns mailspool-santa3-ns
>   #option replicate *:3
> end-volume
>
> volume mailspool-ds-afr
>   type cluster/afr
>   subvolumes mailspool-ds mailspool-santa2-ds mailspool-santa3-ds
>   #option replicate *:3
> end-volume
>
> volume mailspool-unify
>   type cluster/unify
>   subvolumes mailspool-ds-afr
>   option namespace mailspool-ns-afr
>   option scheduler rr
> end-volume
>
> volume mailspool
>   type performance/io-threads
>   #option thread-count 3
>   #option cache-size 32MB
>   subvolumes mailspool-unify
> end-volume
>
> volume server
>   type protocol/server
>   option transport-type tcp/server
>   subvolumes mailspool
>   option auth.ip.mailspool-ds.allow 127.0.0.1,192.168.0.*
>   option auth.ip.mailspool-ns.allow 127.0.0.1,192.168.0.*
>   option auth.ip.mailspool.allow 127.0.0.1,192.168.0.*
> end-volume
>
> ----------------------------------------------------------------------------------------------------------------------
> client spec file (server3 is also the client too):
>
> ----------------------------------------------------------------------------------------------------------------------
> volume santa
>   type protocol/client
>   option transport-type tcp/client            # for TCP/IP transport
>   #option remote-host roundrobin.gluster.local# DNS rrbn. ptr towards all
> 3 GlusterFS servers
>   option remote-host 127.0.0.1
>   option remote-subvolume mailspool           # name of the remote volume
>   option transport-timeout 1
> end-volume
>
> #volume writeback
> #  type performance/write-behind
> #  option aggregate-size 128KB # unit in bytes
> #  subvolumes santa1
> #end-volume
>
> #volume readahead
> #  type performance/read-ahead
> #  option page-size 64KB     # unit in bytes
> #  option page-count 16       # cache per file  = (page-count x page-size)
> #  subvolumes writeback
> #end-volume
>
>
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at nongnu.org
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>



-- 
If I traveled to the end of the rainbow
As Dame Fortune did intend,
Murphy would be there to tell me
The pot's at the other end.


More information about the Gluster-devel mailing list