ceph_deploy部署ceph分散式檔案系統

CL.TANG發表於2016-10-18

1.前期準備:centos6.5 minimal版本3臺

選擇其中一臺作為一個安裝節點,能無密碼登入其他機器。ssh-keygen

ssh-keygen -i ~/.ssh/id_rsa.pub node1 node2 node3

2.

命令:

yum install cepy-deploy -y

所有節點安裝lsb

yum install lsb -y

關閉防火牆,後面osd服務會向mon服務請求6789埠,防火牆開了訪問不了

service iptables stop

建立mon

ceph-deploy new node1 node2 node3

ceph-deploy mon create-initial

 

建立osd

在所有的osd伺服器上執行:

mkdir -p  /var/lib/ceph/osd

mkdir -p /var/lib/ceph/osd

 

執行命令

ceph-deploy prepare node1:/usr/local/ceph01 node2:/usr/local/ceph02 node3:/usr/local/ceph03

ceph-deploy activate node1:/usr/local/ceph01 node2:/usr/local/ceph03 node3:/usr/local/ceph03

 

最後執行

ceph -s

如果報錯:

ceph-deploy gatherkeys node1

ceph-deploy gatherkeys node2

ceph-deploy gatherkeys node3

 

如果正常,OK

 

相關文章