xCAT Configure

参考

1. Management Node Linux Installation

#cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
202.127.204.14 cmft
11.11.11.254 master

2. Basic configure

7.1 site

#tabedump site
#key,value,comments,disable
"blademaxp","64",,
"domain","cluster",,
"fsptimeout","0",,
"installdir","/install",,
"ipmimaxp","64",,
"ipmiretries","3",,
"ipmitimeout","2",,
"consoleondemand","no",,
"master","master",,
"forwarders","202.38.64.1",,
"nameservers","202.127.207.1",,
"dhcpinterfaces","eth1",,
"maxssh","8",,
"ppcmaxp","64",,
"ppcretry","3",,
"ppctimeout","0",,
"powerinterval","0",,
"syspowerinterval","0",,
"sharedtftp","1",,
"SNsyncfiledir","/var/xcat/syncfiles",,
"tftpdir","/tftpboot",,
"xcatdport","3001",,
"xcatiport","3002",,
"xcatconfdir","/etc/xcat",,
"timezone","Asia/Shanghai",,
"useNmapfromMN","no",,
"enableASMI","no",,
"db2installloc","/mntdb2",,
"databaseloc","/var/lib",,
"sshbetweennodes","ALLGROUPS",,
"dnshandler","ddns",,
"vsftp","n",,
"cleanupxcatpost","no",,

7.2 nodelist

#nodeadd shenma[101-105] groups=compute,ipmi,esc4000

7.3 hosts: mapping nodes to IP addresses

#tabdump hosts
#node,ip,hostnames,otherinterfaces,comments,disable
"compute","|\D+(\d+)$|11.11.11.($1+0)|",,,,
"esc4000",,,"|\D+(\d+)$|shenma($1)-ipmi:11.11.11.($1+20),shenma($1)-ib:192.168.1.($1+0)|",,
#makehosts shenma[101-105]

7.4 nodehm: Node Hardware Management

#nodegrpch esc4000 nodehm.mgt=ipmi

7.5 nodehm: Remote Console (TODO)

7.6 IPMI settings

#nodegrpch esc4000 ipmi.bmcport=0 ipmi.username=admin ipmi.password=admin ipmi.bmc='|\D+(\d+)|11.11.11.($1+20)|'

7.7 mp and mpa: Blades (TODO)

7.8 switch and switches (TODO)

7.9 networks and dynamic ranges

#chtab netname=cluster networks.gateway=11.11.11.254 networks.dhcpserver=11.11.11.254 networks.tftpserver=11.11.11.254 networks.nameservers=11.11.11.254 networks.ntpservers=11.11.11.254 networks.dynamicrange=11.11.11.101-11.11.11.199

If you change one of the networks, you should rerun mknb:

#mknb x86_64

7.10 DNS, domains, and forwarders

#chtab key=domain site.value=cluster
#chtab key=forwarders site.value=202.127.207.1
#makedns 
#service named restart
#chkconfig --level 345 named on

7.11 noderes

#nodegrpch compute noderes.primarynic=eth0 noderes.tftpserver=master noderes.installnic=eth0 noderes.discoverynics=eth0   noderes.nfsserver=mgmt noderes.netboot=pxe

7.12 DHCP

#chtab key=dhcpinterfaces site.value=eth1ser
#rm /var/lib/dhcpd/dhcpd.leases
#makedhcp -n
#makedhcp -a

8. Auto Discovery

8.1 Understanding Autodiscovery

8.2 Your Destiny: The Chain Table

8.3 Skipping Autodiscovery (Editing Mac Addresses)

#nodech shenma101 mac.interface=eth0 mac.mac="BC:AE:C5:68:96:A7"
#nodech shenma102 mac.interface=eth0 mac.mac="BC:AE:C5:68:97:11"
#nodech shenma103 mac.interface=eth0 mac.mac="BC:AE:C5:2D:20:3F"
#nodech shenma104 mac.interface=eth0 mac.mac="BC:AE:C5:68:97:5D"
#nodech shenma105 mac.interface=eth0 mac.mac="BC:AE:C5:68:97:31"

8.4 Under the hood of the xCAT service image

 

9. Linux Kickstart Installation

9.1 copycds
9.2 Kickstart Templates
9.3 Deploying Kickstart Nodes
9.4 Post Install Scripts

10. Stateless Images

10.1 Quick Stateless Image Creation

#genimage -i eth0 -n e1000e -o centos6.2 -p compute
#echo "blacklist nouveau" >> /install/netboot/centos6.2/x86_64/compute/rootimg/etc/modprobe.d/blacklist.conf
#packimage -o centos6.2 -a x86_64 -c compute