码迷,mamicode.com
首页 > 其他好文 > 详细

开源存储之ceph

时间:2014-05-05 23:47:45      阅读:397      评论:0      收藏:0      [点我收藏+]

标签:des   style   java   tar   ext   color   

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

名师出高徒啊,

周侗北宋末年之武术大师,相传为三国姜维的传人(真实性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配置整理

bubuko.com,布布扣

别的配置根据如下

bubuko.com,布布扣

bubuko.com,布布扣

setup ceph nodes

bubuko.com,布布扣

bubuko.com,布布扣

bubuko.com,布布扣

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

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

配置ceph节点

bubuko.com,布布扣

下面就是配置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

开源存储之ceph,布布扣,bubuko.com

开源存储之ceph

标签:des   style   java   tar   ext   color   

原文地址:http://www.cnblogs.com/ruiy/p/ceph.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!