Configuring the NIM master and creating resources to support diskless and dataless clients from the command line

Follow this procedure for configuring the NIM master and creating resources to support diskless and dataless clients from the command line.

  1. Insert the AIX® media into the media or tape drive of the designated master machine.
  2. If installing from a tape, skip to step 5. To create a mount point for the CD, type: mkdir /cdfs.
  3. To create a cdrom file system, type: crfs -v cdrfs -p ro -d'cd0' -m'/cdfs'
  4. To mount the disk, type: mount /cdfs
  5. To install the bos.sysmgt.nim fileset from the disk, type: installp -agX -d /cdfs/usr/sys/inst.images bos.sysmgt.nim.

    or to install the bos.sysmgt.nim fileset from a tape, type: installp -agX -d /dev/rmt0 bos.sysmgt.nim

  6. If installing from CD/DVD, to unmount the cdrom file system, type: unmount /cdfs
  7. To configure the NIM master using the nimconfig command, type:
    nimconfig -a attr1=value1 \
              -a attr2=value2 \
              ...

    For example, to configure a NIM master with the following configuration:

    master host name = master1
    primary network interface = tr0
    ring speed = 16
    platform = chrp
    kernel type = mp

    enter the following command sequence:

    nimconfig -a netname=network1 -a pif_name=tr0 -a ring_speed=16 \
    -a platform=chrp -a netboot_kernel=mp  
    Note: For additional attribute information, see the nimconfig command.
  8. To create a file system in the rootvg volume group with 200 MB of space and 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
  9. To mount the file system, enter:
    mount /export/spot
  10. The SPOT resource will be installed from images in the image source (in this example, the CD). 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, enter:
    nim -o define -t spot -a source=/dev/cd0 -a server=master \
    -a location=/export/spot spot1
  11. 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
  12. To mount the file system, enter: mount /export/dd_resource
  13. 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, 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 shared_root resource is used, 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
    Notes:
    1. The file systems created for the NIM resources are not required, but they can be beneficial for storage management.
    2. For more information about NIM resources, see Using NIM resources.