小记,曾经的很多单骑,赵子龙,杨再兴,..............为大将者所应用的胆识和气度,值得敬仰!

名师出高徒啊,

周侗北宋末年之武术大师,相传为三国姜维的传人(真实性ruiy哥就不考察了哈),后拜少林派武师谭正芳为师,得少林武术真传;

大徒弟卢俊义

二徒弟林冲

三徒弟史文恭(虽是,叛徒坏人,但实力也是很可观的)

义子岳飞

不记名徒弟武松

以上非个人观点,看官自辨;

Advanced Package Tool (APT) For Debian and Ubuntu

Red Hat Package Manager (RPM) For Red Hat(rhel6), CentOS (el6), and Fedora 17-19 (f17-f19)

Yellowdog Updater, Modified (YUM)

咱不扯淡,俗话说的好,胜王,败寇;搞定即是王道,直接主题不瞎扯淡;

ceph配置 for centos6.4

1,yum repo配置整理

开源存储之ceph_centos

别的配置根据如下

开源存储之ceph_git_02

开源存储之ceph_git_03

setup ceph nodes

开源存储之ceph_centos_04

开源存储之ceph_git_05

开源存储之ceph_ubuntu_06

看看那sshpasswordless还是很重要的,在大数据,云环境,大多数分布式群集环境中多需要sshPDless,ruiy之前农工过sshPDless简单维护工具请感兴趣的另行;

倒是puppet,chef等数据中心群集配置管理不要ssh,但这又说回来了,人家这些可是C/S架构,有中央Server,他们内部通讯靠的是CS以维护的信任证书;

配置ceph节点

开源存储之ceph_centos_07

下面就是配置ceph中央服务器池与从节点间的sshpasswordless;

http://ceph.com/docs/master/start/quick-start-preflight/

快速搞定,仅仅是案例脚本,请根据你的具体测试或是应用场景环境自行简单修改;

#!/bin/bash


git clone https://github.com/ceph/ceph-ansible.git

sed -i '' 's/fsid: /fsid: 4a158d27-f750-41d5-9e7f-26ce4c9d2d45 /' ceph-ansible/group_vars/all

sed -i '' 's/monitor_secret: /monitor_secret: AQAWqilTCDh7CBAAawXt6kyTgLFCxSvJhTEmuw== /' ceph-ansible/group_vars/mons


cat > Vagrantfile << EOF

VAGRANTFILE_API_VERSION = "2"


Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  config.vm.box = "precise64"

  config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"

  config.vm.define :cephaio do |cephaio|

    cephaio.vm.network :private_network, ip: "192.168.0.2"

    cephaio.vm.host_name = "cephaio"

    (0..2).each do |d|

      cephaio.vm.provider :virtualbox do |vb|

        vb.customize [ "createhd", "--filename", "disk-#{d}", "--size", "1000" ]

        vb.customize [ "storageattach", :id, "--storagectl", "SATA Controller", "--port", 3+d, "--device", 0, "--type", "hdd", "--medium", "disk-#{d}.vdi" ]

        vb.customize [ "modifyvm", :id, "--memory", "512" ]

      end

    end

    config.vm.provision "ansible" do |ansible|

      ansible.playbook = "ceph-ansible/site.yml"

      ansible.groups = {

        "mons" => ["cephaio"],

        "osds" => ["cephaio"],

        "mdss" => ["cephaio"],

        "rgws" => ["cephaio"]

      }

    end

  end

end

EOF

vagrant up