Tuesday, October 09, 2012

Installing Gluster on CentOS 6.3

Download the packages,
wget -l 1 -nd -nc -r -A.rpm http://download.gluster.com/pub/gluster/glusterfs/LATEST/CentOS
 Install the packages, including RDMA packages for InfiniBand,
yum install glusterfs-3.3.0-1.el6.x86_64.rpm glusterfs-fuse-3.3.0-1.el6.x86_64.rpm glusterfs-geo-replication-3.3.0-1.el6.x86_64.rpm glusterfs-rdma-3.3.0-1.el6.x86_64.rpm glusterfs-server-3.3.0-1.el6.x86_64.rpm

To create a volume that works on both RDMA and TCP, below command should be used:
gluster volume create VOLNAME  transport tcp,rdma BRICKS
Later, to mount it on RDMA transport, use mount command like below:
mount -t glusterfs IP:/VOLNAME.rdma /mount/point
To mount the tcp volume it will be just,
mount -t glusterfs IP:/VOLNAME /mount/point
Example:
gluster> volume create test-volume transport tcp,rdma 192.168.0.104:/test-volume
Creation of volume test-volume has been successful. Please start the volume to access data.
gluster> volume list
test-volume
gluster> volume info
Volume Name: test-volume
Type: Distribute
Volume ID: 07153b66-06ea-4025-97cf-8ae8f0cfc09a
Status: Created
Number of Bricks: 1
Transport-type: tcp,rdma
Bricks:
Brick1: 192.168.0.104:/test-volume
gluster> volume start test-volume
Starting volume test-volume has been successful



No comments: