Skip to content

Instantly share code, notes, and snippets.

@freshteapot
Created November 8, 2013 01:06
Show Gist options
  • Save freshteapot/7364613 to your computer and use it in GitHub Desktop.
Save freshteapot/7364613 to your computer and use it in GitHub Desktop.
Based on: http://www.sebastien-han.fr/blog/2013/04/22/play-with-ceph-vagrant-box/ This version, at least worked for me using the "2" format.
Vagrant.configure("2") do |config|
config.vm.define :ceph do |role|
role.vm.box = "big-ceph"
role.vm.network :private_network, ip: "192.168.251.100"
role.vm.hostname = "ceph"
end
config.vm.define :client do |role|
role.vm.box = "ubuntu1304"
role.vm.hostname = "ceph-client"
role.vm.provision :shell, :path => "setup/ceph.sh"
role.vm.network :private_network, ip: "192.168.251.101"
end
end
@freshteapot
Copy link
Author

Once you get onto the client...

sudo rados mkpool foo
sudo rados -p foo ls -
echo "Hello World" > abc.txt
sudo rados -p foo put foo.1 abc.txt
sudo rados -p foo ls -
sudo rados -p foo get foo.1 -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment