Chinaunix首页 | 论坛 | 博客
  • 博客访问: 80525
  • 博文数量: 52
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: -20
  • 用 户 组: 普通用户
  • 注册时间: 2018-06-04 17:51
文章分类

全部博文(52)

文章存档

2013年(6)

2012年(3)

2011年(4)

2010年(18)

2009年(21)

我的朋友

分类:

2009-09-07 16:51:15

IBM AIX NIM 安装实例
  来源:IBM小型机在线 | 日期:2006-7-14


基本操作系统的安装

一 环境:两台f50 : test1 172.16.3.201
test2 172.16.3.202
操作系统; aix 5.2 ml01 

其中:test1 作为server 
test2 作为client 
二 在aix 5.2 的操作系统上默认客户端的软件就已经安装了。
bos.sysmgt.nim.client 5.2.0.10 COMMITTED Network Install Manager 
三 在server上安装nim server 软件
bos.sysmgt ALL 
@ 5.2.0.0 Filesystem Quota Commands 
@ 5.2.0.0 License Management 
@ 5.2.0.10 Network Install Manager - Client Tools 
+ 5.2.0.10 Network Install Manager - Master Tools 
+ 5.2.0.10 Network Install Manager - SPOT 
@ 5.2.0.10 Software Error Logging and Dump Service Aids
@ 5.2.0.10 Software Trace Service Aids 
@ 5.2.0.10 System Backup and BOS Install Utilities 
@ 5.2.0.10 System Management Interface Tool (SMIT) 
+ 5.2.0.0 Trace Report GUI

四 配置nim server . 
在test1 上 :smitty nim >> config nim environment >> 

config a basic nim environment (easy startup > >

Initialize the NIM Master:
* Primary Network Interface for the NIM Master [en0] 
Basic Installation Resources:
* Input device for installation images [cd0] 
* LPP_SOURCE Name [lpp_source1]
* LPP_SOURCE Directory [/export/lpp_source] 
Create new filesystem for LPP_SOURCE? [yes] 
Filesystem SIZE (MB) [650] 
VOLUME GROUP for new filesystem [rootvg] 
* SPOT Name [spot1]
* SPOT Directory [/export/spot] 
Create new filesystem for SPOT? [yes] 
Filesystem SIZE (MB) [350] 
VOLUME GROUP for new filesystem [rootvg] 
Create Diskless/Dataless Machine Resources? [no] 
Specify Resource Name to Define:
ROOT (required for diskless and dataless) [root1]
DUMP (required for diskless and dataless) [dump1]
PAGING (required for diskless) [paging1]
HOME (optional) [home1]
SHARED_HOME (optional) [shared_home1]
TMP (optional) [tmp1]
Diskless/Dataless resource directory [/export/dd_resource]
Create new filesystem for resources? [yes] 
Filesystem SIZE (MB) [150]

回车后,系统开始自己创建jfs : /export/lpp_source 
从cd0 上向; /export/lpp_source/lpp_source1 复制安装映像。 

创建jfs :/export/spot 
从映像资源:lpp_source 安装spot 资源, 并且存储在:

/export/spot/spot1 中

五 添加客户机到nim环境
客户机在不同的状态会有不同的添加方法。并且在同一状态也

有两种不同方法。
我们先介绍客户机上有操作系统的情况。 在这种情况下,客户

机本身有操作系统,
我们可以从客户机上经过配置把自己加入到nim环境中,也可以从

nim server上把客户 
机加入。同时如果我们的客户机上有多块硬盘,我们可以选择从

nim server 上覆盖安装有操作系统的硬盘或者把基本操作系统安

装到其他硬盘上。 

1. 在客户机上:
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 "

2 。 我们也可以选择在nim server 上加入客户机。 
Smitty nim >> Perform NIM Administration Tasks>> 

Manage Machines>>Define a Machine

* Host Name of Machine [test2]
(Primary Network Install Interface)
选择网络为ent 

* NIM Machine Name [test2]
* Machine Type [standalone] 
* Hardware Platform Type [chrp] 
Kernel to use for Network Boot [mp] 
Primary Network Install Interface
* Cable Type [tp] 
Network Speed Setting [] 
Network Duplex Setting [] 
* NIM Network [ent-Network1]
* Network Type ent
* Ethernet Type Standard 
* Subnetmask []
* Default Gateway Used by Machine []
* Default Gateway Used by Master []
* Host Name test2
Network Adapter Hardware Address [0]
Network Adapter Logical Device Name []
IPL ROM Emulation Device [] 
CPU Id []
Machine Group []

六 从nim server 向 客户机安装基本操作系统
1. 从test1 上 :
smitty nim_bosinst >> r6f50 machines standalone
>> rte - Install from installation images >>
>> lpp_source1 resources lpp_sourc >> 
>> spot1 resources spot 
回车后等到ok 出现, 接下来,test2 客户机上就会出现警示:

nim 服务已经启用,
机器将被安装操作系统。 然后test2 就会自动重起。 并且从网络启动。 

进入安装界面
就像我们从光盘安装系统一样,进行安装。 安装后test2 客户机会重起。

并且保留test2
的主机名和172.16.3.202 的ip 地址。 但是root password 没有了,

需要手工设置。 

2. 还有一种安装基本操作系统的方法——从客户机开始安装
smitty nim >>Manage Network Install Resource Allocation>>

Allocate Network Install Resources>> 选择 lpp_source1 

lpp_source 和 spot1 spot 

smitty nim >> Perform a NIM Client Operation>>bos_inst >> 

Network Install Operation to Perform bos_inst
Source for BOS Runtime Files rte 
Remain NIM client after install? yes 
installp Flags [-aXg]

接下来test2 客户机上就会出现警示:nim 服务已经启用,
机器将被安装操作系统等等,步骤同第一种方法。 


七 在nim 客户机上使用mksysb 映像安装基本操作系统

一 先决条件 。
同上面步骤一样,先要配置nim server , 然后把客户机加入到nim 环境中。 
二 spot 系统资源已经在上述步骤中配置了,下面我们配置mksysyb 资源。
1. 首先要有mksysyb 映像文件。 在nim server 上运行smitty mksysyb 

* Backup DEVICE or FILE [/tmp/liudl] 
Create MAP files? no 
EXCLUDE files? no 
List files as they are backed up? no 
Verify readability if tape device? no 
Generate new /image.data file? yes 
EXPAND /tmp if needed? no 
Disable software packing of backup? no 
Number of BLOCKS to write in a single output []

注意。 Mksysb 映像文件最好不要放在/ 目录下,在该例子中,我们把它
放在/tmp下。 

当然我们也可以从客户机或其他机器上作mksysb ,然后传到nim server 上。 

3. 在nim server 上Smitty nim>> Perform NIM Administration Tasks〉〉
Manage Resources〉〉Define a Resource 
选择 mksysb = a mksysb image 

* Resource Name [mksysbres]
* Resource Type mksysb
* Server of Resource [master] 
* Location of Resource [/tmp/liudl] 
Comments []
Source for Replication [] 
-OR-
System Backup Image Creation Options:
CREATE system backup image? no 
NIM CLIENT to backup [] 
PREVIEW only? no 
IGNORE space requirements? no 
EXPAND /tmp if needed? no 
Create MAP files? no 
Number of BLOCKS to write in a single output [] 
(leave blank to use system default)
Use local EXCLUDE file? no 
(specify no to include all files in backup)
-OR-
EXCLUDE_FILES resource []

回车后, ok , mksysb 资源就创建成功了。

三 用mksysb 映像安装客户机基本操作系统
1. 在nim server 上 smitty nim >> 
Perform NIM Software Installation and Maintenance Tasks>>
Install and Update Software>>
Install the Base Operating System on Standalone Clients>>
选择客户机名称〉〉选择安装方式 mksysb - Install from a mksysb〉〉
选择 mksysbres resources mksysb 
选择 spot1 resources spot

* Installation Target test2
* Installation Type mksysb
* SPOT spot1
LPP_SOURCE [] 
MKSYSB mksysbres
BOSINST_DATA to use during installation [] 
IMAGE_DATA to use during installation [] 
RESOLV_CONF to use for network configuration [] 
Customization SCRIPT to run after installation [] 
Customization FB Script to run at first reboot [] 
ACCEPT new license agreements? [yes] 
Remain NIM client after install? [yes] 
Preserve NIM definitions for resources on [yes] 
this target?
FORCE PUSH the installation? [no] 
Initiate reboot and installation now? [yes

回车后开始nim 安装。 客户机会重起,选择显示器,语言,硬盘等等,
开始客户机安装过程,然后客户机重起。 

八 从没有操作系统的客户机上进行nim 安装

以上我们总结了如何从nim server 和从nim 客户机上安装基本操作系统。但是所举的
例子都是在客户机上已经有aix 操作系统后,我们对客户机进行配置,然后从nim server 
或从客户机自己本身激发安装过程。下面介绍一下如何从没有操作系统的客户机上用
nim 安装基本操作系统。

1. 首先还是安装并配置好nim server . 
2. 把nim 客户机加入到nim 环境中。(从nim server 上做,见第五章第2小节)。
3. 启动客户机,并且进入sms 菜单( 见led 上显示e1f1 时, 按f1 键)
选择 utility
选择 RIPL(remote initial program load setup ) 
选择 set address 
输入:client address : 172.16.3.201 
server address : 172.16.3.202 
gateway address : 172.16.3.1 
subnet mask : 255.255.255.0 
按save 
选择 config 
ibm 100/10 ethernet adapter 
选择 ok 
data rate : 10 mb 
full duplex : no 
选择 save 
选择 ping 
ping set up :
   client address : 172.16.3.201 
server address : 172.16.3.202 
gateway address : 172.16.3.1 
subnet mask : 255.255.255.0 
      选择 adapter 
ibm 100/10 ethernet 
选择 ping 
如果配置正确的话,ping 的结果是ok . 
exit 退出
选择:mutiboot startup 
选择 :boot sequence 
设置启动顺序:1. ethernet 
2. hdisk 
exit 退出 (这时系统会从网络启动。 同时在nim server 上 选择基本操作系统安装 。 客户机就会从网络启动并且执行基本操作系统
的安装。 )
阅读(1256) | 评论(0) | 转发(0) |
0

上一篇:oracle升级expdp备份建表等

下一篇:AIX存储

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