此内容没有您所选择的语言版本。
8.2. Updating NFS-Ganesha in the Offline Mode
Execute the following steps to update the NFS-Ganesha service from Red Hat Gluster Storage 3.1 to Red Hat Gluster Storage 3.1.1 or later:
Note
NFS-Ganesha does not support in-service update, hence all the running services and IO's have to be stopped before starting the update process.
- Stop the nfs-ganesha service on all the nodes of the cluster by executing the following command:
service nfs-ganesha stop
# service nfs-ganesha stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Verify the status by executing the following command on all the nodes:
pcs status
# pcs statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Stop the glusterd service and kill any running gluster process on all the nodes:
service glusterd stop pkill glusterfs pkill glusterfsd
# service glusterd stop # pkill glusterfs # pkill glusterfsdCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Place the entire cluster in standby mode on all the nodes by executing the following command:
pcs cluster standby <node-name>
# pcs cluster standby <node-name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Stop the cluster software on all the nodes using pcs, by executing the following command:
pcs cluster stop <node-name>
# pcs cluster stop <node-name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure that it stops pacemaker and cman.For example:pcs cluster stop nfs1
# pcs cluster stop nfs1 nfs1: Stopping Cluster (pacemaker)... nfs1: Stopping Cluster (cman)...Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Update the NFS-Ganesha packages on all the nodes by executing the following command:
yum update nfs-ganesha yum update glusterfs-ganesha
# yum update nfs-ganesha # yum update glusterfs-ganeshaCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note
- This will install glusterfs-ganesha and nfs-ganesha-gluster package along with other dependent gluster packages.
- Some warnings might appear during the upgrade related to shared_storage which can be ignored.
- Verify on all the nodes that the required packages are updated, the nodes are fully functional and are using the correct versions. If anything does not seem correct, then do not proceed until the situation is resolved. Contact the Red Hat Global Support Services for assistance if needed.
- Start the cluster software on all the nodes by executing the following command:
pcs cluster start <node-name>
# pcs cluster start <node-name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example:pcs cluster start nfs1
# pcs cluster start nfs1 nfs1: Starting Cluster...Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Check the pcs status output to determine if everything appears as it should. Once the nodes are functioning properly, reactivate it for service by taking it out of standby mode by executing the following command:
pcs cluster unstandby <node-name>
# pcs cluster unstandby <node-name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Make sure there are no failures and unexpected results. - Start glusterd service on all the nodes by executing the following command:
service glusterd start
# service glusterd startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Mount the shared storage volume created before update on all the nodes:
mount -t glusterfs localhost:/gluster_shared_storage /var/run/gluster/shared_storage
# mount -t glusterfs localhost:/gluster_shared_storage /var/run/gluster/shared_storageCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Verify if glusterfs-nfs is running after the update on all the nodes:
ps -aux|grep nfs
# ps -aux|grep nfsCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Disable glusterfs-nfs running (if, on any node):
gluster volume set <volname> nfs.disable on
# gluster volume set <volname> nfs.disable onCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Start the nfs-ganesha service on all the nodes by executing the following command:
service nfs-ganesha start
# service nfs-ganesha startCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Important
Verify that all the nodes are fully functional. If anything does not seem correct, then do not proceed until the situation is resolved. Contact Red Hat Global Support Services for assistance if required.