Comments on How to install GlusterFS with a replicated volume over 2 nodes on Ubuntu 14.04

How to install GlusterFS with a replicated volume over 2 nodes on Ubuntu 14.04 In this tutorial I will explain GlusterFS configuration in Ubuntu 14.04. GlusterFS is an open source distributed file system which provides easy replication over multiple storage nodes. Gluster File System is a distributed filesystem allowing you to create a single volume of storage which spans multiple disks, multiple machines and even multiple data centres.

8 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Eric

Hi!

Great instructions. I'm wondering if you have been able to succesfful created a Volume from a Brick(s) that are CIFS-mounted ZFS datasets? For instance, say you have ZFS-server:/dataset/subset mounted to /localhost/mnt, you then want to create a volume using "/localhost/mnt" as the Brick.

 

Have you been able to successfully create a volume over a mounted directory?

 

Thanks!

By: An M

Excellent guide. Just missing the 'now mount the volume', for example

sudo mount -t glusterfs gluste1:datapoint /mnt/storage

By: Andrea

Have followed the instructions on Ubunt 14.04, and my two peers are connected, they see each other, and the volume is mounted and visible by both servers too.

However, when I create a text file in one server, it is not replicated in the other (or vice-versa).

andrea@gluster1:~$ sudo gluster peer status[sudo] password for andrea: Number of Peers: 1Hostname: gluster2Uuid: cd9e031a-f9f6-44a1-9a54-ba87ddf59451State: Peer in Cluster (Connected)

andrea@gluster2:~$ sudo gluster peer status[sudo] password for andrea: Number of Peers: 1Hostname: gluster1Uuid: 37df0846-aa0b-43f7-9add-14e73fe108b6State: Peer in Cluster (Connected)

 

andrea@gluster2:~$ sudo gluster volume statusStatus of volume: datapointGluster process                             TCP Port  RDMA Port  Online  Pid------------------------------------------------------------------------------Brick gluster1:/media/andrea/storage/gluster                                           49153     0          Y       9466 Brick gluster2:/media/andrea/storage/gluster                                           49152     0          Y       2850 NFS Server on localhost                     2049      0          Y       3405 Self-heal Daemon on localhost               N/A       N/A        Y       3414 NFS Server on gluster1                      2049      0          Y       9715 Self-heal Daemon on gluster1                N/A       N/A        Y       9723 Task Status of Volume datapoint------------------------------------------------------------------------------There are no active volume tasksAll seems ok, but I just cant get the file to replicate :(

 

andrea@gluster2:~$ 

 

By: Eldirc

Nice post, thanks so much for the tutorial!!!

By: sergiu

mkdir /home/share

mount -t glusterfs gluster1:datapoint /home/share

now everything you copy into share directory is replicated on all servers.

 

By: Jonathan Krause

I have tried to create a volume many times and I keep getting this error:

 

root@server1:/# gluster volume create volume1 replica 2 transport tcp wordpress-1:/mnt/gluster-storage  wordpress-2:/mnt/gluster-storage force

volume create: volume1: failed: Glusterfs is not supported on brick: wordpress-1:/mnt/gluster-storage.

Setting extended attributes failed, reason: Operation not permitted.

 

However when I do a peer status they are both seeing each other and showing as connected, I am sure there is something very simple I am forgetting if anyone could shed light on this for me I would be very appreciative

 

 

By: Me

same issue here! Did anyone manage to understand the reason?

By: omfg

Idont know why but always get this message even if i mount or un mount disk from directory whatever. 

volume create: datapoint: failed: /vms/gluster is already part of a volume

Is there any reason for this?