Difference between revisions of "GlusterFS"
StefanKania (talk | contribs) |
StefanKania (talk | contribs) |
||
Line 28: | Line 28: | ||
* Two hosts with two network cards | * Two hosts with two network cards | ||
* An empty partition of 2GB to create the volume on each host | * An empty partition of 2GB to create the volume on each host | ||
− | * | + | * Two IP addresses from your production network |
* Two IP addresses for the heartbeat network | * Two IP addresses for the heartbeat network | ||
* The GlusterFS packages version 7.x | * The GlusterFS packages version 7.x | ||
+ | |||
+ | ==Hostnames and IPs== | ||
+ | Here you see two tables with the used IP-addresses on both hosts. | ||
+ | ===production network=== | ||
+ | If a client should connect to the Gluster-cluster an IP-address from the production network is used. | ||
+ | {|class="wikitable" | ||
+ | ! style="text-align:left;"| Hostname | ||
+ | ! IP-address | ||
+ | |- | ||
+ | |cluster-01 | ||
+ | |192.168.56.101 | ||
+ | |- | ||
+ | |cluster-02 | ||
+ | |192.168.56.102 | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | ===Heartbeat network=== | ||
+ | The heartbeat network is only for the communication between the Gluster-nodes | ||
+ | {|class="wikitable" | ||
+ | ! style="text-align:left;"| Hostname | ||
+ | ! IP-address | ||
+ | |- | ||
+ | |c-01 | ||
+ | |192.168.57.101 | ||
+ | |- | ||
+ | |c-02 | ||
+ | |192.168.57.102 | ||
+ | |- | ||
+ | |} |
Revision as of 17:40, 21 February 2020
Contents
Fundamentals
GlusterFS is a free and open source scalable filesystem it can be used for cloud storage or to store data in a local network. It can be used to set up an active-active filesystem cluster with failover and loadbalancing via DNS-round robin. Together with CTDB it is possible to build a fileserver for a network with the following advantages:
- Expandable without downtime
- Mount Gluster volumes via the network
- Posix ACL support
- Different configurations possible (depending of your needs)
- Self-healing
- Support of snapshots if LVM2 thinly provisioned is used for the bricks
The different configurations available are:
- Replicated Volume
- Distributed Volume
- Striped Volume
- Replicated-Distributed Volume
- Dispersed Volume
To read more about the different configurations see:
![]() | This article is part of CTDB-setup so it just shows how to setup a replicated volume to be used with CTDB. The setup will be a two node replicated volume with 2GB diskspace, so it will be easy to reproduce the setup. |
What you need
- Two hosts with two network cards
- An empty partition of 2GB to create the volume on each host
- Two IP addresses from your production network
- Two IP addresses for the heartbeat network
- The GlusterFS packages version 7.x
Hostnames and IPs
Here you see two tables with the used IP-addresses on both hosts.
production network
If a client should connect to the Gluster-cluster an IP-address from the production network is used.
Hostname | IP-address |
---|---|
cluster-01 | 192.168.56.101 |
cluster-02 | 192.168.56.102 |
Heartbeat network
The heartbeat network is only for the communication between the Gluster-nodes
Hostname | IP-address |
---|---|
c-01 | 192.168.57.101 |
c-02 | 192.168.57.102 |