Board logo

标题: 在 IBM AIX 上构建一个双节点的 IBM GPFS 集群:配置 GPFS 集群 [打印本页]

作者: look_w    时间: 2018-1-8 10:31     标题: 在 IBM AIX 上构建一个双节点的 IBM GPFS 集群:配置 GPFS 集群

配置 GPFS 集群现在,GPFS 已被安装,我们可以跨两个 AIX 系统创建一个集群。首先,我们创建了一个文本文件,其中包含一个列表,列出了每个节点以及它们的 GPFS 描述和用途。我们选择将每个节点都配置为一个 GPFS 仲裁管理器(quorum manager)。每个节点都是一个 GPFS 服务器。如果您不确定在您的环境中需要多少仲裁管理器和 GPFS 服务器,请参阅  以获得相关指南。
1
2
3
aixlpar1 :/tmp/cg # cat gpfs-nodes.txt
aixlpar2p:quorum-manager:
aixlpar1p:quorum-manager:




使用 mmcrcluster 命令创建集群。*GPFS 集群名称是 GPFS_CLUSTER1。主节点(或 NSD 服务器,将在下一节讨论)是 aixlpar1p ,二级节点是 aixlpar2p。我们已经指定,sshscp 将用于集群通信和管理。
1
2
3
4
5
6
7
8
9
aixlpar1 :/tmp/cg # mmcrcluster –C GPFS_CLUSTER1 -N /tmp/cg/gpfs-nodes.txt -p
aixlpar1p -s aixlpar2p -r /usr/bin/ssh -R /usr/bin/scp
Mon Apr 29 12:01:21 EET 2013: mmcrclusterrocessing node aixlpar2
Mon Apr 29 12:01:24 EET 2013: mmcrclusterrocessing node aixlpar1
mmcrcluster:Command successfully completed
mmcrcluster:Warning:Not all nodes have proper GPFS license designations.
Use the mmchlicense command to designate licenses as needed.
mmcrclusterropagating the cluster configuration data to all
affected nodes.This is an asynchronous process.




*备注:为了确保 GPFS 守护进程通信是在专有 GPFS 网络上进行的,在创建集群的过程中,我们指定了 GPFS 守护进程节点名称(即以 p 结尾的主机名)。在 GPFS 集群中要考虑两种类型的通信:管理命令通信和守护进程通信。管理命令使用远程 shell(ssh、 rsh 或其他 shell)和基于套接字的通信。确保所有 GPFS 守护进程通信专有网络上执行,这被认为是一种最佳实践。请参阅 ,了解有关  GPFS 网络配置考虑因素与实践的更多信息和讨论。
为了使用单独的网络进行管理命令通信,您可以使用 mmchnode 命令修改 “管理节点名称”。在本例中,单独的网络地址由节点名称末尾的 a”(代表 Administration)指定,例如 aixlpar1a。
1
2
# mmchnode -admin-interface=aixlpar1p -N aixlpar1a
# mmchnode -admin-interface=aixlpar2p -N aixlpar2a




mmcrcluster 命令警告我们,不是所有节点都有适当的 GPFS 许可分配。我们使用 mmchlicense 命令将 GPFS 服务器许可分配给集群中的两个节点。
1
2
3
4
5
6
7
aixlpar1 :/ # mmchlicense server --accept  -N aixlpar1a,aixlpar2a
The following nodes will be designated as possessing GPFS server licenses:
aixlpar2a
aixlpar1a
mmchlicense:Command successfully completed
mmchlicenseropagating the cluster configuration data to all
  affected nodes.This is an asynchronous process.




该集群现在已完成配置。mmlscluster 命令可以用于显示集群信息。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# mmlscluster

GPFS cluster information
========================
  GPFS cluster name:         GPFS_CLUSTER1.aixlpar1p
  GPFS cluster id:           8831612751005471855
  GPFS UID domain:           GPFS_CLUSTER.aixlpar1p
  Remote shell command:      /usr/bin/ssh
  Remote file copy command:/usr/bin/scp

GPFS cluster configuration servers:
-----------------------------------
  Primary server:    aixlpar1p
  Secondary server:aixlpar2p

Node  Daemon node name  IP address      Admin node name  Designation
----------------------------------------------------------------------
   1   aixlpar2p       10.1.7.120   aixlpar2a      quorum-manager
   2   aixlpar1p       10.1.7.110   aixlpar1a      quorum-manager




此时,您可以使用 mmdsh 命令,验证 SSH 通信在所有 GPFS 节点上如期运行。这会在集群中的所有节点上运行一个命令。如果存在 SSH 配置问题,该命令可以突出显示问题。
1
2
3
4
5
6
7
aixlpar1 :/ # mmdsh date
aixlpar1:Mon Apr 29 12:05:47 EET 2013
aixlpar2:Mon Apr 29 12:05:47 EET 2013

aixlpar2 :/ # mmdsh date
aixlpar1:Mon Apr 29 12:06:41 EET 2013
aixlpar2:Mon Apr 29 12:06:41 EET 2013






欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0