Chinaunix首页 | 论坛 | 博客
  • 博客访问: 117416
  • 博文数量: 6
  • 博客积分: 1581
  • 博客等级: 上尉
  • 技术积分: 309
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-20 10:01
文章分类
文章存档

2013年(4)

2011年(1)

2010年(1)

分类: LINUX

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
阅读(3328) | 评论(0) | 转发(0) |
0

上一篇:df

下一篇:IBM DS4000系列更改SM软件密码

给主人留下些什么吧!~~