欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ceph学习笔记 博客分类: linux linuxceph 

程序员文章站 2024-03-14 10:40:52
...
环境centos6.6
安装参考
http://ceph.com/docs/master/install/install-storage-cluster/
不过yum配置要改
yum install yum-plugin-priorities
vim /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1

ensure your YUM ceph.repo entry includes priority=2. See Get Packages for details:

[root@host-10-6-6-4 yum.repos.d]# cat ceph.repo 
[ceph]
name=Ceph packages for $basearch
#baseurl=http://ceph.com/rpm-{ceph-release}/{distro}/$basearch
baseurl=http://ceph.com/rpm-emperor/el6/$basearch
enabled=1
priority=2
gpgcheck=1
type=rpm-md
gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc

[ceph-noarch]
name=Ceph noarch packages
#baseurl=http://ceph.com/rpm-{ceph-release}/{distro}/noarch
baseurl=http://ceph.com/rpm-emperor/el6/noarch
enabled=1
priority=2
gpgcheck=1
type=rpm-md
gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc

[ceph-source]
name=Ceph source packages
#baseurl=http://ceph.com/rpm-{ceph-release}/{distro}/SRPMS
baseurl=http://ceph.com/rpm-emperor/el6/SRPMS
enabled=0
priority=2
gpgcheck=1
type=rpm-md
gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
[root@host-10-6-6-4 yum.repos.d]# 


注意上面几个变量替换掉了,如果出现找不到的情况

yum install snappy leveldb gdisk python-argparse gperftools-libs

yum install ceph
安装一堆啊

安装的历史
 1  yum update
    2  vim /etc/yum.repos.d/ceph.repo
    3  yum install ceph-deploy
    4  ssh-keygen 
    5  s
    6  l;s
    7  ls
    8  hostname admin
    9  exit
   10  ssh-copy-id root@mynode1_0
   11  vim /etc/hosts
   12  ifconfig
   13  vim /etc/hosts
   14  ssh-copy-id root@mynode1_0
   15  ssh-copy-id root@mynode1_1
   16  ssh-copy-id root@mynode1_2
   17  ssh root@mynode1_0
   18  ls
   19  mkdir .backup
   20  mv * .backup/
   21  ls
   22  vim .ssh/config
   23  ls
   24  chmod 600 ~/.ssh/config 
   25  ls
   26  iptables -F
   27  setenforce 0
   28  mkdir my-cluster
   29  cd my-cluster/
   30  ls
   31  ceph-deploy new mynode1_0
   32  ls
   33  vim ceph.conf 
   34  ls
   35  vim ceph.conf 
   36  ceph-deploy install admin mynode1_0 mynode1_1 mynode1_2
   37  ceph-deploy install  mynode1_1 mynode1_2
   38  ls
   39  ceph-deploy mon create-initial
   40  ls
   41  ssh mynode1_1
   42  ssh mynode1_2
   43  ceph-deploy osd prepare mynode1_1:/var/local/osd0 mynode1_2:/var/local/osd1
   44  ceph-deploy osd activate  mynode1_1:/var/local/osd0 mynode1_2:/var/local/osd1
   45  ls
   46  ceph-deploy admin admin mynode1_0 mynode1_1 mynode1_2
   47  chmod +r /etc/ceph/ceph.client.admin.keyring
   48  ceph health
   49  ssh mynode1_0
   50  ceph-deploy osd prepare mynode1_0:/var/local/osd2
   51  ceph-deploy osd activate mynode1_0:/var/local/osd2
   52  ceph -w
   53  ceph-deploy mds create mynode1_0
   54  ceph-deploy mon create mynode1_1 mynode1_2
   55  ceph quorum_status --format json-pretty
   56  ls
   57  history
[root@admin my-cluster]# 
相关标签: linux ceph