# 安裝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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
