[心得] NIM on Linux for AIX

看板MIS作者 (白天天氣好)時間9年前 (2015/03/31 10:30), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
剛逛了以前常去的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://www.ptt.cc/bbs/MIS/M.1427769054.A.8BD.html

03/31 22:37, , 1F
感謝分享!
03/31 22:37, 1F

04/28 10:13, , 2F
push
04/28 10:13, 2F
文章代碼(AID): #1L6WRUYz (MIS)