This post will describe the steps nesessery to setup a basic NIM master server.
Assuming the installation source will be the AIX Volume 1 installation media, in my case mounted in the /mnt/iso directory.
# installp -agXd /mnt/iso bos.sysmgt.nim.master ... # lslpp -l | grep gt.nim bos.sysmgt.nim.client 6.1.5.1 COMMITTED Network Install Manager - bos.sysmgt.nim.master 6.1.5.1 COMMITTED Network Install Manager - bos.sysmgt.nim.client 6.1.5.1 COMMITTED Network Install Manager -
Now we configure our mashine as a NIM Master.
smitty nimconfig
The following screen appears
Configure Network Installation Management Master Fileset
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Network Name [NET_EN0]
* Primary Network Install Interface [en0] +
Allow Machines to Register Themselves as Clients? [yes] +
Alternate Port Numbers for Network Communications
(reserved values will be used if left blank)
Client Registration [] #
Client Communications [] #
F1=Help F2=Refresh F3=Cancel F4=List
F5=Reset F6=Command F7=Edit F8=Image
F9=Shell F10=Exit Enter=Do
The highlighted values are mandatory.
Now check the NIM server status using the lsnim command
# lsnim master machines master boot resources boot nim_script resources nim_script EN0_NET networks ent # lsnim -l master master: class = machines type = master max_nimesis_threads = 20 comments = machine which controls the NIM environment platform = chrp netboot_kernel = 64 if1 = EN0_NET cable_type1 = N/A Cstate = ready for a NIM operation prev_state = Mstate = currently running serves = boot serves = nim_script master_port = 1058 registration_port = 1059 reserved = yes # lsnim -l EN0_NET EN0_NET: class = networks type = ent Nstate = ready for use prev_state = information is missing from this object's definition net_addr = 192.168.2.0 snm = 255.255.255.0 routing1 = default 192.168.2.1
Next we define the lpp_source running “smitty nim_mkres” and selecting “lpp_source”
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Resource Name [LPP_61_ML5]
* Resource Type lpp_source
* Server of Resource [master] +
* Location of Resource [/nim/aix61ml5/lppsource] /
NFS Client Security Method [] +
NFS Version Access [] +
Architecture of Resource [] +
Source of Install Images [/mnt/iso] +/
Names of Option Packages []
Show Progress [yes] +
Comments []
F1=Help F2=Refresh F3=Cancel F4=List
F5=Reset F6=Command F7=Edit F8=Image
F9=Shell F10=Exit Enter=Do
Now verify the LPP source status
# lsnim -l LPP_61_ML5 LPP_61_ML5: class = resources type = lpp_source arch = power Rstate = ready for use prev_state = unavailable for use location = /nim/aix61ml5/lppsource simages = yes alloc_count = 0 server = master
Next we create the SPOT using “smitty nim_mkres” and selecting SPOT
Define a Resource
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Resource Name [SPOT_61_ML5]
* Resource Type spot
* Server of Resource [master] +
Source of Install Images [LPP_61_ML5] +
* Location of Resource [/nim/aix61ml5] /
NFS Client Security Method [] +
NFS Version Access [] +
Expand file systems if space needed? yes +
Comments []
installp Flags
PREVIEW only? (install operation will NOT occur) no +
COMMIT software updates? no +
SAVE replaced files? yes +
AUTOMATICALLY install requisite software? yes +
OVERWRITE same or newer versions? no +
VERIFY install and check file sizes? no +
The process may take some time, after it is finished we can see the new SPOT resource:
# lsnim -l SPOT_61_ML5 SPOT_61_ML5: class = resources type = spot plat_defined = chrp arch = power bos_license = yes Rstate = ready for use prev_state = verification is being performed location = /nim/aix61ml5/SPOT_61_ML5/usr version = 6 release = 1 mod = 5 oslevel_r = 6100-05 alloc_count = 0 server = master Rstate_result = success mk_netboot = yes mk_netboot = yes
Now we will define a NIM client using the fastpath smitty nim_mkmac
Define a Machine
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
* NIM Machine Name [power2]
* Machine Type [standalone] +
* Hardware Platform Type [chrp] +
Kernel to use for Network Boot [64] +
Communication Protocol used by client [nimsh] +
Primary Network Install Interface
* Cable Type tp +
Network Speed Setting [] +
Network Duplex Setting [] +
* NIM Network EN0_NET
* Host Name power2
Network Adapter Hardware Address [0]
Network Adapter Logical Device Name []
IPL ROM Emulation Device [] +/
CPU Id []
Machine Group [] +
Managing System Information
WPAR Options
Managing System []
-OR-
Again, verify the state of the created resource:
# lsnim -l power2 power2: class = machines type = standalone connect = nimsh platform = chrp netboot_kernel = 64 if1 = EN0_NET power2 0 cable_type1 = tp Cstate = ready for a NIM operation prev_state = ready for a NIM operation Mstate = currently running
The lsnim command show the summary of all the defined resources.
lsnim master machines master boot resources boot nim_script resources nim_script EN0_NET networks ent LPP_61_ML5 resources lpp_source SPOT_61_ML5 resources spot power2 machines standalone

No comments:
Post a Comment