centos7.2安装ceph
时间: 2023-11-09 13:00:18 浏览: 119
安装 Ceph 需要以下步骤:
1. 添加 Ceph 源
```
sudo tee /etc/yum.repos.d/ceph.repo <<EOF
[Ceph]
name=Ceph packages for $basearch
baseurl=https://download.ceph.com/rpm-jewel/el7/$basearch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
[ceph-noarch]
name=Ceph noarch packages
baseurl=https://download.ceph.com/rpm-jewel/el7/noarch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
[ceph-source]
name=Ceph source packages
baseurl=https://download.ceph.com/rpm-jewel/el7/SRPMS
enabled=0
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
EOF
```
2. 安装 Ceph
```
sudo yum install ceph -y
```
3. 配置 Ceph
```
sudo ceph-deploy new {hostname}
sudo ceph-deploy install {hostname}
sudo ceph-deploy mon create-initial
sudo ceph-deploy admin {hostname}
```
4. 创建 OSD
```
sudo ceph-deploy osd create --data /dev/sdb {hostname}
```
阅读全文