<meta name="source" content="lake">
镜像网站
- 网易云:http://mirrors.163.com/ceph/
- 清华tuna:https://mirrors.tuna.tsinghua.edu.cn/ceph/
- 阿里云:https://mirrors.aliyun.com/ceph/
安装ceph deploy
<pre class="cm-s-default" style="color: rgb(89, 89, 89); margin: 0px; padding: 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0);">yum install -y https://mirrors.tuna.tsinghua.edu.cn/ceph/rpm-mimic/el7/noarch/ceph-deploy-2.0.1-0.noarch.rpm</pre>
创建Ceph集群
<pre class="cm-s-default" style="color: rgb(89, 89, 89); margin: 0px; padding: 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0);">ceph-deploy new [monitor node] [monitor node] ...</pre>
安装ceph
<pre class="cm-s-default" style="color: rgb(89, 89, 89); margin: 0px; padding: 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0);">ceph-deploy install [hostname] [hostname] ...</pre>
初始化monitor
<pre class="cm-s-default" style="color: rgb(89, 89, 89); margin: 0px; padding: 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0);">ceph-deploy mon create-initial ceph-deploy admin [hostname]</pre>
添加mgr节点
<pre class="cm-s-default" style="color: rgb(89, 89, 89); margin: 0px; padding: 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0);">ceph-deploy mgr create [hostname]</pre>
添加osd节点
<pre class="cm-s-default" style="color: rgb(89, 89, 89); margin: 0px; padding: 0px; background: none 0% 0% / auto repeat scroll padding-box border-box rgba(0, 0, 0, 0);">ceph-deploy osd create --data <device> <hostname></pre>