Installing the Ceph Software
Install the Ceph software on all nodes and install the ceph-deploy tool on ceph1 to facilitate cluster deployment.
- Set the Yum certificate verification status on all nodes to be verification-free.
- Open the yum.conf file.
1
vi /etc/yum.conf
- Press i to enter the insert mode and add the following content to the end of the file:
1 2
sslverify=false deltarpm=0
- Press Esc to exit the insert mode. Type :wq! and press Enter to save and exit the file.
- Open the yum.conf file.
- Install gperftools on all nodes.
In the Yum repository of an openEuler LTS SP release, gperftools-libs 2.8.1 uses the source code of gperftools-libs 2.8.0, which has bugs. Therefore, the RPM package of gperftools-libs 2.8.1 cannot be used.
You are advised to download the RPM packages of gperftools-devel-2.7.7 and gperftools-libs-2.7.7 from the Yum repository of an openEuler LTS release and configure it as the local repository.
- Download the RPM packages of gperftools-devel-2.7.7 and gperftools-libs-2.7.7.
1 2 3 4
mkdir -p /home/gperftools-2.7-7 && cd /home/gperftools-2.7-7 wget --no-check-certificate https://repo.openeuler.org/openEuler-20.03-LTS/OS/aarch64/Packages/gperftools-devel-2.7-7.oe1.aarch64.rpm wget --no-check-certificate https://repo.openeuler.org/openEuler-20.03-LTS/OS/aarch64/Packages/gperftools-libs-2.7-7.oe1.aarch64.rpm createrepo .
- Open the /etc/yum.repos.d/openEuler.repo file.
vi /etc/yum.repos.d/openEuler.repo
- Press i to enter the insert mode and add the following content to the end of the file:
1 2 3 4 5 6
[gperftools-2.7-7] name=gperftools-2.7-7 baseurl=file:///home/gperftools-2.7-7 enabled=1 gpgcheck=0 priority=1
- Press Esc to exit the insert mode. Type :wq! and press Enter to save and exit the file.
- Download the RPM packages of gperftools-devel-2.7.7 and gperftools-libs-2.7.7.
- Install Ceph on all nodes.
1 2
dnf -y install librados2-14.2.8 ceph-14.2.8 pip install prettytable werkzeug
If the installation fails, configure pip to download from Huawei Mirrors based on 3, so as to accelerate the download.
- Install ceph-deploy on ceph1.
1
pip install ceph-deploy
- Adapt ceph-deploy to openEuler.
- Open the __init__.py file of ceph_deploy on ceph1.
- On openEuler 20.03:
1
vi /lib/python2.7/site-packages/ceph_deploy/hosts/__init__.py
- On openEuler 22.03:
1
vi /lib/python3.9/site-packages/ceph_deploy/hosts/__init__.py
The default Python version is 2.7 on openEuler 20.03 and 3.9 on openEuler 22.03.
- On openEuler 20.03:
- Press i to enter the insert mode and add the following code to the _get_distro function:
'openeuler':fedora,
- Press Esc to exit the insert mode. Type :wq! and press Enter to save and exit the file.
- Open the __init__.py file of ceph_deploy on ceph1.
- View the Ceph version on each node.
1
ceph -v
The command output is as follows:
1
ceph version 14.2.8 (2d095e947a02261ce61424021bb43bd3022d35cb) nautilus (stable)
Parent topic: Deploying a Ceph Cluster