This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
aix:nimol [2022/06/13 13:17] manu |
aix:nimol [2022/06/13 16:22] (current) manu [nimol_config] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== NIMOL to deploy AIX partitions on Power ====== | ||
| + | |||
| + | NIMOL is a tool which 'll be installed on linux, unlike NIM which is the deployment tool for AIX | ||
| + | |||
| + | ===== Deploy packages ===== | ||
| Where to find NIMOL packages ? On AIX base CDROM. | Where to find NIMOL packages ? On AIX base CDROM. | ||
| Line 6: | Line 11: | ||
| XML-LibXML-1.58-1.i386.rpm | XML-LibXML-1.58-1.i386.rpm | ||
| - | aix-res-6100-07-1.0-1.noarch.rpm | + | aix-res-7100-03-1.0-1.noarch.rpm |
| libxml2-2.6.17-4.i586.rpm | libxml2-2.6.17-4.i586.rpm | ||
| nimol-1.0-4.noarch.rpm | nimol-1.0-4.noarch.rpm | ||
| + | |||
| </code> | </code> | ||
| <cli prompt='#'> | <cli prompt='#'> | ||
| - | [root@nimsrv]/export/soft/nimol/aix61tl7# rpm -qpl aix-res-6100-07-1.0-1.noarch.rpm | + | [root@nimsrv]/export/aix73/7300-00-01_full/RPMS/linux# rpm -qpl aix-res-7100-03-1.0-1.noarch.rpm |
| - | /opt/aix-res/6100-07/booti.chrp.mp.ent.Z | + | /opt/aix-res/7100-03/booti.chrp.mp.ent.Z |
| - | /opt/aix-res/6100-07/bosinst.data | + | /opt/aix-res/7100-03/bosinst.data |
| - | /opt/aix-res/6100-07/ispot.tar.Z | + | /opt/aix-res/7100-03/ispot.tar.Z |
| - | [root@nimsrv]/export/soft/nimol/aix61tl7# rpm -qpl nimol-1.0-4.noarch.rpm | + | [root@nimsrv]/export/aix73/7300-00-01_full/RPMS/linux# rpm -qpl nimol-1.0-4.noarch.rpm |
| /usr/lib/nimol_lib | /usr/lib/nimol_lib | ||
| /usr/sbin/nimol_backup | /usr/sbin/nimol_backup | ||
| Line 27: | Line 33: | ||
| /usr/share/doc/nimol/README | /usr/share/doc/nimol/README | ||
| /usr/share/locale/Ja_JP/LC_MESSAGES/nimol.mo | /usr/share/locale/Ja_JP/LC_MESSAGES/nimol.mo | ||
| - | /usr/share/locale/ca_ES/LC_MESSAGES/nimol.mo | + | ... |
| - | /usr/share/locale/cs_CZ/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/de_DE/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/en_US/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/es_ES/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/fr_FR/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/hu_HU/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/it_IT/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/ko_KR/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/pl_PL/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/pt_BR/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/ru_RU/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/sk_SK/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/zh_CN/LC_MESSAGES/nimol.mo | + | |
| - | /usr/share/locale/zh_TW/LC_MESSAGES/nimol.mo | + | |
| /usr/share/man/man1/nimol_backup.1 | /usr/share/man/man1/nimol_backup.1 | ||
| /usr/share/man/man1/nimol_config.1 | /usr/share/man/man1/nimol_config.1 | ||
| Line 105: | Line 97: | ||
| http://dbaspot.com/aix/390557-fyi-aix-6-1-installation-lower-aix-version-using-nim-nimol-nim-linux.html | http://dbaspot.com/aix/390557-fyi-aix-6-1-installation-lower-aix-version-using-nim-nimol-nim-linux.html | ||
| + | |||
| + | ===== Install and configure NIMOL ===== | ||
| * Package required by Linux system | * Package required by Linux system | ||
| Line 116: | Line 110: | ||
| Before configuring services, please be sure to configure the ip and host name of the network card Ok, check the/etc/hosts file for any mess. | Before configuring services, please be sure to configure the ip and host name of the network card Ok, check the/etc/hosts file for any mess. | ||
| - Configure the dhcp server | - Configure the dhcp server | ||
| - | from YasT-> Network Services -> dhcp server. | + | - Enable the tftp server (mabye you should create a symlink: ln -s rpcbind portmap) |
| + | - rsyslog | ||
| - | - Enable the tftp server | ||
| - | from YasT-> Network Services -> tftp server. | ||
| - | |||
| - | 3. If you are using a new version of rhel or suse, you need the following settings to deceive nimol | ||
| - | # cd/etc/init.d/ | ||
| - | # ln -s rpcbind portmap | ||
| - | 3. syslog configuration | ||
| - | Edit the/etc/syslog-ng/syslog-ng.conf file and remove the comment | ||
| - | udp(ip("0.0.0.0") in the following line port(514)); | ||
| - | Restart the syslog service and | ||
| - | check the port | ||
| - | netstat -an |grep 514 | grep LISTEN | ||
| - | or lsof -Pni :514 | ||
| - | Rsyslog is used on rhel 6, how to configure it, please search Google Baidu. | ||
| * Install Nimol | * Install Nimol | ||
| - | mount/dev/cdrom/mnt | + | <code> |
| - | cd/mnt/RPMS/linux | + | mount/dev/cdrom/mnt |
| - | rpm -ivh nimol-*.rpm | + | cd /mnt/RPMS/linux |
| - | cd/ | + | rpm -ivh nimol-*.rpm |
| - | umount/dev/cdrom from the AIX installation disk/RPMS/linux directory | + | cd / |
| + | umount /dev/cdrom from the AIX installation disk/RPMS/linux directory | ||
| + | </code> | ||
| * Basic configuration of Nimol | * Basic configuration of Nimol | ||
| - | 1. First Manually generate an empty/etc/nimol.conf | + | First Manually generate an empty /etc/nimol.conf |
| - | #>/etc/nimo.conf | + | <cli prompt='#'> |
| # echo'NIMOL_SYSLOG_FACILITY local2' >>/etc/nimol.conf | # echo'NIMOL_SYSLOG_FACILITY local2' >>/etc/nimol.conf | ||
| + | </cli> | ||
| Remember, this line is necessary, otherwise adding the client will fail. | Remember, this line is necessary, otherwise adding the client will fail. | ||
| - | 2. Define the resource LABEL | + | |
| - | # mkdir/export/nim/lpp_source/6107 | + | Define the resource LABEL |
| - | # nimol_config -L 6107 -d/dev/cdrom -t/export/nim/lpp_source | + | <cli prompt='#'> |
| - | 3. The lpp_source generated above is just a bos. To get a complete installation medium, Modify some files manually | + | # mkdir /export/nim/lpp_source/7300-00-01 |
| - | # cd/export/nim/lpp_source/6107 | + | # nimol_config -L 7300-00-01 -d /dev/cdrom -t /export/nim/lpp_source |
| + | </cli> | ||
| + | |||
| + | The lpp_source generated above is just a bos. To get a complete installation medium, Modify some files manually | ||
| + | <cli prompt='#'> | ||
| + | # cd /export/nim/lpp_source/7300-00-01 | ||
| # rm -fr bosinst.data image.data lpp_source | # rm -fr bosinst.data image.data lpp_source | ||
| # mkdir -p lpp_source/installp | # mkdir -p lpp_source/installp | ||
| - | # mount/dev/cdrom/mnt | + | # mount /dev/cdrom/mnt |
| - | # cp/mnt/*.data ./ | + | # cp /mnt/*.data ./ |
| - | # cp -a/mnt/installp/ppc ./lpp_source/installp/ | + | # cp -a /mnt/installp/ppc ./lpp_source/installp/ |
| - | # cp -a/mnt/RPMS ./lpp_source/ | + | # cp -a /mnt/RPMS ./lpp_source/ |
| - | 4. Define mksysb resource | + | </cli> |
| + | |||
| + | Define mksysb resource | ||
| If lpp_source has been defined before, then skip the following steps: | If lpp_source has been defined before, then skip the following steps: | ||
| Install AIX CD The aix-res package, take 6108 as an example: | Install AIX CD The aix-res package, take 6108 as an example: | ||
| - | # mount/dev/cdrom/mnt/cdrom | + | <cli prompt='#'> |
| - | # cd/mnt/cdrom | + | # mount /dev/cdrom/mnt/cdrom |
| - | # rpm -ivh RPMS/linux/aix-res-6100-08-1.0-1.noarch.rpm | + | # cd /mnt/cdrom |
| + | # rpm -ivh RPMS/linux/aix-res-7300-00-.noarch.rpm | ||
| Then generate a directory/opt/aix-res/6100-08 | Then generate a directory/opt/aix-res/6100-08 | ||
| - | # cd/opt/aix-res/6100-08 | + | # cd /opt/aix-res/7300-00-01 |
| # ls -al | # ls -al | ||
| -rwxr-xr-x 1 root root 23478299 September 14 2012 booti.chrp.mp. ent.Z | -rwxr-xr-x 1 root root 23478299 September 14 2012 booti.chrp.mp. ent.Z | ||
| -rwxr-xr-x 1 root root 928 September 14 2012 bosinst.data | -rwxr-xr-x 1 root root 928 September 14 2012 bosinst.data | ||
| -rwxr-xr-x 1 root root 119181465 September 14 2012 ispot.tar.Z | -rwxr-xr-x 1 root root 119181465 September 14 2012 ispot.tar.Z | ||
| + | </cli> | ||
| copy the generated mksysb file to this directory, You can also just make a symbolic link. The file name must be mksysb or mksysb.bff. | copy the generated mksysb file to this directory, You can also just make a symbolic link. The file name must be mksysb or mksysb.bff. | ||
| Now you can define mksysb resources: | Now you can define mksysb resources: | ||
| Line 175: | Line 168: | ||
| * define the client and related resources | * define the client and related resources | ||
| - | 1. 1. create a record of the client in/etc/hosts | + | |
| - | 2. Configure the client installation resource | + | create a record of the client in/etc/hosts |
| + | Configure the client installation resource | ||
| + | <cli prompt='#'> | ||
| # nimol_install -c dbserv -s 255.255.255.0 -m 00:00:00:00: 00:11 -L 6107 | # nimol_install -c dbserv -s 255.255.255.0 -m 00:00:00:00: 00:11 -L 6107 | ||
| + | </cli> | ||
| will prompt trap syntax error, but does not affect the settings. | will prompt trap syntax error, but does not affect the settings. | ||
| The above command -m is followed by the mac address of the client's network card. Please modify it according to the situation. | The above command -m is followed by the mac address of the client's network card. Please modify it according to the situation. | ||
| Line 211: | Line 207: | ||
| After several days of research, I changed a script violently and got it done. | After several days of research, I changed a script violently and got it done. | ||
| The script that needs to be modified is <Target_dir>/<Label_Dir>/SPOT/usr/lpp/bosinst/bi_main | The script that needs to be modified is <Target_dir>/<Label_Dir>/SPOT/usr/lpp/bosinst/bi_main | ||
| + | |||
| + | ===== man NIMOL ===== | ||
| + | |||
| + | ==== nimol_config ==== | ||
| + | |||
| + | Configures a Linux® server to network install a machine with AIX® by configuring services and copying install resources. | ||
| + | |||
| + | To configure the NIMOL server without copying resources, type: | ||
| + | nimol_config -C | ||
| + | |||
| + | To configure the NIMOL server, copy resources from /mnt/aix to /export/aix, and label the resource aix530, type: | ||
| + | nimol_config -d /mnt/aix -t /export/aix -L aix530 | ||
| + | |||
| + | To configure the NIMOL server and copy resources without configuring syslog and without globally exporting the resource label directory, type: | ||
| + | nimol_config -S -e | ||
| + | |||
| + | To list defined resource labels, type: | ||
| + | nimol_config -l | ||
| + | |||
| + | To remove the aix530 resource label, type: | ||
| + | nimol_config -L aix530 -r | ||
| + | |||
| + | ==== nimol_install ==== | ||
| + | |||
| + | Sets up a configured NIMOL server to install AIX® to a specific client machine. | ||
| + | |||
| + | To setup client myclient to install the aix530 resource label with gateway 192.168.1.1, MAC address 00:60:08:3F:E8:DF, and subnet mask 255.255.255.0, type: | ||
| + | nimol_install -c myclient -g 192.168.1.1 -m 00:60:08:3F:E8:DF -s 255.255.255.0 -L aix530 | ||
| + | |||
| + | To setup client myclient and not have it remain a client to the NIMOL server after the installation, type: | ||
| + | nimol_install -n -c myclient -g 192.168.1.1 -m 00:60:08:3F:E8:DF -s 255.255.255.0 -L aix530 | ||
| + | |||
| + | To list the clients configured to be installed, type: | ||
| + | nimol_install -l | ||
| + | |||
| + | To remove client myclient, type: | ||
| + | nimol_config -c myclient -r | ||