| | 46 | |
| | 47 | = Glusterfs Cluster = |
| | 48 | * 20TB partitions are formatted using XFS and mounted with default options into ''/mnt/raid'' |
| | 49 | * ''/mnt/raid/gluster/meta'' - folder with cluster metadata |
| | 50 | * ''/mnt/raid/gluster/storage'' - storage |
| | 51 | * ''/etc/glusterfs/glusterd.vol'' on the storage nodes |
| | 52 | {{{ |
| | 53 | volume management |
| | 54 | type mgmt/glusterd |
| | 55 | option working-directory /mnt/raid/gluster/meta |
| | 56 | option transport-type socket,rdma |
| | 57 | option transport.rdma.bind-address 192.168.11.3 |
| | 58 | option transport.rdma.listen-port 24008 |
| | 59 | option transport.socket.keepalive-time 10 |
| | 60 | option transport.socket.keepalive-interval 2 |
| | 61 | option transport.socket.read-fail-log off |
| | 62 | end-volume |
| | 63 | }}} |
| | 64 | * ''/etc/glusterfs/glusterd.vol'' on the other nodes |
| | 65 | {{{ |
| | 66 | volume management |
| | 67 | type mgmt/glusterd |
| | 68 | option working-directory /var/lib/glusterd |
| | 69 | option transport-type socket,rdma |
| | 70 | option transport.rdma.bind-address 192.168.11.2 |
| | 71 | option transport.rdma.listen-port 24008 |
| | 72 | option transport.socket.keepalive-time 10 |
| | 73 | option transport.socket.keepalive-interval 2 |
| | 74 | option transport.socket.read-fail-log off |
| | 75 | end-volume |
| | 76 | }}} |
| | 77 | * All nodes of cluster should be registered from the master node with |
| | 78 | {{{ |
| | 79 | gluster peer probe 192.168.11.# |
| | 80 | }}} |
| | 81 | * Currently replicating storage is used, created with: |
| | 82 | {{{ |
| | 83 | gluster volume create storage replica 2 transport rdma 192.168.11.1:/mnt/raid/gluster/storage 192.168.11.3:/mnt/raid/gluster/storage |
| | 84 | gluster volume start storage |
| | 85 | }}} |
| | 86 | * Mounted with following line in ''fstab'' |
| | 87 | {{{ |
| | 88 | 192.168.11.1:storage /pdv glusterfs defaults 0 0 |
| | 89 | }}} |