使用 xCAT 简化 AIX 集群的部署和管理
2010-09-03 00:00:00 来源:WEB开发网-bash-3.2# chdef -t site domain= mycluster.com nameservers= 192.168.186.1
forwarders=9.181.2.1
Object definitions have been created or modified.
-bash-3.2# cat /etc/resolv.conf
search mycluster.com
nameserver 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.
-bash-3.2# makedns
Setup of DNS complete.
-bash-3.2# startsrc -s named
0513-059 The named Subsystem has been started. Subsystem PID is 372810.
修改文件大小限制。因为用于安装节点所用的各种 AIX/NIM 资源文件一般都比较大,所以有必要将 root 帐号的文件限制设置为不限制。在这里,可以使用 chuser 命令,参数 fsize=-1 表示对大小没有限制:
-bash-3.2# /usr/bin/chuser fsize=-1 root
检查 xCAT 所依赖的系统服务是否正常运行。查看 /etc/inetd.conf 文件,检查 inetd 服务是否已经包含 telnet, ftp, bootp/dhcp 等等服务,还要检查用于给各个集群节点安装系统时候需要的 NFS 和 TFTP 服务是否正常运行。可以使用 lssrc 命令查看各个服务是否处于 active 状态:
-bash-3.2# lssrc -ls inetd
Subsystem Group PID Status
inetd tcpip 229540 active
Debug Not active
Signal Purpose
SIGALRM Establishes socket connections for failed services.
SIGHUP Rereads the configuration database and reconfigures services.
SIGCHLD Restarts the service in case the service ends abnormally.
Service Command Description Status
pmv5 /etc/pmdv5 pmdv5 active
xmquery /usr/bin/xmtopas xmtopas -p3 active
wsmserver /usr/websm/bin/wsmserver wsmserver -start active
time internal active
daytime internal active
time internal active
daytime internal active
ntalk /usr/sbin/talkd talkd active
tftp /usr/sbin/tftpd tftpd -n active
bootps /usr/sbin/bootpd bootpd /etc/bootptab active
exec /usr/sbin/rexecd rexecd active
login /usr/sbin/rlogind rlogind active
shell /usr/sbin/rshd rshd active
telnet /usr/sbin/telnetd telnetd -a active
ftp /usr/sbin/ftpd ftpd active
-bash-3.2# lssrc -s nfsd
Subsystem Group PID Status
nfsd nfs 307350 active
-bash-3.2# lssrc -s tftpd
Subsystem Group PID Status
tftpd tcpip 315546 active
更多精彩
赞助商链接