我要评分
获取效率
正确性
完整性
易理解

Compiling Server Installation Packages

The /home directory must be 32 GB or larger.

Ensure that the RPM package in step 3 of section 4.3 has been installed.

  1. Create a server directory.
    1
    mkdir -p /home/server
    
  2. Save ceph-14.2.8.tar.gz and globalcache-ceph-adaptor-server.patch to the /home/server directory. Decompress ceph-14.2.8.tar.gz and install the patch for the source code.
    1
    2
    3
    cd /home/server
    tar -zxvf ceph-14.2.8.tar.gz
    patch -p1 < globalcache-ceph-adaptor-server.patch
    
  3. Compile Ceph.

    To compile cephlib on the server, set -DCMAKE_BUILD_TYPE=release in do_cmake.sh. Otherwise, the debug package will be compiled.

    1
    2
    3
    4
    cd ceph-14.2.8
    sh do_cmake.sh
    cd build
    make -j64
    
  4. Create a temporary directory cephlib, copy the library files required by the server to the temporary directory, and package the files.
    1
    2
    3
    4
    5
    6
    7
    8
    mkdir -p /home/server/cephlib
    cp -r lib/libceph-common.so* /home/server/cephlib
    cp -r lib/librados.so* /home/server/cephlib
    cp -r lib/libcls_rgw.so* /home/server/cephlib
    cp -r lib/libcls_lock.so* /home/server/cephlib
    cp -r lib/librbd.so* /home/server/cephlib
    cd /home/server
    tar zcvf cephlib.tar.gz cephlib/