此内容没有您所选择的语言版本。

Chapter 8. Upgrading Red Hat Gluster Storage to Red Hat Enterprise Linux 7


This chapter describes the procedure to upgrade from Red Hat Enterprise Linux 6 based Red Hat Gluster Storage to Red Hat Enterprise Linux 7 based Red Hat Gluster Storage.

Important

Be aware of the following when upgrading a Gluster node from RHEL 6 to RHEL 7:
  • While performing an upgrade from RHEL 6 to RHEL 7 if you need any help, contact Red Hat Support with details.
  • Upgrading from RHEL 6 to RHEL 7 is an offline procedure which results in Gluster node downtime, as volumes are offline during the upgrade process.
  • Servers must be upgraded prior to upgrading clients.

8.1. Preparing System for Upgrade

  1. Migrate from Red Hat Network Classic to Red Hat Subscription Manager

    Verify that your system is not on the legacy Red Hat Network Classic update system:
    # migrate-rhs-classic-to-rhsm --status
    Copy to Clipboard Toggle word wrap
    If the system is not on Red Hat Network Classic, skip this step
    If the system is on Red Hat Network Classic, migrate to Red Hat Subscription Manager using: Migrating from RHN to RHSM in Red Hat Enterprise Linux.
  2. Register the system with Subscription Manager

    Important

    If the system is already registered using Subscription Manager, skip the registrations steps and start the backup of the Gluster configuration files.
    To register the system with Red Hat Network, execute the following command and enter your Red Hat Network user name and password that have the RHEL entitlements:
    # subscription-manager register --username=user_name --password=password
    Copy to Clipboard Toggle word wrap
  3. Identify the available entitlement pools

    Find the entitlement pools containing the RHEL 6 repositories:
    # subscription-manager list --available
    Copy to Clipboard Toggle word wrap
  4. Attach entitlement pool to the system

    Use the pool identifier located in the previous step to attach the RHEL 6 entitlements to the system:
    # subscription-manager attach --pool=pool_ID
    Copy to Clipboard Toggle word wrap
  5. Enable repositories

    Enable the RHEL 6, scalefs, and Red Hat Gluster Storage repositories:
    # subscription-manager repos --enable=rhel-6-server-rpms --enable=rhel-scalefs-for-rhel-6-server-rpms --enable=rhs-3-for-rhel-6-server-rpms
    Copy to Clipboard Toggle word wrap
  6. Backup the Gluster configuration files

    Note

    It is recommended to make a complete backup using a reliable backup solution before you update your system. This Knowledge Base solution covers one possible approach: https://access.redhat.com/solutions/1484053.
    1. Ensure that the following configuration directories and files are backed up:
      • /var/lib/glusterd
      • /etc/glusterfs
    2. For systems with samba-ctdb enabled cluster, create a new directory to store the backup:
      # mkdir backup_folder_name
      # cd backup_folder_name
      Copy to Clipboard Toggle word wrap
    3. Execute the following command to take a backup samba-ctdb data:
      for each in `ctdb getdbmap | grep PERSISTENT | cut -d" " -f2 | cut -d":" -f2`; do echo $each ; ctdb backup_folder_name $each ${each}.bak; done
      Copy to Clipboard Toggle word wrap
  7. Stop all Gluster services, volumes, and processes

    1. Stop any geo-replication sessions:
      # gluster volume geo-replication MASTER_VOL SLAVE_HOST::SLAVE_VOL stop
      Copy to Clipboard Toggle word wrap
    2. Stop the Nagios process:
      # service nrpe stop
      Copy to Clipboard Toggle word wrap
    3. Stop all volumes:
      # for vol in `gluster volume list`; do gluster --mode=script volume stop $vol; sleep 2s; done
      Copy to Clipboard Toggle word wrap
    4. Stop the Gluster processes:
      # service glusterd stop
      # pkill glusterfs
      # pkill glusterfsd
      Copy to Clipboard Toggle word wrap
    5. For system with samba-ctdb enabled cluster, stop the CTDB services:
      # service ctdb stop
      Copy to Clipboard Toggle word wrap
  8. Update the system and reboot

    Update the system to the latest minor version of RHEL 6, and reboot after the update is complete:
    # yum update
    # reboot
    Copy to Clipboard Toggle word wrap
  9. Verify the version number

    Check the current version number of the updated RHEL 6 system using the following command:
    # cat /etc/redhat-release
    Copy to Clipboard Toggle word wrap

    Important

    The version number should be 6.10.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat