Chapter 6. Upgrading Red Hat Gluster Storage to Red Hat Enterprise Linux 7 Important RHEL 8 is supported only for new installations of Red Hat Gluster Storage 3.5.2. Upgrades to RHEL 8 based Red Hat Gluster Storage 3.5.2 are not supported. Red Hat Gluster Storage is not supported on Red Hat Enterprise Linux 6 (RHEL 6) from 3.5 Batch Update 1 onwards, refer to Table 1.3, "Version Details" Prerequisites to upgrade from Red Hat Enterprise Linux 6 based Red Hat Gluster Storage to Red Hat Enterprise Linux 7 based Red Hat Gluster Storage are as follow: RHEL6 channel subscriptions are required. Upgrade servers before upgrading clients. Upgrading from Red Hat Enterprise Linux 6 to Red Hat Enterprise Linux 7 is an offline procedure that results in Gluster node downtime, because volumes are offline during the upgrade process. 6.1. Preparing System for Upgrade Important If the system is already registered through Red Hat Subscription Manager, skip the registration steps and start the backup of the Gluster configuration files. 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: 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 . Register the system with Red Hat Subscription Manager To register the system with Red Hat Network, execute the following command. Enter your Red Hat Network username and password that have the Red Hat Enterprise Linux entitlements: Identify the available entitlement pools Find the entitlement pools containing the Red Hat Enterprise Linux 6 repositories: Attach the entitlement pool to the system Use the pool identifier to attach the Red Hat Enterprise Linux 6 entitlements. Enable the repositories Enable the Red Hat Enterprise Linux 6, scalable file system, and Red Hat Gluster Storage repositories: Back up the Gluster configuration files Note It is recommended to make a complete backup before you update your system. Refer to https://access.redhat.com/solutions/1484053 to know one possible approach. Ensure that the following configuration directories and files are backed up: /var/lib/glusterd /etc/glusterfs For systems with samba-ctdb enabled cluster, create a new directory to store the backup: Execute the following command to take a backup of samba-ctdb data: Stop all Gluster services, volumes, and processes Stop any geo-replication sessions: Stop all volumes: Stop the Gluster processes: For systems with a samba-ctdb enabled cluster, stop the CTDB services: Update the system Update the system to the latest minor version of Red Hat Enterprise Linux 6: Reboot Reboot the system: Verify the version number Check the current version number of the updated Red Hat Enterprise Linux 6 system: Ensure the version number is 6.10 .

Commands:
migrate-rhs-classic-to-rhsm --status
subscription-manager register --username= user_name --password= password
subscription-manager list --available
subscription-manager attach --pool= pool_ID
subscription-manager repos --enable=rhel-6-server-rpms --enable=rhel-scalefs-for-rhel-6-server-rpms --enable=rhs-3-for-rhel-6-server-rpms
mkdir backup_folder_name cd backup_folder_name
for each in `ctdb getdbmap | grep PERSISTENT | cut -d" " -f2 | cut -d":" -f2`; do echo USDeach ; ctdb backup_folder_name USDeach USD{each}.bak; done
gluster volume geo-replication MASTER_VOL SLAVE_HOST :: SLAVE_VOL stop
for vol in `gluster volume list`; do gluster --mode=script volume stop USDvol; sleep 2s; done
service glusterd stop pkill glusterfs pkill glusterfsd
service ctdb stop
yum update
reboot
cat /etc/redhat-release