Created
October 23, 2012 14:46
-
-
Save ringe/3939195 to your computer and use it in GitHub Desktop.
GlusterFS two-node replication with UCarp failover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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