Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 6. Upgrading Red Hat Gluster Storage to Red Hat Enterprise Linux 7
Important
- RHEL6 channel subscriptions are required.
- Upgrade servers before upgrading clients.
6.1. Preparing System for Upgrade Link kopierenLink in die Zwischenablage kopiert!
Important
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 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=passwordCopy 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 --availableCopy 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_IDCopy 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-rpmsCopy 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_nameCopy 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; 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 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 systems with a 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
Update the system to the latest minor version of Red Hat Enterprise Linux 6:yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow Reboot
Reboot the system:reboot
# rebootCopy 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-releaseCopy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure the version number is6.10.