Steve's Power Systems BlogPower BlogContactLog inRegister
  • Power Blog
  • Contact

  • Register

IBM Power Systems Blog

Power Systems
  • Front Page
  • Categories
  • Archives
  • Latest comments
  • « LPM Concurrency Level 10Gbit Adapters
  • SRIOV Performance Testing »

LPM and Affinity Groups

Posted by steve on 05 Apr 2017 in Power System Affinity, LPM Information

 

We have just upgraded our HMC's to Version: 8, Release: 8.6.0, Service Pack: 1 and IBM have added my feature request to allow you to specify Affinity Groups when doing LPMs, thereby allowing you to keep existing or create new affinity groups.

 

From the man page on migrlpar:

affinity_group_id

Memory and processor affinity group in which the partition will participate on the destination managed system.
Valid values are none and 1 - 255.

 

My LPARs Before the LPM

lssyscfg -m framename -r lpar -F name,lpar_id,state,affinity_group_id

POC003,129,Running,none

POC002,128,Running,none

POC001,127,Running,none

vio13,3,Running,30

vio12,2,Running,20

 

Run the LPM with the new affinity_group_id setting.
We also used the vswitch_mappings option to change the vSwitch names from switch1 to ETHERNET0.

migrlpar -o m -m source_frame -t target_frame -p POC001 -i

'dest_lpar_id=127,"virtual_scsi_mappings=20/vio21//1270,21/vio22//1271",

"virtual_fc_mappings=30/vio21//1272,31/vio21//1273,32/vio22//1274,33/vio22//1275",

"vswitch_mappings=415/switch1/ETHERNET0,417/switch1/ETHERNET0,416/switch1/ETHERNET0",

shared_proc_pool_name=DefaultPool,source_msp_name=vio12,source_msp_ipaddr=192.168.40.22,

dest_msp_name=vio22,dest_msp_ipaddr=192.168.40.24',affinity_group_id=20

 

After the LPM.  You will see that LPAR id 127 now has an affinity group id of 20, this tells the Hypervisor to place this LPAR near to the other LPARs in affinity group 20, which just happens to be one of my VIO servers.

lssyscfg -m framename -r lpar -F name,lpar_id,state,affinity_group_id

vio22,3,Running,30

vio21,2,Running,20

POC001,127,Running,20

 

Confirm the placement with a resource dump.

From the resource dump (output truncated), you can see that LPAR id 127 is on the same node and chip as LPAR id 2 (VIOS).  The LP column is the LPAR id.

|-----------|-----------------------|---------------|------|---------------|---------------|-------|

|   Domain  |     Procs       Units |     Memory    |      |   Proc Units  |     Memory    | Ratio |

| SEC | PRI | Total | Free  | Free  | Total |  Free |  LP  |  Tgt  |  Aloc |  Tgt  |  Aloc |       |

|-----|-----|-------|-------|-------|-------|-------|------|-------|-------|-------|-------|-------|

|   2 |     |  4800 |  4500 |    60 |  6144 |  5915 |      |       |       |       |       |  1026 |

|     |   8 |  1200 |  1200 |     0 |  1536 |  1525 |      |       |       |       |       |   992 |

|     |   9 |  1200 |  1200 |     0 |  1536 |  1526 |      |       |       |       |       |   992 |

|     |  10 |  1200 |   900 |    60 |  1536 |  1338 |      |       |       |       |       |  1160 |

|     |     |       |       |       |       |       |    1 |   100 |   100 |    16 |    16 |       |

|     |     |       |       |       |       |       |    2 |   100 |   100 |    48 |    48 |       |

|     |     |       |       |       |       |       |  127 |    40 |    40 |    32 |    32 |       |

|     |  11 |  1200 |  1200 |     0 |  1536 |  1526 |      |       |       |       |       |   992 |

|-----|-----|-------|-------|-------|-------|-------|------|-------|-------|-------|-------|-------|

 

 

Tags: 8.8.6AIXAffinity GroupsHMCLPMPowerVM

No feedback yet


Form is loading...

July 2026
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
 << <   > >>

IBM Power Systems Blog

IBM Power Systems - Administration, Tuning and Optimisation. These posts are my own personal opinions and comments only.

Search

Categories

  • All
  • AIX Tips
  • AIX Tuning
  • Command Line Tips
  • HMC Tips
  • LPM Information
  • NIM Tips
  • Performance Testing
  • Power System Affinity
  • PowerHA Tips
  • SRIOV and vNIC
  • Scripts and One Liners
  • VIO Server Tips

Recent Posts

  • AIX NIM Hints and Tips
  • Finding Multiple Install Sources for AIX
  • PowerHA and EMC Busy Devices
  • AIX Random Password Generation
  • VIO Server 3.1.0 and ssh host keys
  • VIO Server 3.1.0 Items to Review
  • Just when you thought you understood idle CPU time!!
  • 40Gbit Adapter Performance Testing
  • LPM Copy Time Statistics
  • IBM HMC Upgrades

Recent Comments

  • steve on How to configure IBM SRIOV Adapters
  • Howard Coles on How to configure IBM SRIOV Adapters
  • steve on AIX mpstat and lssrad part 1
  • Charin Kumjudpai on AIX mpstat and lssrad part 1
  • Gagandeep on LPM and multiple vSwitches
  • Fant Steele on VIO Server 3.1.0 and ssh host keys
  • steve on AIX NIM Hints and Tips
  • alan wilcox on AIX NIM Hints and Tips
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Bernhar on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Gery on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • patrice on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Chris K. on AIX buf_mode attribute for Virtual Ethernet Adapters
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on Creating EtherChannel Devices from Command Line

This collection ©2026 by Stephen Diwell • Contact • Help • Online manual generator

Website builder
Cookies are required to enable core site functionality.