Configuring the NIM master and creating basic installation resources from the command line
Use this procedure for configuring the NIM master and creating basic installation resources from the command line.
- Insert the AIX® Volume 1 media into the appropriate drive of the designated master machine.
- To install the bos.sysmgt.nim.master fileset from the disk, enter: # installp -agXd /dev/cd0 bos.sysmgt.nim.master
- To configure the NIM master with the
following configuration, enter: #
nimconfig -a netname=network1 -a pif_name=tr0 -a ring_speed1=16 -a
platform=chrp -a netboot_kernel=mp
master host name = master1 primary network interface = tr0 ring speed = 16 platform = chrp kernel type = mpNote: For additional attribute information, see the nimconfig command. - To create a file system in the rootvg
volume group with 400 MB of space with a mount point of /export/lpp_source,
enter:
# crfs -v jfs2 -g rootvg -a size=$((2000*400)) \ -m /export/lpp_source -A yes -p rw -t no - To mount the file system, enter: # mount /export/lpp_source
- The lpp_source contains the
installation images copied from the source device (in this example,
the CD-ROM). The server of the lpp_source will be the NIM
master. The images will be stored in the /export/lpp_source/lpp_source1 directory.
To create the lpp_source resource named lpp_source1,
enter:
# nim -o define -t lpp_source -a source=/dev/cd0 \ -a server=master -a location=/export/lpp_source/lpp_source1 \ lpp_source1 - To create a file system in the rootvg
volume group with 200 MB of space with a mount point of /export/spot,
enter:
# crfs -v jfs2 -g rootvg -a size=$((2000*200)) \ -m /export/spot -A yes -p rw -t no - To mount the file system, enter: # mount /export/spot
- The SPOT resource will be installed
from images in the image source (in this case, the lpp_source that
was created in step 6). The server of the resource will be the NIM
master, and the SPOT will be stored in the /export/spot/spot1 directory.
To create the SPOT resource named spot1,
enter:
# nim -o define -t spot -a source=lpp_source1 \ -a server=master -a location=/export/spot spot1 - If you are not supporting diskless
and dataless clients, you do not need to continue with this procedure.
If you are supporting diskless and dataless clients, create and mount
a file system for their resources. To create a file system in the rootvg volume group with 150 MB of space and a mount point of /export/dd_resource, enter:
# crfs -v jfs2 -g rootvg -a size=$((2000*150)) \ -m /export/dd_resource -A yes -p rw -t no - To mount the file system, enter: # mount /export/dd_resource
- Create the diskless and dataless client
resources in subdirectories of the /export/dd_resource directory.
Not all resources are required. Create only the resources to be used
in your environment.
- To create the root resource
named root1, which is required for diskless
and dataless clients unless a shared_root resource
(for diskless clients only) is used instead, enter:
# nim -o define -t root -a server=master \ -a location=/export/dd_resource/root1 root1 - To create the shared_root resource named shared_root1,
which is required for diskless clients unless a root resource is used
instead, enter:
# nim -o define -t shared_root -a server=master \ -a location=/export/dd_resource/shared_root1 \ -a spot=spot1 shared_root1 - To create the dump resource
named dump1 (optional), enter:
# nim -o define -t dump -a server=master \ -a location=/export/dd_resource/dump1 dump1 - To create the paging resource
named paging1 (required for diskless clients),
enter:
# nim -o define -t paging -a server=master \ -a location=/export/dd_resource/paging1 paging1 - To create the home resource
named home1 (optional), enter:
# nim -o define -t home -a server=master \ -a location=/export/dd_resource/home1 home1 - To create the shared_home resource
named shared_home1 (optional), enter:
# nim -o define -t shared-home -a server=master \ -a location=/export/dd_resource/shared_home1 shared_home1 - To create the tmp resource
named tmp1 (optional), enter:
# nim -o define -t tmp -a server=master \ -a location=/export/dd_resource/tmp1 tmp1
- To create the root resource
named root1, which is required for diskless
and dataless clients unless a shared_root resource
(for diskless clients only) is used instead, enter: