Jay Vyas
2013-Sep-29 15:18 UTC
[Gluster-users] set up a Gluster 2 node cluster in two lines of code :)
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 git at forge.gluster.org: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 [vagrant at gluster1 ~]$ sudo touch /mnt/glusterfs/a [vagrant at gluster1 ~]$ ssh 10.10.10.12 [vagrant at gluster2 ~]$ 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.. -- Jay Vyas http://jayunit100.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20130929/147f23d4/attachment.html>
Justin Clift
2013-Sep-30 15:38 UTC
[Gluster-users] set up a Gluster 2 node cluster in two lines of code :)
On Sun, 29 Sep 2013 11:18:37 -0400 Jay Vyas <jayunit100 at gmail.com> wrote: <snip>> Just finished creating a vagrantized, fully automated, totally rebuildable > and teardownable two node fedora 19 gluster setup and shared it on the > forge!Sounds interesting. I've mostly seen people using Vagrant from OSX. Does it work from Fedora 19 or similar these days as well? :) Side note - Alex Drahon (CC'd) has been putting effort into a KVM extension/plugin/something for Vagrant, but I haven't actually tried it yet, so not sure if this would tie in to that: https://github.com/adrahon/vagrant-kvm :) + Justin -- Justin Clift <jclift at redhat.com>