WEB开发网
开发学院操作系统Linux/Unix 使用 xCAT 简化 AIX 集群的部署和管理 阅读

使用 xCAT 简化 AIX 集群的部署和管理

 2010-09-03 00:00:00 来源:WEB开发网   
核心提示: 配置 xCAT 参数定义集群网络对象:包括配置集群中所有网络的网络地址、掩码和网关等等,在这里,使用 xCAT 简化 AIX 集群的部署和管理(6),我们使用 mkdef 命令定义一个名为 net1 的 network 对象, 网络地址是 192.168.186.0,则可以在创建 xCAT 各个

配置 xCAT 参数

定义集群网络对象:包括配置集群中所有网络的网络地址、掩码和网关等等。在这里,我们使用 mkdef 命令定义一个名为 net1 的 network 对象, 网络地址是 192.168.186.0,子网掩码是 255.255.255.0,网关是 192.168.186.1:

-bash-3.2# mkdef -t network -o net1 net=192.168.186.0 
 mask=255.255.255.0 gateway=192.168.186.1 
 Object definitions have been created or modified.  

选择远程命令执行(Remote Command Execution)。xCAT 默认是在 AIX 集群节点上建立 Secure Shell(SSH),如果要改用的 Remote Shell(RSH)话,可以 chdef 命令来修改:

-bash-3.2# lsdef -t site -l 
 Setting the name of the site definition to 'clustersite'. 
 
 Object name: clustersite 
  consoleondemand=yes 
  installdir=/install 
  master=192.168.186.1 
  tftpdir=/tftpboot 
  useSSHonAIX=yes 
  xcatdport=3001 
  xcatiport=3002 
 -bash-3.2# chdef -t site -o clustersite useSSHonAIX=no 
 Object definitions have been created or modified. 

配置网络名称解析。可以选择同步各个节点的 /etc/hosts,或者也可以直接采用一个 DNS 域名服务器。如果采用 /etc/hosts 的机制,则可以在创建 xCAT 各个节点定义后再运行 makehosts 脚本,从而自动生成得到 /etc/hosts 文件。我们采用直接建立一个 DNS 域名服务器的方法(例如 DNS 服务器 IP 地址是“9.181.2.1”,管理节点的 IP 地址是“192.168.186.1”时):

上一页  1 2 3 4 5 6 7 8 9 10  下一页

Tags:使用 xCAT 简化

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接