xCAT2安装配置
xCAT2安裝配置?2011-11-17 18:04:47
1
硬件:刀片,交換機(jī),控制臺(tái),管理節(jié)點(diǎn)
軟件:系統(tǒng)rhel5.5 xcat2.3
2
網(wǎng)絡(luò)IP設(shè)置:
管理節(jié)點(diǎn) eth0 167.64.13.100 hostname XCAT
刀片IP:167.64.13.1 NETMASK=255.255.0.0 3
管理節(jié)點(diǎn)安裝
操作系統(tǒng)rhel5.5完全安裝
4
管理節(jié)點(diǎn)操作系統(tǒng)修改
4.1
檢查你的操作系統(tǒng),如果selinux為 enabled 需要執(zhí)行下面例子程序。
[root@xcat ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
4.2
刪除系統(tǒng)安裝包 tftp-server,OpenIPMI-tools bind-chroot
[root@xcat ~]# rpm -qa | grep tftp-server
tftp-server-0.42-3.1
[root@xcat ~]# rpm -qa | grep OpenIPMI-tools
OpenIPMI-tools-2.0.6-5.el5.5
[root@xcat ~]# rpm -e tftp-server; rpm -e OpenIPMI-tools
5
刀片中心設(shè)置
5.1?
找臺(tái)筆記本或其他機(jī)器連接到刀片中心。一般默認(rèn)IP為192.168.70.125,用戶為USERID 密碼
為PASSW0RD
Blade Tasks-->Configuration
這里修改BLADE 名字為BC01
MM Control-->General Settings
下修改刀片中心名字為BLADEmm
MM Control-->Network Interfaces
設(shè)置刀片中心IP為167.64.13.1
MM Control-->Security下激活ssh server
設(shè)置完成重啟BLADECENTER 6
xcat2.3部署
mkdir -p /opt/xcat2
解壓所下載的文件
tar jxvf xcat-dep-2.4-200912091450.tar.bz2
tar jxvf xcat-core-2.3.3.tar.bz2
yum repository
掛載rhel5.5 的DVD 光盤(pán)到/root/xcat2/rhel5.5/,并在/etc/yum.repos.d/下創(chuàng)建文件:
rhels5.5.repo,內(nèi)容如下:
[rhels5.5]
name=Rhel Server 5.4
baseurl=file:///install/Server
enabled=1
gpgcheck=0
xCAT的repository文件:
cd /opt/xcat2/xcat-dep/rh5/X86_64
./mklocalrepo.sh
cd /opt/xcat2/xcat-core
./mklocalrepo.sh
yum install xCAT (根據(jù)提示y就行了)
安裝完成測(cè)試
[root@big xcat]# /etc/init.d/xcatd status
xCAT service is running
修改/etc/hosts
167.64.13.1 BC01
167.64.13.100 XCAT
167.64.13.10 BLADE
設(shè)定root用戶profile
cd /etc/profile.d/
./xcat.sh
這個(gè)操作目的設(shè)定xcat環(huán)境變量
[root@xcat ~]# less /etc/profile.d/xcat.sh
XCATROOT=/opt/xcat
PATH=$PATH:$XCATROOT/bin:$XCATROOT/sbin
MANPATH=$MANPATH:$XCATROOT/share/man:
export XCATROOT PATH MANPATH
export PERL_BADLANG
驗(yàn)證安裝
[root@xcat~]# tabdump site
#key,value,comments,disable
"BLADEmaxp","64",,
"fsptimeout","0",,
"installdir","/install",,
"IPmimaxp","64",,
"IPmiretries","3",,
"IPmitimeout","2",,
"consoleondemand","no",,
"master","167.64.13.100",,
"maxssh","8",,
"ppcmaxp","64",,
"ppcretry","3",,
"ppctimeout","0",,
"sharedtftp","1",,
"SNsyncfiledir","/var/xcat/syncfiles",,
"tftpdir","/tftpboot",,
"xcatdport","3001",,
"xcatIPort","3002",,
"xcatconfdir","/etc/xcat",,
"timezone","Asia/Shanghai",,
"useNmapfromMN","no",,
"domain","CLUSTER.com",,
"nameservers","167.64.13.100",,
"dhcpinterfaces","eth0",,
如果發(fā)現(xiàn)某些選項(xiàng)不對(duì)可以用tabedit site修改
用copycds命令拷貝鏡像到管理節(jié)點(diǎn)
例。
[root@xcat iso]# ls
rhel-server-5.5-x86_64-dvd.iso
[root@xcat iso]# pwd
/root/iso
[root@xcat iso]# copycds -n rhels5.5 -a x86_64
/root/iso/rhel-server-5.4-x86_64-dvd.iso
Restoring the predefined xcat table
cd /opt/xcat/share/xcat/templates/e1350
for i in *csv; do tabrestore $i; done
對(duì)網(wǎng)絡(luò)配置表配置 [root@xcat e1350]#tabedit networks (檢查你的設(shè)置)
dns設(shè)置
[root@xcat iso]# less /etc/resolv.conf
search clusters.com
nameserver 127.0.0.1
#nameserver 167.64.13.100
[root@xcat iso]#makedns
[root@xcat iso]#service named restart
dns測(cè)試正確情況下會(huì)看到下面輸出
[root@xcat iso]# nslookup BLADE dhcp 設(shè)置 [root@xcat iso]# makedhcp -n
[root@xcat iso]#service dhcpd start
TFTP設(shè)置
默認(rèn)tftp文件在/tftpboot下
[root@xcat iso]mknb x86_64 定義BLADEcenter管理模塊
#tabedit mp
#tabedit mpa 激活刀片管理模塊遠(yuǎn)程控制 snmp和ssh [root@xcat iso]# rspconfig BC01 snmpcfg=enable sshcfg=enable
BLADEmm: SNMP enable: OK
BLADEmm: SSH enable: OK 增加計(jì)算節(jié)點(diǎn)
#tabedit nodelist
#tabedit noderes 獲取mac地址
[root@xcat ~]#getmacs BLADE1-BLADE12 調(diào)整刀片啟動(dòng)順序 [root@xcat~]# rbootseq BLADE1-BLADE12 n,h,c,f
BLADE1: net,hd0,cdrom,floppy
h
開(kāi)始安裝
[root@xcat~]# BLADEset BLADE1 install
監(jiān)控安裝
[root@xcat~]# nodestat BLADE1
分類(lèi):?LINUX
1
硬件:刀片,交換機(jī),控制臺(tái),管理節(jié)點(diǎn)
軟件:系統(tǒng)rhel5.5 xcat2.3
2
網(wǎng)絡(luò)IP設(shè)置:
管理節(jié)點(diǎn) eth0 167.64.13.100 hostname XCAT
刀片IP:167.64.13.1 NETMASK=255.255.0.0 3
管理節(jié)點(diǎn)安裝
操作系統(tǒng)rhel5.5完全安裝
4
管理節(jié)點(diǎn)操作系統(tǒng)修改
4.1
檢查你的操作系統(tǒng),如果selinux為 enabled 需要執(zhí)行下面例子程序。
[root@xcat ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
4.2
刪除系統(tǒng)安裝包 tftp-server,OpenIPMI-tools bind-chroot
[root@xcat ~]# rpm -qa | grep tftp-server
tftp-server-0.42-3.1
[root@xcat ~]# rpm -qa | grep OpenIPMI-tools
OpenIPMI-tools-2.0.6-5.el5.5
[root@xcat ~]# rpm -e tftp-server; rpm -e OpenIPMI-tools
5
刀片中心設(shè)置
5.1?
找臺(tái)筆記本或其他機(jī)器連接到刀片中心。一般默認(rèn)IP為192.168.70.125,用戶為USERID 密碼
為PASSW0RD
Blade Tasks-->Configuration
這里修改BLADE 名字為BC01
MM Control-->General Settings
下修改刀片中心名字為BLADEmm
MM Control-->Network Interfaces
設(shè)置刀片中心IP為167.64.13.1
MM Control-->Security下激活ssh server
設(shè)置完成重啟BLADECENTER 6
xcat2.3部署
mkdir -p /opt/xcat2
解壓所下載的文件
tar jxvf xcat-dep-2.4-200912091450.tar.bz2
tar jxvf xcat-core-2.3.3.tar.bz2
yum repository
掛載rhel5.5 的DVD 光盤(pán)到/root/xcat2/rhel5.5/,并在/etc/yum.repos.d/下創(chuàng)建文件:
rhels5.5.repo,內(nèi)容如下:
[rhels5.5]
name=Rhel Server 5.4
baseurl=file:///install/Server
enabled=1
gpgcheck=0
xCAT的repository文件:
cd /opt/xcat2/xcat-dep/rh5/X86_64
./mklocalrepo.sh
cd /opt/xcat2/xcat-core
./mklocalrepo.sh
yum install xCAT (根據(jù)提示y就行了)
安裝完成測(cè)試
[root@big xcat]# /etc/init.d/xcatd status
xCAT service is running
修改/etc/hosts
167.64.13.1 BC01
167.64.13.100 XCAT
167.64.13.10 BLADE
設(shè)定root用戶profile
cd /etc/profile.d/
./xcat.sh
這個(gè)操作目的設(shè)定xcat環(huán)境變量
[root@xcat ~]# less /etc/profile.d/xcat.sh
XCATROOT=/opt/xcat
PATH=$PATH:$XCATROOT/bin:$XCATROOT/sbin
MANPATH=$MANPATH:$XCATROOT/share/man:
export XCATROOT PATH MANPATH
export PERL_BADLANG
驗(yàn)證安裝
[root@xcat~]# tabdump site
#key,value,comments,disable
"BLADEmaxp","64",,
"fsptimeout","0",,
"installdir","/install",,
"IPmimaxp","64",,
"IPmiretries","3",,
"IPmitimeout","2",,
"consoleondemand","no",,
"master","167.64.13.100",,
"maxssh","8",,
"ppcmaxp","64",,
"ppcretry","3",,
"ppctimeout","0",,
"sharedtftp","1",,
"SNsyncfiledir","/var/xcat/syncfiles",,
"tftpdir","/tftpboot",,
"xcatdport","3001",,
"xcatIPort","3002",,
"xcatconfdir","/etc/xcat",,
"timezone","Asia/Shanghai",,
"useNmapfromMN","no",,
"domain","CLUSTER.com",,
"nameservers","167.64.13.100",,
"dhcpinterfaces","eth0",,
如果發(fā)現(xiàn)某些選項(xiàng)不對(duì)可以用tabedit site修改
用copycds命令拷貝鏡像到管理節(jié)點(diǎn)
例。
[root@xcat iso]# ls
rhel-server-5.5-x86_64-dvd.iso
[root@xcat iso]# pwd
/root/iso
[root@xcat iso]# copycds -n rhels5.5 -a x86_64
/root/iso/rhel-server-5.4-x86_64-dvd.iso
Restoring the predefined xcat table
cd /opt/xcat/share/xcat/templates/e1350
for i in *csv; do tabrestore $i; done
對(duì)網(wǎng)絡(luò)配置表配置 [root@xcat e1350]#tabedit networks (檢查你的設(shè)置)
dns設(shè)置
[root@xcat iso]# less /etc/resolv.conf
search clusters.com
nameserver 127.0.0.1
#nameserver 167.64.13.100
[root@xcat iso]#makedns
[root@xcat iso]#service named restart
dns測(cè)試正確情況下會(huì)看到下面輸出
[root@xcat iso]# nslookup BLADE dhcp 設(shè)置 [root@xcat iso]# makedhcp -n
[root@xcat iso]#service dhcpd start
TFTP設(shè)置
默認(rèn)tftp文件在/tftpboot下
[root@xcat iso]mknb x86_64 定義BLADEcenter管理模塊
#tabedit mp
#tabedit mpa 激活刀片管理模塊遠(yuǎn)程控制 snmp和ssh [root@xcat iso]# rspconfig BC01 snmpcfg=enable sshcfg=enable
BLADEmm: SNMP enable: OK
BLADEmm: SSH enable: OK 增加計(jì)算節(jié)點(diǎn)
#tabedit nodelist
#tabedit noderes 獲取mac地址
[root@xcat ~]#getmacs BLADE1-BLADE12 調(diào)整刀片啟動(dòng)順序 [root@xcat~]# rbootseq BLADE1-BLADE12 n,h,c,f
BLADE1: net,hd0,cdrom,floppy
h
開(kāi)始安裝
[root@xcat~]# BLADEset BLADE1 install
監(jiān)控安裝
[root@xcat~]# nodestat BLADE1
總結(jié)
- 上一篇: java 8 java demo_Jav
- 下一篇: Linux之特殊权限(SUID/SGID