Skip to content

Instantly share code, notes, and snippets.

@ringe
Created October 23, 2012 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ringe/3939195 to your computer and use it in GitHub Desktop.
Save ringe/3939195 to your computer and use it in GitHub Desktop.
GlusterFS two-node replication with UCarp failover
$ sudo gluster volume info
Volume Name: data
Type: Replicate
Volume ID: 7ac35911-b9c2-4f20-a226-65a6173dafb3
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: gluster1:/data
Brick2: gluster2:/data
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.56.11
netmask 255.255.255.0
ucarp-vid 1
ucarp-vip 192.168.56.10
ucarp-password secret
ucarp-advskew 1
ucarp-advbase 1
ucarp-master yes
# The UCarp virtual network interface
iface eth0:ucarp inet static
address 192.168.56.10
netmask 255.255.255.0
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.56.12
netmask 255.255.255.0
ucarp-vid 1
ucarp-vip 192.168.56.10
ucarp-password secret
ucarp-advskew 10
ucarp-advbase 1
ucarp-master no
# The UCarp virtual network interface
iface eth0:ucarp inet static
address 192.168.56.10
netmask 255.255.255.0
/data 192.168.56.0/24(rw,async,no_subtree_check)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment