5.配置对等性
在 ceph-adm(这里是ceph-mon1) 上运行 ssh-keygen 生成 ssh key 文件,注意 passphrase 是空,把 ssh key 拷贝到每一个 Ceph 节点上:
# mkdir ~/.ssh
# ssh-keygen -t rsa
Generatingpublic/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty forno passphrase):
Enter same passphrase again:
11.初始化 Ceph 硬盘,然后创建 osd 存储节点
查看一下 Ceph 存储节点的硬盘情况:
# ceph-deploy disk list ceph-osd1
# ceph-deploy disk list ceph-osd2
# ceph-deploy disk list ceph-osd3
擦出盘所有数据,注意,这里是磁盘,不是分区
# ceph-deploy disk zap ceph-osd1:/dev/sdb ceph-osd2:/dev/sdb ceph-osd3:/dev/sdb