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.
- Insert the AIX® media into the media or tape drive of the designated master machine.
- If installing from a tape, skip to step 5. To create a mount point for the CD, type: mkdir /cdfs.
- To create a cdrom file system, type: crfs -v cdrfs -p ro -d'cd0' -m'/cdfs'
- To mount the disk, type: mount /cdfs
- 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
- If installing from CD/DVD, to unmount the cdrom file system, type: unmount /cdfs
- 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. - 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
- To mount the file system, enter:
mount /export/spot
- 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
- 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 namedroot1
, 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 theshared_root
resource namedshared_root1
, which is required for diskless clients unless ashared_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 thedump
resource nameddump1
(optional), enter:
To create thenim -o define -t dump -a server=master \ -a location=/export/dd_resource/dump1 dump1
paging
resource namedpaging1
(required for diskless clients), enter:
To create thenim -o define -t paging -a server=master \ -a location=/export/dd_resource/paging1 paging1
home
resource namedhome1
(optional), enter:
To create thenim -o define -t home -a server=master \ -a location=/export/dd_resource/home1 home1
shared_home
resource namedshared_home1
(optional), enter:
To create thenim -o define -t shared_home -a server=master \ -a location=/export/dd_resource/shared_home1 shared_home1
tmp
resource namedtmp1
(optional), enter:nim -o define -t tmp -a server=master \ -a location=/export/dd_resource/tmp1 tmp1
Notes:- The file systems created for the NIM resources are not required, but they can be beneficial for storage management.
- For more information about NIM resources, see Using NIM resources.