This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ceph-deploy disk list ceph-client | |
ceph-deploy disk zap ceph-client:/dev/sdb | |
ceph-deploy disk prepare ceph-client:/dev/sdb | |
ceph-deploy disk activate ceph-client:/dev/sdb | |
--- | |
ceph osd lspools | |
ceph auth list | |
ceph auth get-key client.images | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define :node1 do |node1| | |
node1.vm.box = "centos65" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#coding=utf-8 | |
for host in "$@" | |
do | |
echo $host | |
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@$host "useradd -d /home/ceph -m ceph; echo password | passwd ceph; echo 'ceph ALL = (root) NOPASSWD:ALL' | tee /etc/sudoers.d/ceph; chmod 0440 /etc/sudoers.d/ceph;" | |
done | |
echo "usage: create_ceph_user.sh host1 host2 host3" |
NewerOlder