Deploying a Ceph Cluster
- Create a local repository.
- Install the tool. Perform this step only for CentOS 7.6. Skip it for openEuler 20.03.
1yum -y install createrepo
- Create a /home/ecturbo_rpm directory and copy the created RPM packages to the directory.
1 2 3
mkdir /home/ecturbo_rpm cp /home/rpmbuild/RPMS/aarch64/* /home/ecturbo_rpm cp /home/rpmbuild/RPMS/noarch/* /home/ecturbo_rpm
- Go to /home/ecturbo_rpm and generate repodata.
1 2
cd /home/ecturbo_rpm createrepo ./
- Go to /etc/yum.repos.d and create a my_ceph_local.repo file.
1 2
cd /etc/yum.repos.d vim my_ceph_local.repo
- Press i to enter the insert mode and edit the my_ceph_local.repo file. Add the information of Ceph and oath.
- On CentOS 7.6:
1 2 3 4 5
[myceph] name=myceph baseurl=file:///home/ecturbo_rpm enabled=1 gpgcheck=0
- On openEuler 20.03:
1 2 3 4 5 6 7 8 9 10 11
[myceph] name=myceph baseurl=file:///home/ecturbo_rpm enabled=1 gpgcheck=0 [local-oath] name=local-oath baseurl=file:///home/rpm/oath enabled=1 gpgcheck=0
- On CentOS 7.6:
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Update the Yum cache.
1 2
yum clean all yum makecache
- Install the tool. Perform this step only for CentOS 7.6. Skip it for openEuler 20.03.
- Install Ceph.
For details, see Installing the Ceph Software in the Ceph Block Storage Deployment Guide (CentOS 7.6 & openEuler 20.03).
- In the Deployment Guide, the Ceph mirror is the official Ceph mirror, which is a Ceph RPM package that does not contain the EC Turbo feature. Therefore, you need to install Ceph using the local repository.
- Before installing Ceph, run the yum list | grep ceph command to ensure that Ceph is installed from the local repository. In the command, myceph is the name of the repository where Ceph components are installed.
- When installing Ceph, you may need to install other third-party software. Ensure that the network connection is normal.
Parent topic: Compiling and Deploying Ceph