이 콘텐츠는 선택한 언어로 제공되지 않습니다.

14.2. Upgrading Container-Ready Storage


  1. Upgrade the Red Hat Gluster Storage cluster. Refer In-Service Software Upgrade.
  2. Upgrade Heketi by executing the following commands on the Red Hat Gluster Storage node where Heketi is running::
    1. Backup the Heketi database file
      # cp -a /var/lib/heketi/heketi.db /var/lib/heketi/heketi.db.`date +%s`.`heketi --version | awk '{print $2}'`
      Copy to Clipboard Toggle word wrap
    2. Update Heketi by executing the following command in one of the Red Hat Gluster Storage nodes where Heketi is running:
      # yum update heketi
      Copy to Clipboard Toggle word wrap
    3. To use gluster block, add the following two parameters to the glusterfs section in the heketi configuration file at /etc/heketi/heketi.JSON:
      auto_create_block_hosting_volume
      block_hosting_volume_size
      Copy to Clipboard Toggle word wrap
      Where:
      auto_create_block_hosting_volume: Creates Block Hosting volumes automatically if not found or if the existing volume is exhausted. To enable this, set the value to true.
      block_hosting_volume_size: New block hosting volume will be created in the size mentioned. This is considered only if auto_create_block_hosting_volume is set to true. Recommended size is 500G.
      For example:
      .....
      .....
      "glusterfs" : {
      
      
                      "executor" : "ssh",
      
                      "db" : "/var/lib/heketi/heketi.db",
      
                      "sshexec" : {
                      "rebalance_on_expansion": true,
                      "keyfile" : "/etc/heketi/private_key"
                      },
      
                      "auto_create_block_hosting_volume": true,
      
                      "block_hosting_volume_size": 500G
              },
      .....
      .....
      
      
      Copy to Clipboard Toggle word wrap
    4. Restart the Heketi service:
      # systemctl restart heketi
      Copy to Clipboard Toggle word wrap
  3. Execute the following command to install gluster block:
    # yum install gluster-block
    Copy to Clipboard Toggle word wrap
  4. Enable and start the gluster block service:
    # systemctl enable gluster-blockd
    # systemctl start gluster-blockd
    Copy to Clipboard Toggle word wrap
  5. Execute the following command to update the heketi client and cns-deploy packages
    # yum install cns-deploy -y
    # yum update cns-deploy -y 
    # yum update heketi-client -y
    Copy to Clipboard Toggle word wrap
  6. Execute the following commands to deploy the gluster-block provisioner:
    # sed -e 's/\\\${NAMESPACE}/<NAMESPACE>/' /usr/share/heketi/templates/glusterblock-provisioner.yaml | oc create -f -
    Copy to Clipboard Toggle word wrap
    # oadm policy add-cluster-role-to-user glusterblock-provisioner-runner system:serviceaccount:<NAMESPACE>:glusterblock-provisioner
    Copy to Clipboard Toggle word wrap
    For example:
    # sed -e 's/\\\${NAMESPACE}/storage-project/' /usr/share/heketi/templates/glusterblock-provisioner.yaml | oc create -f -
    Copy to Clipboard Toggle word wrap
    # oadm policy add-cluster-role-to-user glusterblock-provisioner-runner system:serviceaccount:storage-project:glusterblock-provisioner
    Copy to Clipboard Toggle word wrap
  7. Support for S3 compatible Object Store is under technology preview. To enable S3 compatible object store, refer Chapter 18, S3 Compatible Object Store in a Container-Native Storage Environment.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat