Difference between revisions of "Filesystems: Gluster"
Jump to navigation
Jump to search
| Line 9: | Line 9: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | === | + | === Create a storage pool === |
* Probe peers and check the status. Instructions below were exected on cal4 | * Probe peers and check the status. Instructions below were exected on cal4 | ||
<syntaxhighlight> | <syntaxhighlight> | ||
| Line 20: | Line 20: | ||
Uuid: 5ce71128-9143-424b-b407-c3d4e6a39cf1 | Uuid: 5ce71128-9143-424b-b407-c3d4e6a39cf1 | ||
State: Peer in Cluster (Connected) | State: Peer in Cluster (Connected) | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | === Create a distributed volume === | ||
| + | * Assuming <code>/gluster</code> is the location of the space you want to use on each node | ||
| + | * Transport is <code>tcp</code> in this instance as we are just using ethernet, <code>rdma</code> could be used if we had IB | ||
| + | * Not striping, you should use striped volumes only in high concurrency environments accessing very large files. <code>stripe X</code> | ||
| + | |||
| + | <syntaxhighlight> | ||
| + | root@cal4:~$ gluster volume create gluster-vol1 transport tcp cal4:/glusterfs cal3:/glusterfs | ||
| + | Creation of volume gluster-vol1 has been successful. Please start the volume to access data. | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | === Start the volume === | ||
| + | <syntaxhighlight> | ||
| + | root@cal4:~$ gluster volume start gluster-vol1 | ||
| + | Starting volume gluster-vol1 has been successful | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 16:05, 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-clientCreate a storage pool
- 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)Create a distributed volume
- Assuming
/glusteris the location of the space you want to use on each node - Transport is
tcpin this instance as we are just using ethernet,rdmacould be used if we had IB - Not striping, you should use striped volumes only in high concurrency environments accessing very large files.
stripe X
root@cal4:~$ gluster volume create gluster-vol1 transport tcp cal4:/glusterfs cal3:/glusterfs
Creation of volume gluster-vol1 has been successful. Please start the volume to access data.Start the volume
root@cal4:~$ gluster volume start gluster-vol1
Starting volume gluster-vol1 has been successful