gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gluster-devel] set up a Gluster 2 node cluster in two lines of code :)


From: Jay Vyas
Subject: [Gluster-devel] set up a Gluster 2 node cluster in two lines of code :)
Date: Sun, 29 Sep 2013 11:18:37 -0400

Hi gluster !

For those of you who need to spin up virtual gluster clusters for development and testing:

Just finished creating a vagrantized, fully automated, totally rebuildable and teardownable two node fedora 19 gluster setup and shared it on the forge!  

It uses fedora19 but since its all vagrant powered, you dont need to grab or download a distro or iso or anything, just clone the git repo, run vagrant up, and let vagrant automagically pull down and manage your base box and set up the rest for you.

clone it here: https://forge.gluster.org/vagrant

So what does this do? This basically means that you can spin up 2 vms , from scratch, by installing vagrant and then, literally, typing:

git clone address@hidden:vagrant/fedora19-gluster.git
cd fedora19-gluster
ln -l Vagrantfile_cluster Vagrantfile
vagrant up --provision


Does it work? Yes !  After watching it spin up , you can ssh in to the cluster by typing:

vagrant ssh gluster1

And destroy the same two node cluster by running:

vagrant destroy

.............................. Example .........................................

#Below : ssh into the first node, create a file, and ls it in the other node to confirm that the cluster is working.

[jays-macbook]$ vagrant ssh gluster1

address@hidden ~]$ sudo touch /mnt/glusterfs/a

address@hidden ~]$ ssh 10.10.10.12

address@hidden ~]$ ls /mnt/glusterfs/

Help wanted to maintain this and make development clusters for different
gluster use cases.

- bug reporting
- testing functionality of different tuning/config options
- testing hadoop interop

..........

Will blog post about it soon , but till then just ping me if you want to get involved etc..


reply via email to

[Prev in Thread] Current Thread [Next in Thread]