xCAT2安装配置
xCAT2安裝配置?2011-11-17 18:04:47
1
硬件:刀片,交換機,控制臺,管理節點
軟件:系統rhel5.5 xcat2.3
2
網絡IP設置:
管理節點 eth0 167.64.13.100 hostname XCAT
刀片IP:167.64.13.1 NETMASK=255.255.0.0 3
管理節點安裝
操作系統rhel5.5完全安裝
4
管理節點操作系統修改
4.1
檢查你的操作系統,如果selinux為 enabled 需要執行下面例子程序。
[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
刪除系統安裝包 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
刀片中心設置
5.1?
找臺筆記本或其他機器連接到刀片中心。一般默認IP為192.168.70.125,用戶為USERID 密碼
為PASSW0RD
Blade Tasks-->Configuration
這里修改BLADE 名字為BC01
MM Control-->General Settings
下修改刀片中心名字為BLADEmm
MM Control-->Network Interfaces
設置刀片中心IP為167.64.13.1
MM Control-->Security下激活ssh server
設置完成重啟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 光盤到/root/xcat2/rhel5.5/,并在/etc/yum.repos.d/下創建文件:
rhels5.5.repo,內容如下:
[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 (根據提示y就行了)
安裝完成測試
[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
設定root用戶profile
cd /etc/profile.d/
./xcat.sh
這個操作目的設定xcat環境變量
[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
驗證安裝
[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",,
如果發現某些選項不對可以用tabedit site修改
用copycds命令拷貝鏡像到管理節點
例。
[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
對網絡配置表配置 [root@xcat e1350]#tabedit networks (檢查你的設置)
dns設置
[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測試正確情況下會看到下面輸出
[root@xcat iso]# nslookup BLADE dhcp 設置 [root@xcat iso]# makedhcp -n
[root@xcat iso]#service dhcpd start
TFTP設置
默認tftp文件在/tftpboot下
[root@xcat iso]mknb x86_64 定義BLADEcenter管理模塊
#tabedit mp
#tabedit mpa 激活刀片管理模塊遠程控制 snmp和ssh [root@xcat iso]# rspconfig BC01 snmpcfg=enable sshcfg=enable
BLADEmm: SNMP enable: OK
BLADEmm: SSH enable: OK 增加計算節點
#tabedit nodelist
#tabedit noderes 獲取mac地址
[root@xcat ~]#getmacs BLADE1-BLADE12 調整刀片啟動順序 [root@xcat~]# rbootseq BLADE1-BLADE12 n,h,c,f
BLADE1: net,hd0,cdrom,floppy
h
開始安裝
[root@xcat~]# BLADEset BLADE1 install
監控安裝
[root@xcat~]# nodestat BLADE1
分類:?LINUX
1
硬件:刀片,交換機,控制臺,管理節點
軟件:系統rhel5.5 xcat2.3
2
網絡IP設置:
管理節點 eth0 167.64.13.100 hostname XCAT
刀片IP:167.64.13.1 NETMASK=255.255.0.0 3
管理節點安裝
操作系統rhel5.5完全安裝
4
管理節點操作系統修改
4.1
檢查你的操作系統,如果selinux為 enabled 需要執行下面例子程序。
[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
刪除系統安裝包 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
刀片中心設置
5.1?
找臺筆記本或其他機器連接到刀片中心。一般默認IP為192.168.70.125,用戶為USERID 密碼
為PASSW0RD
Blade Tasks-->Configuration
這里修改BLADE 名字為BC01
MM Control-->General Settings
下修改刀片中心名字為BLADEmm
MM Control-->Network Interfaces
設置刀片中心IP為167.64.13.1
MM Control-->Security下激活ssh server
設置完成重啟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 光盤到/root/xcat2/rhel5.5/,并在/etc/yum.repos.d/下創建文件:
rhels5.5.repo,內容如下:
[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 (根據提示y就行了)
安裝完成測試
[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
設定root用戶profile
cd /etc/profile.d/
./xcat.sh
這個操作目的設定xcat環境變量
[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
驗證安裝
[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",,
如果發現某些選項不對可以用tabedit site修改
用copycds命令拷貝鏡像到管理節點
例。
[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
對網絡配置表配置 [root@xcat e1350]#tabedit networks (檢查你的設置)
dns設置
[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測試正確情況下會看到下面輸出
[root@xcat iso]# nslookup BLADE dhcp 設置 [root@xcat iso]# makedhcp -n
[root@xcat iso]#service dhcpd start
TFTP設置
默認tftp文件在/tftpboot下
[root@xcat iso]mknb x86_64 定義BLADEcenter管理模塊
#tabedit mp
#tabedit mpa 激活刀片管理模塊遠程控制 snmp和ssh [root@xcat iso]# rspconfig BC01 snmpcfg=enable sshcfg=enable
BLADEmm: SNMP enable: OK
BLADEmm: SSH enable: OK 增加計算節點
#tabedit nodelist
#tabedit noderes 獲取mac地址
[root@xcat ~]#getmacs BLADE1-BLADE12 調整刀片啟動順序 [root@xcat~]# rbootseq BLADE1-BLADE12 n,h,c,f
BLADE1: net,hd0,cdrom,floppy
h
開始安裝
[root@xcat~]# BLADEset BLADE1 install
監控安裝
[root@xcat~]# nodestat BLADE1
總結
- 上一篇: java 8 java demo_Jav
- 下一篇: 装水体积c语言,C语言基础之--size