此内容没有您所选择的语言版本。

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.
  1. Stop the nfs-ganesha service on all the nodes of the cluster by executing the following command:
    # service nfs-ganesha stop
    Copy to Clipboard Toggle word wrap
  2. Verify the status by executing the following command on all the nodes:
    # pcs status
    Copy to Clipboard Toggle word wrap
  3. Stop the glusterd service and kill any running gluster process on all the nodes:
    # service glusterd stop
    # pkill glusterfs
    # pkill glusterfsd
    Copy to Clipboard Toggle word wrap
  4. Place the entire cluster in standby mode on all the nodes by executing the following command:
    # pcs cluster standby <node-name>
    Copy to Clipboard Toggle word wrap
    For example:
    # pcs cluster standby nfs1
    # pcs status
    
    Cluster name: G1455878027.97
    Last updated: Tue Feb 23 08:05:13 2016
    Last change: Tue Feb 23 08:04:55 2016
    Stack: cman
    Current DC: nfs1 - partition with quorum
    Version: 1.1.11-97629de
    4 Nodes configured
    16 Resources configured
    
    
    Node nfs1: standby
    Online: [ nfs2 nfs3 nfs4 ]
    
    ....
    Copy to Clipboard Toggle word wrap
  5. Stop the cluster software on all the nodes using pcs, by executing the following command:
    # pcs cluster stop <node-name>
    Copy to Clipboard Toggle word wrap
    Ensure that it stops pacemaker and cman.
    For example:
    # pcs cluster stop nfs1
    nfs1: Stopping Cluster (pacemaker)...
    nfs1: Stopping Cluster (cman)...
    Copy to Clipboard Toggle word wrap
  6. Update the NFS-Ganesha packages on all the nodes by executing the following command:
    # yum update nfs-ganesha
    # yum update glusterfs-ganesha
    Copy to Clipboard Toggle word wrap

    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.
  7. Start the cluster software on all the nodes by executing the following command:
    # pcs cluster start <node-name>
    Copy to Clipboard Toggle word wrap
    For example:
    # pcs cluster start nfs1
    nfs1: Starting Cluster...
    Copy to Clipboard Toggle word wrap
  8. 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>
    Copy to Clipboard Toggle word wrap
    For example:
    # pcs cluster unstandby nfs1
    
    # pcs status
    Cluster name: G1455878027.97
    Last updated: Tue Feb 23 08:14:01 2016
    Last change: Tue Feb 23 08:13:57 2016
    Stack: cman
    Current DC: nfs3 - partition with quorum
    Version: 1.1.11-97629de
    4 Nodes configured
    16 Resources configured
    
    
    Online: [ nfs1 nfs2 nfs3 nfs4 ]
    
    ....
    Copy to Clipboard Toggle word wrap
    Make sure there are no failures and unexpected results.
  9. Start glusterd service on all the nodes by executing the following command:
    # service glusterd start
    Copy to Clipboard Toggle word wrap
  10. Mount the shared storage volume created before update on all the nodes:
    # mount -t glusterfs localhost:/gluster_shared_storage /var/run/gluster/shared_storage
    Copy to Clipboard Toggle word wrap
  11. Verify if glusterfs-nfs is running after the update on all the nodes:
    # ps -aux|grep nfs
    Copy to Clipboard Toggle word wrap
  12. Disable glusterfs-nfs running (if, on any node):
    # gluster volume set <volname> nfs.disable on
    Copy to Clipboard Toggle word wrap
  13. Start the nfs-ganesha service on all the nodes by executing the following command:
    # service nfs-ganesha start
    Copy to Clipboard Toggle word wrap

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.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat