Save an LPAR configuration (this will be your first template after some cleaning (1)).
Edit the configuration file as needed - several fields needs customization (name, virtual_eth_adapters, VLAN, virtual_fc_adapters, slot numbers, etc.) (1)
Copy the config file to the HMC using ssh hscroot@HMC:.
On HMC, run: mksyscfg -r lpar -m $power -f $LPAR_CFG_FILE
Note 1: Some fields must be removed or mksyscfg will fail. You may start with a minimal config file and then add attributes one by one until mksyscfg fails: skip that attribute and continue with others until you have sorted all needed/unwanted attributes.
LPAR attributes which can't be given within the config file at LPAR creation time can be changed after creation with chsyscfg. Example:
HMC> chsyscfg -r lpar -m $power -i "sync_curr_profile=1,simplified_remote_restart_capable=1" -p $LPAR_NAME"
After LPAR has been created you may have to create virtual adapters on the VIOS, for example virtual FC adapters:
HMC> chhwres -r virtualio -m $power --rsubtype fc -o a -p $VIO_LPAR -s $CSLOT_NUM -a "adapter_type=server,remote_lpar_name=$LPAR_NAME,remote_slot_num=CSLOT_NUM"
Then, on VIOS:
Discover the new server vFC adapters with: ioscli cfgdev
Retrieve vfchosts with: ioscli lsmap -all -npiv
Map your FC with: ioscli vfcmap -vadapter $VFCHOST -fcp $FCS
We use this method using a few config files as templates depending on the type of LPAR we want to create. With of course several scripts to retrieve/edit partition ID, free slot numbers, vswitch, VLAN, vfchost filenames, etc.
Until now HMC templates didn't provide us enough flexibility to pretend replace our method. I guess HMC REST API could do the job but for now we are happy with our method.
------------------------------
Antoine Morpain
------------------------------
Original Message:
Sent: Tue January 20, 2015 09:35 AM
From: Archive User
Subject: Create LPAR without a template?
Originally posted by: SueBaker
Is there a way to create an LPAR without using a template? Current templates are inadequate and even when I captured a template, it says I require dedicated processors. We use shared processors.
Or is the only option to use a template then go in an edit the profile?