Comments (1)
  • Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry

1 daboule commented Permalink

I propose you a simpler way to do it :

 
Prerequisites : Having declare into NIM the CECs and HMCs objects
 
1) Declare your NIM client as follow
 
NIM_CLIENT :
class = machines
type = standalone
connect = nimsh
platform = chrp
netboot_kernel = 64
if1 = ent-XXX NIM_CLIENT 0
if2 = ent-XXX NIM_CLIENT 0
cable_type1 = N/A
cable_type2 = N/A
mgmt_profile1 = HMC1 LPARID CEC1
mgmt_profile2 = HMC2 LPARID CEC2
[...]
 
1) Gather mac address of the NIM client
 
/usr/bin/dgetmacs -C NIM -n NIM_CLIENT -m openfirmware
 
/!!\ Be careful of this command : il will reboot your lpar in open firmware mode without asking you the permission :-)
 
3) Put mac address in the if1/if2 nim fields
 
NIM_CLIENT :
class = machines
type = standalone
connect = nimsh
platform = chrp
netboot_kernel = 64
if1 = ent-XXX NIM_CLIENT MAC_ADDRESS1
if2 = ent-XXX NIM_CLIENT MAC_ADDRESS2
cable_type1 = N/A
cable_type2 = N/A
mgmt_profile1 = HMC1 LPARID CEC1
mgmt_profile2 = HMC2 LPARID CEC2
[...]
 
4) install your LPARs from NIM (without the need to invoke the lpar_netboot command, he will do that for you)
 
For example :
 
nim -o bos_inst \
-a source=mksysb \
-a spot=spotXXX\
-a lpp_source=lpp_sourceXXX \
-a installp_flags="acgX" \
-a accept_licenses=yes \
-a mksysb=$MKSYSB \
-a boot_client=yes \
-a open_console=no \
-a bosinst_data=XXXXX \
NIM_CLIENT
 
The LPARs will automatically boot from network....
 
You can watch the installation progression by using the dconsole tool :
 
$ dconsole -t -n NIM_CLIENT -C NIM
 
## Readonly mode
 
$ dconsole -r -t -n NIM_CLIENT -C NIM