Você pode usar de duas formas abaixo:
- Use as opções de backupvolfile fstab
server1_name:/media /media glusterfs
defaults,_netdev,backupvolfile-server=server2_name,log-level=WARNING,log-file=/var/log/gluster.log
0 0
- crie um arquivo de dados /etc/datastore.vol example
volume mymedia-client-0
type protocol/client
option clnt-lk-version 1
option volfile-checksum 0
option volfile-key /mymedia
option client-version 3.8.12
option process-uuid server01.vn-7565-2017/10/03-02
option fops-version 1298437
option ping-timeout 42
option remote-host 192.168.10.79
option remote-subvolume /data01/brick
option transport-type socket
option transport.address-family inet
option send-gids true end-volume volume mymedia-client-1
type protocol/client
option clnt-lk-version 1
option volfile-checksum 0
option volfile-key /mymedia
option client-version 3.8.12
option process-uuid server01.vn-7565-2017/10/03-02
option fops-version 1298437
option ping-timeout 42
option remote-host 192.168.10.80
option remote-subvolume /data01/brick
option transport-type socket
option transport.address-family inet
option send-gids true end-volume volume mymedia-replicate-0
type cluster/replicate
subvolumes mymedia-client-0 mymedia-client-1 end-volume volume mymedia-client-2
type protocol/client
option ping-timeout 42
option remote-host 192.168.10.81
option remote-subvolume /data01/brick
option transport-type socket
option transport.address-family inet
option send-gids true end-volume volume mymedia-client-3
type protocol/client
option ping-timeout 42
option remote-host 192.168.10.82
option remote-subvolume /data01/brick
option transport-type socket
option transport.address-family inet
option send-gids true end-volume volume mymedia-replicate-1
type cluster/replicate
subvolumes mymedia-client-2 mymedia-client-3 end-volume volume mymedia-dht
type cluster/distribute
option lock-migration off
subvolumes mymedia-replicate-0 mymedia-replicate-1 end-volume volume mymedia-write-behind
type performance/write-behind
subvolumes mymedia-dht end-volume volume mymedia-read-ahead
type performance/read-ahead
subvolumes mymedia-write-behind end-volume volume mymedia-readdir-ahead
type performance/readdir-ahead
subvolumes mymedia-read-ahead end-volume volume mymedia-io-cache
type performance/io-cache
subvolumes mymedia-readdir-ahead end-volume volume mymedia-quick-read
type performance/quick-read
subvolumes mymedia-io-cache end-volume volume mymedia-open-behind
type performance/open-behind
subvolumes mymedia-quick-read end-volume volume mymedia-md-cache
type performance/md-cache
subvolumes mymedia-open-behind end-volume volume mymedia
type debug/io-stats
option log-level INFO
option latency-measurement off
option count-fop-hits off
subvolumes mymedia-md-cache end-volume volume meta-autoload
type meta
subvolumes mymedia end-volume
conteúdo vs fstab:
/etc/datastore.vol /media glusterfs defaults,_netdev,log-level=WARNING,log-file=/var/log/gluster.log 0 0