作者mmm951 (白天天气好)
看板MIS
标题[心得] NIM on Linux for AIX
时间Tue Mar 31 10:30:51 2015
刚逛了以前常去的unix论坛,发现原来还是有人在学习AIX上NIM的安装部属
NIM这东西叫Network Installation Manager,用在AIX作为系统安装、升级、备份、软体套件管理..等作用
这东西已经存在好久了,相关的文件也很齐全 入门学习或是进阶管理都适合
但是另一个NIMOL(NIM on Linux)的配置设定文件相对少,以前有针对NIMOL做了些笔记,今天又被我翻了出来
丢在这边可能有点冷(偏?)门,不过或许会有需要的System Admin可以参考看看:)
P.S刚检视了一下内容,虽然有点久,不过流程是一样的
===前置作业===
系统使用Redhat Enterprise版本
定义本机名称
确定/etc/hosts中对应正确
安装tftp、dhcpd的服务
=== 本 文 ===
1.
从AIX光碟中安装nimol-1.0-4.noarch.rpm套件(dvd vol.1 cd vol.8)
(确定dhcp服务、tftp服务已安装完成)
2.
从AIX光碟中安装aix-res*.rpm套件(光碟片中\RPMS\linux下)
安装後在/opt/aix-res/version/会有ispot.tar.Z、booti.chrp.mp.ent.Z、bosinst.data
3.
修改/etc/dhcpd.conf
加入以下
not authoritative; # nimol
ddns-update-style interim;
allow bootp; # nimol
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
#option subnet-mask 255.255.255.0;
#
#请自行调整适合网段
subnet 192.168.111.0 netmask 255.255.255.0 { # nimol
range 192.168.111.30 192.168.111.32;
option broadcast-address 192.168.111.255;}
4.启动dhcp service
service dhcpd start
a.定义资源档
a.1 先将AIX安装光碟复制到任一目录(需包含SPOT、booti.chrp.mp.ent、INSTALLP/(光碟片中)、RPMS/(光碟片中))
a.1.1 解压ispot.tar.Z、booti.chrp.mp.ent.Z 跟 光碟片的resouce放在一起
a.2 接着nimol_config -d /tmp/aixcdrom -t /export/aix -L aix5308
VIOS 范例 nimol_config -d /media/CDROM/nimol/ioserver_res/ -t /export/aix/ -L VIOS21
AIX6106 范例 nimol_config -d /opt/aix-res/6100-06 -t /export/aix -L AIX6106
a.3 上述动作会在/export/aix下建立 aix5308的目录
a.4 使用 nimol_config -l 可以列出目前定义的资源档案
nimol_config -d [AIX资源路径] -t [目标路经] -L [资源名称 e.g.AIX6100-01]
#Usage nimol_config: Configure Linux server to install AIX.
# nimol_config [-d <directory containing AIX resources>]
# [-t <target directory to copy resurces>]
# [-t <target directory to copy resources>]
# [-L <install resources label>]
# [-s <NIMOL server hostname>]
# [-m <remote access method>]
# [-C] [-e] [-l] [-r] [-S] [-U] [-D]
# -D debug mode
# -l Lists the defined resource labels available to install a client.
b.设定client(加入之前请先确定/etc/hosts有定义IP),下面是范例
nimol_install -c h70 -g 192.168.111.33 -m 00:04:ac:2a:04:ab -s 255.255.255.0 -L aix
nimol_install -c F50 -g 192.168.111.33 -m 08:00:5a:ba:9b:11 -s 255.255.255.0 -L aixdvd
nimol_install -c 55a -g 192.168.111.111 -m 00:0d:60:51:af:8a -s 255.255.255.0 -L aixdvd
nimol_install -c 570DB2 -g 192.168.111.31 -m 00:1a:64:1e:73:4a -s 255.255.255.0 -L aix5308
nimol_install -c p630 -g 192.168.111.63 -m 00:02:55:cf:2e:d4 -s 255.255.255.0 -L aix6100-02-01
#20110105
nimol_install -c p6vios -g 192.168.111.60 -m 00:14:5e:5f:8c:30 -s 255.255.255.0 -L VIOS21
nimol_install -c db2ha1 -g 192.168.111.62 -m 00:14:5e:5f:8c:31 -s 255.255.255.0 -L aix6100-02-01
步骤分析
1. 定义需安装的clinet名称於/etc/nimol.conf中 (570DB2)
2. /etc/dhcpd.conf中放入 名称为 570DB2 MAC为62:67:90:00:30:02 使用nim资源 aix5708
3. Create /tftpboot/570DB2 此档案会连结至aix bootkernal
4. Execute /sbin/iptables -I INPUT 1 -s 570DB2 -j ACCEPT
5. Create /export/aix/aix5708/scripts/570DB2.script
6. Create /tftpboot/570DB2.info.
======备注======
**nimol.log 在NIMOL机器上的/var/nimol.log
**移除定义client用nimol_install -c clinet -r
**安装完成後新安装的主机会自动建立/.rhosts以及在/etc/hosts中增加NIM server的位置
**系统中设定网路开机 bootlist -om normal ent0 bserver=192.168.111.98 client=192.168.111.63
***LED code 为610时换个IP试试看
***LED code 为539时可能为IP冲突
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 203.196.98.24
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MIS/M.1427769054.A.8BD.html
1F:推 handsheap: 感谢分享! 03/31 22:37
2F:推 mankaro: push 04/28 10:13