免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4850 | 回复: 6
打印 上一主题 下一主题

[安装配置] 使用NIM安装多个静态的lpar手册 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-12 23:26 |只看该作者 |倒序浏览
一、        NIM简介
NIM,就是通过网络进行操作系统和软件安装的管理方法。
随着机房内的服务器逐渐增多,分区服务器越来越多的使用, 如何在各服务器或分区上快速安装操作系统和系统软件,使机房内的服务器保持特定版本的操作系统,显得越来越重要。
使用NIM不仅能安装和维护AIX操作系统,还能维护和安装其他的软件、补丁。NIM也允许在安装过程中和安装完成后客户化的配置服务器。
使用NIM环境可以减少对物理介质的使用,如磁带和光盘,在NIM中这些设备是服务器的资源。也可以使用NIM对服务器进行系统备份,并将其存在NIM环境中的服务器上。在需要时,再使用NIM将备份恢复到同一台服务器上(分区)或其他服务器上(分区)。
NIM环境是由NIM服务器和NIM客户端构成,NIM服务器提供资源(如,用于安装的文件和程序),接受服务器提供资源的称为NIM客户端。 在NIM中,客户端的操作需要使用NIM资源,这些资源实体是由文件和目录构成的。AIX中NIM客户端是通过NFS来访问资源。
在配置NIM环境前,NIM服务器首先要满足以下条件:
。 安装NFS和TCP/IP 软件包
。 正确配置TCP/IP
。 配置名字解析方法
任何安装方法都需要定义软件安装源(software source)―― 从哪安装,例如使用AIX系统光盘进行安装。 AIX的系统光盘上包含有可以引导系统的引导映像、安装映像和用于安装系统的安装命令等。
在NIM环境中,软件安装源被分成两个NIM资源:LPP_source 和 SPOT。 LPP_source 就是NIM服务器上的一个目录,当创建LPP_source时安装映像就从光盘上拷贝到LPP_source目录中。SPOT (Shared Product Object Tree) 也是NIM服务器上的一个目录。其中存放了安装系统的命令 ―― 用于将LPP_source中的安装映像安装到服务器上。 和用于引导NIM客户机所必需的系统引导映像。每种网卡(Ethernet, token ring 等)有与之对应的不同引导映像。

论坛徽章:
0
2 [报告]
发表于 2005-03-12 23:27 |只看该作者

使用NIM安装多个静态的lpar手册

第2章        配置NIM Server环境
在server上安装nim server 软件
+ 5.2.0.10 Network Install Manager - Master Tools
+ 5.2.0.10 Network Install Manager – SPOT
升级NIM至ML5107
配置nim server环境
# nim_master_setup –B
##############################NIM master setup ##########################
#  During script execution, lpp_source and spot resource creation times            #
#  may vary. To view the install log at any time during nim_master_setup,          #
#  run the command: tail -f /var/adm/ras/nim.setup in a separate screen.            #
#######################################################################
Device location is /dev/cd0
Resources will be defined on volume group rootvg
Resources will exist in filesystem /export/nim
Checking for backup software....already installed
Checking /tmp space requirement....done
Installing NIM master fileset....already installed
Defining NIM master...
0513-071 The nimesis Subsystem has been added.
0513-071 The nimd Subsystem has been added.
0513-059 The nimesis Subsystem has been started. Subsystem PID is 647342.
Located volume group rootvg.
Creating /export/nim filesystem....done
Creating /tftpboot filesystem....done
Creating resolv_conf resource resolv_res....done
Creating bosinst_data resource (tty) bid_tty_ow....done
Creating bosinst_data resource (lft) bid_lft_ow....done
Checking /export/nim space requirement....done
Creating lpp_source resource 510lpp_res....done
Checking /export/nim space requirement....done
Checking /tftpboot space requirement....done
Creating spot resource 510spot_res....done
Creating resource group basic_res_grp....done
The following resources now exist:
boot            resources       boot
nim_script      resources       nim_script
resolv_res      resources       resolv_conf
bid_tty_ow      resources       bosinst_data
bid_lft_ow      resources       bosinst_data
510lpp_res      resources       lpp_source
510spot_res     resources       spot
NIM master setup is complete - enjoy!

论坛徽章:
0
3 [报告]
发表于 2005-03-12 23:29 |只看该作者

使用NIM安装多个静态的lpar手册

3.1        定义客户端
客户机在不同的状态会有不同的添加方法。并且在同一状态也有两种不同方法。我们先介绍客户机上有操作系统的情况。 在这种情况下,客户机本身有操作系统,我们可以从客户机上经过配置把自己加入到nim环境中,也可以从nim server上把客户机加入。同时如果我们的客户机上有多块硬盘,我们可以选择从nim server 上覆盖安装有操作系统的硬盘或者把基本操作系统安装到其他硬盘上。
已安装操作系统的客户机上:
smitty nim >;>; Configure Network Installation Management Client
Fileset
* Machine Name [test2]
* Primary Network Install Interface [en0]
* Host Name of Network Install Master [test1]
Hardware Platform Type [chrp]
Kernel to use for Network Boot [mp]
IPL ROM Emulation Device []
Comments []
Alternate Port Numbers for Network Communications
(reserved values will be used if left blank)
Client Registration []
注意,在两台机器的/etc/hosts 要可以彼此正确解析这里我们/etc/hosts
172.16.3.201 test1
172.16.3.202 test2
回车命令成功后,会在/etc/下生成 niminfo 文件
如下:
#------------------ Network Install Manager ---------------
# warning - this file contains NIM configuration information
# and should only be updated by NIM
export NIM_NAME=test2
export NIM_HOSTNAME=test2
export NIM_CONFIGURATION=standalone
export NIM_MASTER_HOSTNAME=test1
export NIM_MASTER_PORT=1058
export NIM_REGISTRATION_PORT=1059
export NIM_LICENSE_ACCEPT=yes
export RC_CONFIG=rc.bos_inst
export NIM_BOSINST_RECOVER="/../SPOT/usr/lpp/bos.sysmgt/nim/methods/
c_bosinst_env -a hostname=test2"
export SPOT=tscf50:/export/spot/spot1/usr
export NIM_CUSTOM="/../SPOT/usr/lpp/bos.sysmgt/nim/methods/
c_script -a location=test1:/export/nim/scripts/test2.script"
export NIM_BOS_IMAGE=/SPOT/usr/sys/inst.images/bos
export NIM_BOS_FORMAT=rte
export NIM_HOSTS=" 172.16.3.202:test2 172.16.3.201:test1 "
export NIM_MOUNTS=" test1:/export/lpp_source/lpp_source1:/SPOT/usr/sys/inst.images:
dir "

论坛徽章:
0
4 [报告]
发表于 2005-03-12 23:40 |只看该作者

使用NIM安装多个静态的lpar手册

在nim server 上加入客户机。

1. 运行smitty nim_mkclient 来定义NIM环境里的客户机分区,在每一个要安装的LPAR都要运行:
smitty nim_mkclient
或者 smitty nim
->; Perform NIM Administration Tasks
->; Manage Machines
->; Define a Machine
2. 选择 Add a NIM Client

3. 输入一个客户机的主机名并且按下回车键
如果一个菜单提示你“the Type of Network Attached to Primary Network
Install Interface”, 从列表里选择网卡并且按下回车键。.
在“ Define a Machine ”菜单里,在录入区填充必要的信息,确认所有信息是正确的,尤其是 Hardware Platform Type (chrp), Kernel Type (mp)和Network Type (最可能是tp).完成后按下回车键:


4. 在每一个客户机分区重复相同的步骤。
5. 安装NIM 5700网卡补丁
解决使用5700网卡LPAR分区不能从网络启动问题
下载下面的fix PTF
bos.diag.com.5.1.0.55.bff
bos.diag.rte.5.1.0.54.bff
devices.pci.14106802.rte.5.1.0.53.bff
devices.pci.14106902.diag.5.1.0.53.bff
devices.pci.14106902.diag.5.1.0.56.bff
devices.pci.14106902.rte.5.1.0.62.bff
devices.pci.14108802.rte.5.1.0.2.bff
devices.pci.14108902.rte.5.1.0.3.bff
拷贝到NIM LPP目录
bffcreate –d ‘/ptf/5700’ –f all –t ‘/export/nim/lpp_source/510lpp_res’ -X

6.安装前面下载的5700网卡补丁到NIM SPOT
smitty nim_inst_all

论坛徽章:
0
5 [报告]
发表于 2005-03-12 23:47 |只看该作者

使用NIM安装多个静态的lpar手册

http://unix.iswoo.com/article/350000006-050312233737-ISWOO.doc

论坛徽章:
0
6 [报告]
发表于 2006-06-06 15:49 |只看该作者
好贴子,只是太注重理论方面了,而实际的操作方面还不是很全,还是“欲知详情,请听下回分解”呢?

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-11-09 06:20:00
7 [报告]
发表于 2006-06-06 18:28 |只看该作者
的确好文章呀
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP