Mixing Unify and Stripe
From GlusterDocumentation
[edit]
Server Volume Specification
# file: /etc/glusterfs/glusterfs-server.vol volume brick type storage/posix option directory /data/export end-volume volume brick-stripe type storage/posix option directory /data/export-stripe end-volume volume brick-ns type storage/posix option directory /data/export-ns end-volume volume server type protocol/server option transport-type tcp/server option auth.ip.brick.allow * option auth.ip.brick-mirror.allow * option auth.ip.brick-ns.allow * subvolumes brick brick-stripe brick-ns end-volume
[edit]
Client Volume Specification
# file: /etc/glusterfs/glusterfs-client.vol volume remote1 type protocol/client option transport-type tcp/client option remote-host storage1.example.com option remote-subvolume brick end-volume volume remote2 type protocol/client option transport-type tcp/client option remote-host storage2.example.com option remote-subvolume brick end-volume volume remote1-stripe type protocol/client option transport-type tcp/client option remote-host storage1.example.com option remote-subvolume brick-stripe end-volume volume remote2-stripe type protocol/client option transport-type tcp/client option remote-host storage2.example.com option remote-subvolume brick-stripe end-volume volume stripe0 type cluster/stripe option block-size *:1MB subvolumes remote1-stripe remote2-stripe end-volume volume remote-ns type protocol/client option transport-type tcp/client option remote-host storage1.example.com option remote-subvolume brick-ns end-volume volume unify0 type cluster/unify option scheduler switch option switch.case *.dat:stripe0;*:remote1,remote2 # stripe only *.dat files option namespace remote-ns subvolumes remote1 remote2 afr0 end-volume

