此内容没有您所选择的语言版本。
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 --statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow If the system is not on Red Hat Network Classic, skip this stepIf 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 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
# subscription-manager register --username=user_name --password=passwordCopy to Clipboard Copied! Toggle word wrap Toggle overflow Identify the available entitlement pools
Find the entitlement pools containing the RHEL 6 repositories:subscription-manager list --available
# subscription-manager list --availableCopy to Clipboard Copied! Toggle word wrap Toggle overflow 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
# subscription-manager attach --pool=pool_IDCopy to Clipboard Copied! Toggle word wrap Toggle overflow 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
# subscription-manager repos --enable=rhel-6-server-rpms --enable=rhel-scalefs-for-rhel-6-server-rpms --enable=rhs-3-for-rhel-6-server-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow 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.- 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_nameCopy to Clipboard Copied! Toggle word wrap Toggle overflow - 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; donefor each in `ctdb getdbmap | grep PERSISTENT | cut -d" " -f2 | cut -d":" -f2`; do echo $each ; ctdb backup_folder_name $each ${each}.bak; doneCopy 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 stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Stop the Nagios process:
service nrpe stop
# service nrpe stopCopy 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; doneCopy 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 glusterfsdCopy to Clipboard Copied! Toggle word wrap Toggle overflow - For system with samba-ctdb enabled cluster, stop the CTDB services:
service ctdb stop
# service ctdb stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow
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
# yum update # rebootCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the version number
Check the current version number of the updated RHEL 6 system using the following command:cat /etc/redhat-release
# cat /etc/redhat-releaseCopy to Clipboard Copied! Toggle word wrap Toggle overflow Important
The version number should be6.10.