> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/andoid-shou-ji/pomoxve/xu-ni-ji-shi-zhan-ying-yong-jian-gou-ceph-chu-cun-cong-ji/an-zhuang-cockpit-ceph-guan-li-gong-ju.md).

# 安裝ceph儲存叢集

## 安裝

```
apt-cache policy ceph
sudo apt-get update && sudo apt-get install ceph
ceph -v
```

### 準備

這裏使用 ceph-deploy 來部署三節點的ceph集群，節點信息如下:

```
10.99.0.1               node1.kawsing.idv node1
10.99.0.2               node2.kawsing.idv node2
10.99.0.3               node3.kawsing.idv node3
```

所有操作均在 node1 節點進行操作

ssh互信

```
# ssh-keygen -t rsa -P ''
# ssh-copy-id -i .ssh/id_rsa.pub root@10.99.0.2
# ssh-copy-id -i .ssh/id_rsa.pub root@10.99.0.3
```

安裝ansible

```
# apt -y install ansible
# cat /etc/ansible/hosts | grep -v ^# | grep -v ^$
[node]
192.168.100.117
192.168.100.118
```
