此内容没有您所选择的语言版本。
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:migrate-rhs-classic-to-rhsm --status
# migrate-rhs-classic-to-rhsm --status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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:subscription-manager register --username=user_name --password=password
# subscription-manager register --username=user_name --password=password
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Identify the available entitlement pools
Find the entitlement pools containing the Red Hat Enterprise Linux 6 repositories:subscription-manager list --available
# subscription-manager list --available
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Attach the entitlement pool to the system
Use the pool identifier to attach the Red Hat Enterprise Linux 6 entitlements.subscription-manager attach --pool=pool_ID
# subscription-manager attach --pool=pool_ID
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the repositories
Enable the Red Hat Enterprise Linux 6, scalable file system, 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
# 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 Copied! Toggle word wrap Toggle overflow 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:
mkdir backup_folder_name cd backup_folder_name
# mkdir backup_folder_name # cd backup_folder_name
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Execute the following command to take a backup of 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
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 Copied! Toggle word wrap Toggle overflow
Stop all Gluster services, volumes, and processes
- Stop any geo-replication sessions:
gluster volume geo-replication MASTER_VOL SLAVE_HOST::SLAVE_VOL stop
# gluster volume geo-replication MASTER_VOL SLAVE_HOST::SLAVE_VOL stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Stop all volumes:
for vol in `gluster volume list`; do gluster --mode=script volume stop $vol; sleep 2s; done
# for vol in `gluster volume list`; do gluster --mode=script volume stop $vol; sleep 2s; done
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Stop the Gluster processes:
service glusterd stop pkill glusterfs pkill glusterfsd
# service glusterd stop # pkill glusterfs # pkill glusterfsd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - For systems with a samba-ctdb enabled cluster, stop the CTDB services:
service ctdb stop
# service ctdb stop
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Update the system
Update the system to the latest minor version of Red Hat Enterprise Linux 6:yum update
# yum update
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Reboot
Reboot the system:reboot
# reboot
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the version number
Check the current version number of the updated Red Hat Enterprise Linux 6 system:cat /etc/redhat-release
# cat /etc/redhat-release
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure the version number is6.10
.