sgi集群管理软件SMC安装步骤整理

来源:互联网 发布:长春理工大学软件学院 编辑:程序博客网 时间:2024/06/02 15:06

一:软硬件要求

1.硬件最低要求

管理节点

• 2.2 GHz IntelXeon or AMD Opteron (64-bit)

• 2 GB of RAM (4 GBor more recommended)

• 4 GB local diskspace (minimum) — 50 GB or more is typically used

• 100 Mbps management network (including switches and interface card) — 1000 Mbps recommended

计算节点

• 3.0 GHz IntelPentium 4 (32-bit) or 2.2 GHz Intel Xeon or AMD Opteron (64-bit)

• 1 GB RAM

• 100 MB local diskt ypically used, diskless operation is also supported

• 100 Mbps management network (including switches and interface card) — 1000 Mbps recommended

支持的管理平台

• Roamer

• IPMI

• DRAC

• ILO

• Intel Power NodeManager (IPNM)—Powered by Intel Data Center Manager (DCM

管理端至少有两个网口


2.操作系统要求

SMC管理端

You can run SGIManagement Center Server on the following operating systems and architectures:

• SUSE LinuxEnterprise Server 11 (also with SP 1 and SP 2)

• x86_64 hardware

• Red HatEnterprise Linux 6.0–6.4

• x86_64 hardware

• CommunityEnterprise Operating System (CentOS) 6.0–6.4

• x86_64 hardware

SMC Payload安装端

You can run the SGIManagement Center Payload Installation on nodes running the following operatingsystems and

architectures:

• SUSE LinuxEnterprise Server 11 (also with SP 1 and SP 2)

• x86_64 hardware

• Red Hat EnterpriseLinux 6.0–6.4

• x86_64 hardware

• CommunityEnterprise Operating System (CentOS) 6.0–6.4

• x86_64 hardware

SMC客户端

You can install andrun the SGI Management Center Client on the same operating systems andplatforms supported by

the SGI ManagementCenter Server as described above.

In addition, youcan install the client software on the following Windows platforms:

• Windows 7

• Windows Server2003

• Windows Server2008/Windows Server 2008 R2

• Windows Vista

• Windows XP

SMC支持的内核

SGI recommend susing the kernel that shipped with your version of Linux. If you need to upgrade your kernel, please

consult SGI before doing so.


 

注:此次使用的操作系统为SLES11SP2 x86_64


二:系统基本环境准备

1.设置主机名为admin

2.管理节点有eth0和eth1两个网口,此次eth0做为外网网口,eth1作为管理网口,并通过yast设置eth1的IP地址为10.0.10.1/16(SMC默认的subnet段为10.0.0.0/16),如果想要换个网段(建议不要更改),比如eth1的IP地址为172.16.10.1/16,需要更改SMC的默认设置(如何设置请看最后备注)

3.修改/etc/hosts文件添加内容如下

#Management Entries

10.0.10.1       admin.default.domain admin

4.在管理网口上配置multicast Routes(多播路由)

1.在/etc/sysconfig/network/目录下新建routes文件内容如下

239.192.0.0 0.0.0.0255.255.255.0 eth1

239.255.0.0 0.0.0.0255.255.255.0 eth1

5.重启网络并检查多播路由是否设置成功

admin:~ # /etc/init.d/networkrestart

admin:~ # route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

0.0.0.0         192.168.78.2    0.0.0.0         UG   0      0        0 eth0

10.0.0.0        0.0.0.0         255.255.0.0     U    0      0        0 eth1

127.0.0.0       0.0.0.0         255.0.0.0       U    0      0        0 lo

169.254.0.0     0.0.0.0         255.255.0.0     U    0      0        0 eth0

192.168.78.0    0.0.0.0         255.255.255.0   U    0      0        0 eth0

239.192.0.0     0.0.0.0         255.255.255.0   U    0      0        0 eth1

239.255.0.0     0.0.0.0         255.255.255.0   U    0      0        0 eth1

admin:~ #

 

三:开始安装SMC

1.在/mnt/目录下新建suse和sgimc目录,分别用来挂载sles11-sp2.iso和sgimc.iso

admin:~ # mkdir/mnt/{suse,sgimc}

2.挂载sles11-sp2.iso和sgimc.iso

admin:~ # mount/dev/cdrom /mnt/suse/

mount: block device/dev/sr0 is write-protected, mounting read-only

admin:~ # mount/root/sgimc-1.7.4-cd1-media-sles11sp2-x86_64.iso /mnt/sgimc/

mount: warning:/mnt/sgimc/ seems to be mounted read-only.

3.添加sgimc源并刷新源

admin:~ # zypper ar dir:///mnt/sgimc/  "sgimc"

admin:~ # zypper ref

4.输入命令yast2打开Yast Control Center,依次点击左侧的"Software"—右侧的"Software Management"打开软件管理,如下图所示


依次点击"View"—"Patterns"打开Patterns,如下图所示


勾选最下方的"SGI Management Center Server",如下图所示


接着添加一些额外需要的包,点击"SGI Management Center Supplemental",在右侧把conman和powerman选择上(如果需要其他的,依次选择上即可)

最后再依次点击"Accept"—"continue",完成SMC的安装

5.配置dhcp

vi /etc/sysconfig/dhcpd

在DHCPD_INTERFACE=" "双引号内添加eth1即DHCPD_INTERFACE="eth1" 

6.配置atftp

admin:~ #vi /etc/sysconfig/atftpd

确保ATFTPD_DIRECTORY="/tftpboot"(SLES11SP3 ATFTPD_DIRECTORY="/srv/tftpboot")     

7.把以上服务启动并设置为开机启动

admin:~ # for i in dhcpd atftpd ntp ipmi; do /etc/init.d/$i start; done
admin:~ #for i in dhcpd atftpd ntp ipmi; do chkconfig $i on; done

8.输入临时lincense

admin:~ # cat keys.dat

# SGI MGMT CENTER1.0

 

product=SGIMC,version=1.000, count=0, \

begDate=1404116398,expDate=1405400399, licenseID=0, \

key=9JNHSkEtXDL1Q+y4RvkQejgLDqJ3wJrC,info='SGIMC 1', \

attr=' NC=0ST=CL',vendor='Silicon Graphics International', \

ref_id='297809'

admin:~ # cat keys.dat >/etc/lk/keys.dat

9.把日期设置为2014年7月1日(时间任意)

admin:~ # date 070109102014

10.重启mgr服务

admin:~ #/etc/init.d/mgr restart

Stopping SGIManagement Center services:  .                          done

Starting SGI ManagementCenter services:  . . .                         done


四:SMC配置

1.双击桌面快捷图标,会弹出下面的登录对话框


输入默认密码root,并点击ok后,即可进入smc管理界面,如下所示


2.依次点击"file"—“New Partition”,新建Admin和Compute分区


3.添加管理节点到SMC,依次点击"file"—"Configure SGI Management Center",如下图选择eth1,并点击"next"—"Apply"完成添加


通过"Instrumentation"菜单可以查看资源使用信息,如上图所示


五:images制作

首先要知道image=payload+kernel

1.制作payload

依次点击"file"—"New Payload",出现新建New Payload对话框,如下图所示

各个部分填写完毕后,如下图所示


点击“Add”添加必须的软件包,比如让系统支持Infiniband,安装编译工具gcc、gcc-c++,点击“Add”后出现下面的类别选择对话框,选择需要的类别如下所示

点击"ok",返回到主界面,可看到新添加的两个类别,如下图所示

点击"apply"保存设置

完毕后,先不要点击"Check in",再次点击"Add",添加下面两个必须的软件包

 

sgimc-1.7.4-sgi708rp17.sles11sp2.x86_64.rpm

java-1.6.0-sun-1.6.0.30-sgi708rp4.sles11sp2.x86_64.rpm

 

添加完毕后再次点击"Apply"保存设置,最后点击"Check in"—“ok”添加到VCS,如下图所示

至此Payload制作完毕

2.制作kernel

和制作Payload过程差不多,填写好的新建kernel对话框如下所示

依次点击"Apply"—"Check in"完成kernel制作

3.制作images

打开新建image对话框

输入相应的名称,描述,Payload和kernel就选择刚才制作的Payload和kernel,下面的Partitions也要填写,当然也可以挂载nfs,lustre等文件系统,填写完毕后的image如下所示

最后依次点击"Apply"—"Check in"完成image的制作

 

六:添加客户端

1.首先设置客户端IPMI BMC的IP地址如192.168.2.10,并记录下作为管理网口的MAC地址,比如欲添加的compute主机名为node1,MAC地址为00:0D:29:F8:89:62

2.修改管理端hosts文件添加内容如下

# Ethernet NodeEntries

10.0.1.1        node1.default.domain    node1

 

# BMC Entries

192.168.2.10    node1-bmc.default.domain        node1-bmc

3.复制hosts文件到/opt/sgi/sgimc/imaging/root/payloads/Sles11-sp2-Payload/etc/目录下

admin:~# scp/etc/hosts /opt/sgi/sgimc/imaging/root/payloads/Sles11-sp2-Payload/etc/

4.打开刚才建立的Payload,再次点击"Check in"更新Payload

5.首先点击右侧的“imaging”,右击建立的image选择"copy",为备份起个名字,然后编辑制作的image,把Payload换成更新后的Payload

6. 最后依次点击"Apply"—"Check in"完成image的更新

7.开始添加客户端

依次点击"file"—"New Host"打开新建主机对话框,上面部分填写如下所示

Platform Management部分选择“Override Global  settings”然后点击"Configure"后填写如下所示

点击"Ok",返回到主界面,勾选下面的所有功能,如下图所示

最后点击"Apply"完成客户端的添加

8.客户端部署

依次选择"node1"—"Provisioning"—"Sles11-sp2-Image(2)"如下图所示

这样就完成了对客户端的部署,当然本实验不会成功,因为我用的是虚拟机(没有IPMI设备)

以后会在物理机上测试,至此SMC安装配置完毕


备注:

一:更改SMC默认子网段

1.通过yast更改eth1 IP为172.16.10.1/16

2.修改hosts文件,把10.0.10.1换成172.16.10.1

3.依次点击"Edit"—"Preferences"打开Preferences对话框,默认的网络设置如下

把网络设置更改为你需要的网段和IP,如下所示

点击"ok"保存设置,退出SMC,重启mgr服务即可



0 0