Difference between revisions of "Filesystems: Gluster"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
Setup tested using ubuntu 12.10 on calxeda hardware. Steps should be applicable on most linux distros. In this configuration we are using 2 hosts which act both as servers and clients. | Setup tested using ubuntu 12.10 on calxeda hardware. Steps should be applicable on most linux distros. In this configuration we are using 2 hosts which act both as servers and clients. | ||
| − | * Gluster is installed on 2 hosts | + | * Gluster is installed on 2 hosts (cal3 and cal4) |
* A gluster filesystem is created across 2 hosts | * A gluster filesystem is created across 2 hosts | ||
* Both hosts then mount the glusterfs | * Both hosts then mount the glusterfs | ||
| Line 7: | Line 7: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
apt-get -y install gluster-server gluster-client | apt-get -y install gluster-server gluster-client | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | === Setup the Gluster servers === | ||
| + | * Probe peers and check the status. Instructions below were exected on cal4 | ||
| + | <syntaxhighlight> | ||
| + | root@cal4:~$ gluster peer probe cal3 | ||
| + | Probe successful | ||
| + | root@cal4:~$ gluster peer status | ||
| + | Number of Peers: 1 | ||
| + | |||
| + | Hostname: cal3 | ||
| + | Uuid: 5ce71128-9143-424b-b407-c3d4e6a39cf1 | ||
| + | State: Peer in Cluster (Connected) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 15:54, 12 July 2012
Setup tested using ubuntu 12.10 on calxeda hardware. Steps should be applicable on most linux distros. In this configuration we are using 2 hosts which act both as servers and clients.
- Gluster is installed on 2 hosts (cal3 and cal4)
- A gluster filesystem is created across 2 hosts
- Both hosts then mount the glusterfs
Install Gluster
apt-get -y install gluster-server gluster-clientSetup the Gluster servers
- Probe peers and check the status. Instructions below were exected on cal4
root@cal4:~$ gluster peer probe cal3
Probe successful
root@cal4:~$ gluster peer status
Number of Peers: 1
Hostname: cal3
Uuid: 5ce71128-9143-424b-b407-c3d4e6a39cf1
State: Peer in Cluster (Connected)