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

Installing the Global Cache RPM Package

  1. Install smartmontools.
    yum install smartmontools -y
  2. Manually create a Global Cache user and a user group.
    1
    2
    3
    4
    groupadd globalcache
    useradd -g globalcache -s /sbin/nologin globalcache
    useradd -g globalcache -s /sbin/nologin ccm
    useradd -g globalcache -s /bin/bash globalcacheop
    

    Set the password of the globalcacheop user.

    1
    passwd globalcacheop
    

    Set the umask value to 0027 for the globalcache, ccm, and globalcacheop users.

    1
    2
    3
    vi /home/globalcache/.bashrc
    vi /home/ccm/.bashrc
    vi /home/globalcacheop/.bashrc
    

    Add umask 0027 to the .bashrc file.

    1
    2
    3
    4
    5
    6
    7
    # Source default setting
    [ -f /etc/bashrc ] && . /etc/bashrc
    
    umask 0027
    # User environment PATH
    PATH="$HOME/.local/bin:$HOME/bin:$PATH"
    export PATH
    
    Add the query permission for systemctl-journal.
    1
    usermod -a -G systemd-journal globalcacheop
    
    Modify the /etc/sudoers file. Add the required O&M commands under root ALL=(ALL) ALL in the following figure for the globalcacheop user.
    1
    vi /etc/sudoers
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    globalcacheop ALL=(root) /usr/bin/systemctl start ccm
    globalcacheop ALL=(root) /usr/bin/systemctl stop ccm
    globalcacheop ALL=(root) /usr/bin/systemctl status ccm
    globalcacheop ALL=(root) /usr/bin/systemctl start globalcache
    globalcacheop ALL=(root) /usr/bin/systemctl stop globalcache
    globalcacheop ALL=(root) /usr/bin/systemctl status globalcache
    globalcacheop ALL=(root) /usr/bin/systemctl start GlobalCache.target
    globalcacheop ALL=(root) /usr/bin/systemctl stop GlobalCache.target
    globalcacheop ALL=(root) /usr/bin/systemctl status GlobalCache.target
    
  3. Install the Global Cache RPM package.
    1
    rpm -ivh boostkit-globalcache-release-1.3.15.oe1.aarch64.rpm
    
  4. Save the cephlib.tar.gz package obtained in Compiling Server Installation Packages to the /home directory, decompress the package, and copy the decompressed package to the /opt/gcache/lib/ directory.
    1
    2
    tar zxvf cephlib.tar.gz
    \cp cephlib/* /opt/gcache/lib/
    
  5. Assign a permission for the directory.
    1
    2
    chmod 550  /opt/gcache/lib/* 
    chown globalcache:globalcache -R /opt/gcache/lib/
    
  6. Copy the Ceph configuration to the /opt/gcache/ceph directory.
    1
    2
    3
    4
    cp /etc/ceph/ceph.conf /opt/gcache/ceph/
    cp /etc/ceph/ceph.client.admin.keyring /opt/gcache/ceph/
    chown globalcache:globalcache -R /opt/gcache/ceph/
    chmod 640 /opt/gcache/ceph/*
    

    After the RPM package is installed, an /opt/gcache directory is generated. The server programs and configuration files are stored in the /opt/gcache/bin and /opt/gcache/conf directories respectively.