openEuler 22.03
- Go to the /home directory, decompress the Ceph source package and go to the directory generated after decompression.
1cd /home && tar -zxvf ceph-14.2.8.tar.gz
- In the root directory of the Ceph source code, download and apply the 22.03_adaptation.patch file to adapt Ceph for openEuler 22.03.
1 2 3
wget https://gitee.com/kunpengcompute/ceph/raw/adpat-openeuler-22.03/patch/22.03_adaptation.patch cd ceph-14.2.8/ patch -p1 < ../22.03_adaptation.patch

- Pack the modified Ceph source code into a new package in the tar.bz2 format.
1cd /home && tar -zcvf ceph-14.2.8.tar.bz2 ceph-14.2.8
- Compile the new Ceph package.
1 2 3 4 5
rpmdev-setuptree cp ceph-14.2.8/ceph.spec /root/rpmbuild/SPECS/ cp ceph-14.2.8.tar.bz2 /root/rpmbuild/SOURCES/ cd /root/rpmbuild/SPECS/ rpmbuild -ba ceph.spec
Parent topic: Compiling Ceph