For reference here is a list of common HMC commands that could be useful.
chsysstate -r lpar -m [machine name] -o shutdown --immed -n [lpar name] |
chsysstate -r lpar -m [machine name] -o shutdown --immed -n [lpar name]
Start an LPAR to SMS mode
chsysstate -r lpar -m [machine name] -o on -f default -b sms -n [lpar name] |
chsysstate -r lpar -m [machine name] -o on -f default -b sms -n [lpar name]
Start an LPAR to Open Firmware mode
chsysstate -r lpar -m [machine name] -o on -f default -b of -n [lpar name] |
chsysstate -r lpar -m [machine name] -o on -f default -b of -n [lpar name]
Note : when in Open Firmware you can use the command “ioinfo” to interrogate the system for which storage devices are connected.
Connect to a LPAR virtual terminal
mkvterm -m [machine name] -p [lpar name] |
mkvterm -m [machine name] -p [lpar name]
or use vterm to navigate to the LPAR via the machine (frame).
lpar_netboot -t ent -l [virtual adapter] -s auto -d auto -S [NIM server IP] -G [LPAR gateway IP] -C [LPAR IP] [LPAR name] default [machine name] |
lpar_netboot -t ent -l [virtual adapter] -s auto -d auto -S [NIM server IP] -G [LPAR gateway IP] -C [LPAR IP] [LPAR name] default [machine name]
[virtual adapter] might look something like U9117.MMB.06CDB4P-V81-C10-T1
Change keyswitch to normal
chsysstate -r lpar -o chkey -k norm -n [LPAR name] -m [machine name] |
chsysstate -r lpar -o chkey -k norm -n [LPAR name] -m [machine name]
lsrefcode -r lpar -F lpar_name,refcode -m [machine name] |
lsrefcode -r lpar -F lpar_name,refcode -m [machine name]
Change an LPAR profile CPU/mem allocation
chsyscfg -r prof -m [machine name] -i "name=[profile name],lpar_name=[lpar name],min_mem=8192,desired_mem=32768,max_mem=65536,min_proc_units=0.6,desired_proc_units=7.2,max_proc_units=7.8,min_procs=1,desired_procs=8,max_procs=8" |
chsyscfg -r prof -m [machine name] -i "name=[profile name],lpar_name=[lpar name],min_mem=8192,desired_mem=32768,max_mem=65536,min_proc_units=0.6,desired_proc_units=7.2,max_proc_units=7.8,min_procs=1,desired_procs=8,max_procs=8"
min/desired/max_proc_units are the PU
min/disired/max_procs are the VP
LPAR see’s VP x SMT; so if SMT=4, LPAR (in this case) see’s up to 32 logical processors. These might get folded by AIX when not in use. The entitled capacity (guaranteed) is the same as the desired PU, in this case 7.2.
Memory is in MB.
Remember to
then re-activate the LPAR to enable the amended profile.
Check current LPAR profile
lssyscfg -r prof -m [machine name] --filter "lpar_names=[lpar name]" |
lssyscfg -r prof -m [machine name] --filter "lpar_names=[lpar name]"
After re-connecting a managed server to a HMC.
lshwres -r io --rsubtype slotchildren -m [machine name] -F phys_loc,description,mac_address,wwpn,microcode_version | grep Fibre |
lshwres -r io --rsubtype slotchildren -m [machine name] -F phys_loc,description,mac_address,wwpn,microcode_version | grep Fibre
Check LMB size of machine (used for LPM)
lshwres -r mem -m [machine name] --level sys -F mem_region_size |
lshwres -r mem -m [machine name] --level sys -F mem_region_size
The LMB must be the same to allow LPM, else you will need to amend it and reboot the LPAR for it to take effect.
You can also check this in the ASMI.