分类:
2009-08-18 14:36:38
摘 要:本文详细描述了AIX5.3环境下利用nim使用mksysb镜像安装机器的步骤,对于没有nim基础的同仁可以快速入门,对于有一定基础的同仁,有一定的参考意义。
1) 更快速,在
2) 对于分区,无须切换光驱、磁带机,且可通过hmc远程完成。
3) 对于单机,无须磁带机甚至光驱即可完成。
4) 第一次安装配置比较麻烦,但机器越多优势越明显。
至少至AIX5.2开始,为了简化NIM安装,有了eznim,我们下面会利用eznim的简单快捷,nim的强大,完成所有的工作。
机器名 |
bxerp4 |
tlg |
tlg |
用途 |
NIM sever |
NIM client(目的机) |
mksysb源机 |
机器型号 |
P660 (7026-H61) |
P615(7029 |
P570(9117-570)分区 |
操作系统 |
AIX 5.304 |
AIX 5.304 |
AIX 5.304 |
其它相关配置 |
rootvg: |
rootvg:73*2 |
rootvg:36*2 |
软件配置 |
安装目录/soft_ins |
VC7.0+HACMP5.205+ORACLE |
|
IP |
10.25.100.151/10.3.130.70 |
|
190.2.206.17 |
将1个P570上的分区(可视作类同P550),完全复制到一台P615上,而P615没有内置磁带机,且直接网络不通。
用中间一台P660做跳板,先配置NIM SERVER,然后将P570的mksysb恢复安装到P615.
1) 在mksysb源机器上运行mksysb,获得mksysb文件。
------------------------------------------------------------------------------------------------------------------
[tlg
Back Up the System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
WARNING: Execution of the mksysb command will
result in the loss of all material
previously stored on the selected
output medium. This command backs
up only rootvg volume group.
* Backup DEVICE or FILE [/tlg
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
Backup extended attributes? yes
--------------------------------------------------------------------------------------------------------
约半小时后完成。
2) 将生成的mksysb文件ftp到nim server机器bxerp4的指定目录/soft_ins下
[tlg
Connected to 10.3.130.70.
220 bxerp4 FTP server (Version 4.2 Fri Oct 7 19:22:01 CDT 2005) ready.
Name (10.3.130.70:root): root
331 Password required for root.
Password:
230-Last unsuccessful login: Wed Jul 5 21:39:09 BEIST 2006 on /dev/pts/2 from bxerp1.baosight.com
230-Last login: Fri Jul 7 13:53:34 BEIST 2006 on /dev/pts/0 from
230 User root logged in.
ftp> cd /soft_ins
250 CWD command successful.
ftp> bin
200 Type set to I
ftp> put 20060706_tlg
200 PORT command successful.
150 Opening data connection for 20060706_tlg
226 Transfer complete.
13830600 bytes sent in 1.722 seconds (7844 Kbytes/s)
local: 20060706_tlg
ftp>bye
从IBM网站可得到5304-TL和
准备一张AIX5.3的安装光盘,插入P660的光驱。
[bxerp4][root][/]>ls -l /soft_ins
-rw-r----- 1 root system 4460544000 Jul 06 14:09 20060706_tlg
drwxr-x--- 2 op1 staff 12288 Jun 24 15:05
drwxr-x--- 2 op1 staff 36864 Jun 24 14:35 5300-04-TL
对于nim server,缺省是放在rootvg下,自动生成文件系统,大小可预留