1.在ceph-admin上,部署ceph-deploy工具(僅在ceph-admin上)
#將rpm下載到本地,并使用yum安裝ceph-deploy
yum install ceph-deploy-1.5.34-0.noarch.rpm
2.創建ceph集群目錄,及授權(僅在ceph-admin上)
mkdir -p /my-cluster
chown myceph:myceph -R /my-cluster
3.在ceph-admin上,使用ceph-deploy創建集群
# 生成fsid
uuidgen
su - myceph
cd /my-cluster
ceph-deploy new ceph-node1-mon ceph-node4-mon ceph-node5-mon
# 編輯配置文件,添加ipublic network參數
vim /my-cluster/ceph.conf
[global]
fsid = 2aed34d1-b133-41cd-8a1d-6026138bef36
mon_initial_members = ceph-node1-mon, ceph-node4-mon, ceph-node5-mon
mon_host = 10.2.2.11,10.2.2.14,10.2.2.15
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
public network = 10.2.2.0/22
- 其中:public network = 10.2.2.0/22 #需要手動添加