Professional Documents
Culture Documents
html
Contents
AIX
1. Introduction
BSD 2. Install NIM Master filesets
3. Create filesystems
HP-UX 4. Initialize NIM
5. Create basic NIM resources
Linux 5.1 Create LPP source from DVD
5.2 Create Spot
Solaris
5.3 Create Scripts
6. Create an Installation Image
Others
A. Useful commands
Un*x B. Related Information
Topics
1. Introduction
AIX 7.1 is out. SP2 is already existing. Time to evaluate AIX 7.1 for productive use. And time to
create a new NIM server to serve AIX 7.1.
Guestbook
This article assumes that the LPAR you want to use as a NIM server is already installed with AIX
Contact 7.1 SP2.
Archive
3. Create Filesystems
First we create the NIM volume group, the loglv, and the base filesystem for the NIM resources:
master# df
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 393216 4976 99% 10019 88% /
/dev/hd2 4063232 427232 90% 42567 46% /usr
/dev/hd9var 786432 244304 69% 5720 17% /var
/dev/hd3 1572864 850168 46% 159 1% /tmp
/dev/hd1 131072 129880 1% 62 1% /home
/dev/hd11admin 262144 261384 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 786432 398288 50% 7253 14% /opt
/dev/livedump 524288 523552 1% 4 1% /var/adm/ras/livedum
/dev/nim_base 131072 130328 1% 8 1% /nim
/dev/nim_images 13107200 13104544 1% 4 1% /nim/images
4. Initialize NIM
Let's say our NIM server's ethernet interface for NIM tasks is en6 and is configured with the IP
address 10.255.127.10 and a subnet mask of 255.255.255.0, then we can initialize the NIM server
with a command like this:
After initialization there are already some base NIM resources configured:
master# lsnim
master machines master
boot resources boot
nim_script resources nim_script
net_10_255_127 networks ent
There is no TL out yet for AIX 7.1 only Service Packs are available. In the below example we
assume that we stored the filesets for SP2 under /tmp/ibmfixes/710/tl00/sp02. We now
copy the filesets into the LPP source. Please note the target directory in the example below!
If there would be a TL out we had to do this step twice - once for the TL and another time for the
SP.
master# cd /nim/lppsource/lpp_aix710/installp/ppc
master# inutoc .
master# nim -o define -t lpp_source \
-a server=master \
-a location=/nim/lppsource/lpp_aix710 \
-a comments='Full AIX 7100-00-02 source' \
lpp_aix710
If you want to keep the language filesets set REMOVE LANGUAGE software to no.
Note that we didn't use a separate path name for our spot under location - just /nim/spot! NIM
automatically appends the objectname (spot_aix710 here) to the path. You would find the spot
under /nim/spot/spot_aix710/usr.
Let's say we have a first boot script called fb_aix7.sh and a postinstall script called aix7_post.sh in
place, then we have to define two more NIM resources:
Firstboot Script
master# vi fb_aix7.sh
master# chmod ug+x fb_aix7.sh
master# nim -o define -t fb_script \
-a server=master \
-a comments='Firstboot script for AIX 7' \
-a location=/nim/scripts/fb_aix7.sh \
fb_aix7
Postinstall Script
master# vi aix7_post.sh
master# chmod ug+x aix7_post.sh
master# nim -o define -t script \
-a server=master \
-a comments='Postinstall script for AIX 7 installations' \
-a location=/nim/scripts/aix7_post.sh \
script_aix7_post
In order to define an MKSYSB resource you need an mksysb from an existing AIX7 installation.
Copy it over to the NIM master. If there is no AIX7 server in your environment you have two
options:
1. Create an mksysb image from your NIM master (you should do this before you configure
the server as a NIM master!)
2. Do an LPP installation of a spare LPAR, do your site customization, and create a mksysb
from this server
Once you have a mksysb image of an AIX 7.1 SP2 server in place you can define the NIM resource
with a command like this:
Appendix
A. Useful Commands
This is only a brief and selective list of commands that might be useful if you setup a NIM server. If
you need to find more commands please refer to the NIM Commands overview.
remove a resource:
nim -o remove spot_aix710
add filesets to a spot
smitty nim_inst_latest
define a client
nim -o define -t standalone -a platform=chrp -a netboot_kernel=64
-a if1="net_10_255_127 <client> 0 ent" -a cable_type1=tp <client>
initialize an lpp installation
nim -o bos_inst -a spot=spot_aix710 -a lpp_source=lpp_aix710 -a
no_client_boot=yes -a accept_licenses=yes <client>
synchromize alt_disk_install fileset between server and client resources:
nimadm -M -s <spot> -l <lpp source> -d <source directory>
or
smitty nimadm_sync
B. Related Information
Configuring the NIM master and creating basic installation resources
IBM Redbook: NIM from A to Z