dropdown menu

Basics

PowerVM (Power Virtual Machine):

PowerVM formerly known as Advanced Power Virtualization, it is the virtualization solution for AIX.
PowerVM has 3 editions:

Express Edition: Hypervisor, DLPAR (3 servers), VIO (1 server), IVM, NPIV
Standard Edition: +DLPAR (254 servers), + VIO (2 servers), +HMC, +Multiple Shared Processor Pools, + Shared Storage Pools
Enterprise Edition: ++Active Memory Sharing, ++Live Partition Mobility


Intergrated Virtualization Manager (IVM)
For a smaller environment, not all functions of an HMC are required, and the deployment of additional HMC hardware may not be suitable, so IBM has developed the IVM, a hardware management solution that performs a subset of the HMC features for a single server, avoiding the need for a dedicated HMC server.
IVM manages standalone servers so a second server managed by IVM would have its own instance of the IVM. With the subset of HMC server functionality, IVM provides a solution that enables the administrator to quickly set up a system. The IVM is integrated within the Virtual I/O Server product.


POWER Hypervisor
POWER Hypervisor is the foundation of IBM PowerVM. It is a firmware layer sitting between the hosted operating systems and the server hardware, and it is always activated.
It delivers functions that enable capabilities: dedicated or micro partitioning, virtual processors, virtual ethernet- scsi- fibre channel- adapters and virtual consoles.


LPAR - Dedicated processors

Dedicated processors are whole processors that are assigned to dedicated-processor partitions (LPARs). The minimum processor allocation for an LPAR is one (1) whole processor, and can be as many as the total number of installed processors in the server.
Each processor is wholly dedicated to the LPAR. It is not possible to mix shared processors and dedicated processors in the same partition.


Micro-Partitioning
Micro-Partitioning is the ability to distribute the processing capacity of one or more physical processors among one or more logical partition.


Shared-processor pools
In POWER5-based servers, a physical shared-processor pool is a set of physical processors that are not dedicated to any logical partition. Micro-Partitioning technology coupled with the POWER Hypervisor facilitates the sharing of processing units between micro-partitions.

Multiple Shared-Processor Pools (MSPPs)is a capability supported on POWE6. This capability allows a system administrator to create a set of micro-partitions with the purpose of controlling the processor capacity that the set of micro-partitions can consume from the physical shared-processor pool. The set of micro-partitions form a unit and this can be managed for example how much processor capacity it can use.

On all Power Systems supporting Multiple Shared-Processor Pools, a default Shared-Processor Pool is always automatically defined. The default Shared-Processor Pool has a pool identifier of zero (SPP-ID = 0) The default behavior of the system, with only SPP0 defined, is the current behavior of a POWER5 server with only a physical shared-processor pool defined. Micro-partitions are created within SPP0 by default, and processor resources are shared in the same way.

If several partitions from different shared processor pools are competing for additional resources, the partitions with the highest weight will be served first. You must therefore define a partition’s weight based on the weight of partitions in other shared processor pools.


Shared Storage Pool
A shared storage pool is a pool of SAN storage devices assigned to multiple Virtual I/O Servers. It is based on a cluster of Virtual I/O Servers. When using shared storage pools, the Virtual I/O Server provides storage through logical units (file backed storage device) that are assigned to client partitions and it appears as a virtual SCSI disk in the client partition. Shared Storage Pools are using thin provisioning.


Storage Pool vs Volume Group
The IVM and HMC environments present 2 different interfaces for storage management under different names. Storage Pool interface under IVM is essentially the same as LVM under HMC. (These are used sometimes interchangeably.) So volume group can refer to both volume groups and storage pools, and logical volume can refer to both logical volumes and storage pool backing devices.


Active Memory Expansion:
Active Memory Expansion is the ability to expand the memory available to an AIX partition beyond the amount of assigned physical memory. Active Memory Expansion compresses memory pages (so it generates CPU load) to provide additional memory capacity for a partition. (It is a Power7 feature.) Starting with POWER7+,memory page compression and decompressionis offloaded to a hardware accelerator.


Active Memory Sharing:
Active Memory Sharing (AMS) enables the sharing of a pool of physical memory among partitions on a single Power server (Power 6 or later), helping to increase memory utilization and drive down system costs.


Active Memory Deduplication:
To optimize memory use, Active Memory Deduplication avoids data duplication in multiple distinct memory spaces. On traditional LPARs, multiple identical data are saved across different positions in main memory. Active Memory Deduplication combines the data in just one physical memory page and frees the other chunks with identical data. The result is multiple logical memory pages pointing to the same physical memory page, thus saving memory space. (It is available on LPARs using Active Memory Sharing.) 


Acitive Memory Mirroring:
It is called sometimes system firmware mirroring. Active Memory Mirroring for the hypervisor is designed to mirror the main memory that is used by the system firmware to ensure greater memory availability . When enabled, an uncorrectable error that results from a failure of main memory used by the system firmware will not cause a system-wide outage. The system maintains two identical copies of the system hypervisor in memory at all times.

47 comments:

  1. Your comment about SPs and VGs, makes it sound as though they're synonymous, and if you're under IVM, just use the SP term. That may have been true when first released, but I believe SPs are being enhanced well beyond VGs now. With capabilities such as shared storage pools, and file-backed-Optical.

    Or can I do this with a VG and I'm just not aware of it?

    ReplyDelete
  2. It was confusing for me, and after reading some docs, I realized they are very similar. I wrote more on these subjects on this blog: VIO -> VSCSI - Stor. Pool., and VIO -> VSCSI (I would suggest read this last one (http://aix4admins.blogspot.com/2011/06/virtual-scsi-virtual-scsi-is-based-on.html), from the middle, where I create the same vg with mkvg and mksp command.)

    I think you made a good point about shared storage pools, and that is possibly a difference. However a Virtual Media Repository (with file-backed-Optical) can be created on a normal vg as well:

    padmin@bb-vios2:/home/padmin # lsvg
    rootvg

    padmin@bb-vios2:/home/padmin # lssp
    Pool Size(mb) Free(mb) Alloc Size(mb) BDs Type
    rootvg 279552 195584 256 0 LVPOOL

    padmin@bb-vios2:/home/padmin # mkvg -vg bbvg hdiskpower0
    bbvg

    padmin@bb-vios2:/home/padmin # lssp <--the created bbvg is shown as a storage pool as well
    Pool Size(mb) Free(mb) Alloc Size(mb) BDs Type
    rootvg 279552 195584 256 0 LVPOOL
    bbvg 25888 25888 16 0 LVPOOL

    padmin@bb-vios2:/home/padmin # mkrep -sp bbvg -size 4G
    Virtual Media Repository Created
    Repository created within "VMLibrary" logical volume

    padmin@atcgvirp2-vios2:/home/padmin # lsrep <--the pool is created on a normal vg
    Size(mb) Free(mb) Parent Pool Parent Size Parent Free
    4079 4079 bbvg 25888 21792


    To be honest, I do not really see why IBM created these this way...if you have any other good idea, you can enlighten me :)

    ReplyDelete
    Replies
    1. I think the reasoning behind storage pools is that you can use/create/modify them in HMC GUI and thus assign storage of any kind to lpars.
      If I recall correctly this part of HMC GUI is on managed system level.

      Delete
  3. Hi,

    If Uncapped mode is enabled, whether the processor units has been taken upto desired value or beyond the desired value in the shared processor pool. Please clarify.

    Regards,
    Siva

    ReplyDelete
    Replies
    1. Hi,

      It can take beyond the desired value in case of uncapped mode. (That is the main difference between capped and uncapped mode.)

      Delete
    2. Hi,

      There is maximum limit of acquiring processor in the shared free processor pool.

      Delete
    3. Yes, that is true.
      "The number of Virtual Processors can not be extended over 10X of the Entitled Capacaty.
      (If EC=0,5 then the maximum number of Virtual Processor can not be over 5.) "
      In this case it can use up to maximum 5 Physical CPU in uncapped mode.

      Delete
  4. Hi,

    Does we change the desired value (memory) online without any downtime.?

    Regards,
    Siva

    ReplyDelete
    Replies
    1. Hi, yes it can be done online as a DLPAR operation
      Some notes:
      - it can't be larger than maximum memory
      - should be changed in profile as well, so next reboot will take this new amount of memory

      Delete
  5. Hi,

    Sorry, had wrongly asked question. Whether we can increase the maximum value online ?

    ReplyDelete
    Replies
    1. Hi, maximum value can't be increased online.
      LPAR profile must be changed and reboot is needed (new maximum value must be loaded from profile)

      Delete
  6. Hi , I have a scenario here.

    My AIX Frame is totally enabled with 8 CPUs.
    Partition A assigned with EC=4 and partition B with EC=4 and both are uncapped.
    Incase if Partition A need one more cpu which is free in partition B , is possible to be acquired by partion A ?

    and if it possible to acquire one more CPU by Partition A , when it required by partition B , will Partition B to take it back again ? as it is Entitled for Partition B

    ReplyDelete
    Replies
    1. Hi,

      short answer is yes, when you have uncapped partitions, they can exceed the entitled capacity when resources are available. But they can take it back its own processing capacity form other LPARs when they need it.
      There are 2 other things what you should know as well:
      1. uncapped weight: Its a value, what you set at LPAR creation, and if it is higher, then LPAR will receive more resources in uncapped mode. (compare to other LPARs which uncapped weight value is lower.)

      2. virtual processors: If you set, in your scenario, 4 virtual processors for both LPARs (as desired value), they will not exceed 4 processing unit. This is because 1 virtual processor represents 1 CPU. So, if you want that an LPAR use more CPU if needed in uncapped mode, then you should set virtual processor higher then 4. (For example 5,6,7 or 8 if you would like that 1 LPAR could use all the resources if needed.)

      Delete
  7. hi...since am starting my career as an aix system admin,could you pls say me the basic concepts of vio and most used commands in vio concepts, in troubleshooting part..?? thanx in advance.

    ReplyDelete
    Replies
    1. Hi, on this link you can find more info about this topic: http://aix4admins.blogspot.hu/2011/06/vios-service-package-definitions-fix.html

      Delete
  8. Hi ..
    I have system with
    Entitled Capacity : 0.50
    Online Virtual CPUs : 2
    Maximum Virtual CPUs : 16
    Minimum Virtual CPUs : 1

    could you please suggest what does Entitled Capacity mean

    ReplyDelete
    Replies
    1. Hi, Processing Capacity, Processing Units and Entitled Capacity are basically the same thing. There is some description above, but Entitled Capacity: 0.50 means 50% of the CPU is assigned to that LPAR (which will be distributed on 2 Virtual CPUs in your case).

      Delete
    2. Thanks a ton for this blog, you are a life saver :)

      I have a query here, how can the max vCPUs be 16 when EC is 0.5? It should not be more than 10*EC = 5 in this case.

      Please correct me if am wrong.

      Thanks,
      Varun

      Delete
    3. Yes, you are right it cannot be more that 10*EC (or in case Power7+, it is 20*EC) as desired value, however this is just a setting here for maximum value. I guess for maximum value you can type anything, but it is useless to write more than what is allowed by the system. (as in this case)

      Delete
  9. Hi..can i change the uncapped mode to capped and vice versa with dlpar (i.e. with out rebooting partition).

    hoping you will answer,
    Thank you ..any way

    ReplyDelete
    Replies
    1. Hi, changing capped-uncapped can be done only in the LPAR profile and after that profile activation is needed. So it cannot be changed online with DLPAR.

      Delete
    2. I think you can change capped-uncapped and weight factor using DLPAR, I am in the HMC right now, using power VM standard, in a P7 machine, it is letting me change it .

      Delete
  10. Hi Admin,
    Its very good blog and great content , Admin could you update about WPAR .
    Thanks
    AR

    ReplyDelete
  11. Thanks admin for yor reply,AR

    ReplyDelete
  12. From where I can find simple VIO's PDF to understand about VIOS and also want VIOS commands

    ReplyDelete
    Replies
    1. IBM Redbooks (or info can be found on this page)

      Delete
  13. can we move virtual i/o slots without down time

    ReplyDelete
  14. in the above question by using DLPAR can move virtual adapters

    ReplyDelete
    Replies
    1. Virtual Adapters can be added and removed online.

      Delete
  15. Hi Admin,

    Refering to below screen can i know why "EntitledCPU= 1.50" where my LCPU is 4 and "0&1 are in use but 3&4" are 0.0
    1) Please advise why 3&4 LCPU are not in user by users it only used by system.
    2) why is my Ent is 1.5, when i have 4 LCPU why it shous 1.5, Please explain as i have performance issue need more explination.

    Thank you in Advance.

    ┌─topas_nmon──W=WLM──────────────Host=xxxxxxxxxxx ───Refresh=2 secs───17:46.38─
    │ CPU-Utilisation-Small-View ───────────EntitledCPU= 1.50 UsedCPU= 0.007─────
    │Logical CPUs 0----------25-----------50----------75----------100
    │CPU User% Sys% Wait% Idle%| | | | |
    │ 0 17.2 53.1 0.0 29.7|UUUUUUUUssssssssssssssssssssssssss > |
    │ 1 26.7 46.7 0.0 26.6|UUUUUUUUUUUUUsssssssssssssssssssssss > |
    │ 2 0.0 26.0 0.0 74.0|sssssssssssss > |
    │ 3 0.0 37.9 0.0 62.1|ssssssssssssssssss > |

    ReplyDelete
    Replies
    1. Hi,
      1. I guess, because there are no more user processes :) If needed more, I think it will be dispatched there as well.

      2. You should understand the words Entitled Capacity, Virtual Processor, Logical Processor. For a starting point please check this link: http://aix4admins.blogspot.hu/2013/04/virtual-processors-and-entitled.html

      Delete
    2. hi admin,
      if not use vios to allocated disk resource to lpar, my server has 2 sas raid controllers then can i create how many lpars on it?

      Delete
    3. Hi, for an LPAR with local disks, needs a storage controller, so I would say 2...but check technical documentation of your model as well.

      Delete
  16. hi Balazs,
    i am a very big fan of ur blog. It is leading me to wonderfull path.
    i am beginner in aix.
    i have a question.
    Is it possible to rename LPAR in AIX?

    ReplyDelete
    Replies
    1. Hi, yes, it is possible. On HMC if you choose LPAR properties you can edit the LPAR name field. Or you can do it in HMC command line as well. (You asked about LPAR name chenge, not the hostname change, there is a difference between these.)

      Delete
  17. Hi Balazs. Quick question.

    Can I virtualize a Power 5 server without spending a single dollar in licensing fees ??

    I understand IVM is part of VIOS and is activated when VIOS is installed.
    Is the VIOS software free? If so, where do I download it from?

    thanks man

    ReplyDelete
    Replies
    1. I forgot to add.. I only need two LPARs, so IVM is ok for me..

      Delete
    2. Hi, theoretically you can do that, as I have read IVM comes with VIOS (however I have never tested it...we have HMCs). As far as I know if you have a maintenance contract with IBM, then you are able to download base level images (with a special registration), otherwise only updates are free at IBM fix central.

      Delete
    3. Hi,

      All you need to have is VIOS media with you install vios on system and assign IP on that server.
      Access IP using http and proceed with LPAR creation.

      Tested in Blades ( JS12) should work for your system as well.

      Delete
  18. Hello Balazs,

    do you have any idea about the different types of VIO licenses and what are the differences between them >

    thanks in advance...

    Regards
    Rahul

    ReplyDelete
  19. how to know managemachine supports howmany cpus

    ReplyDelete
  20. p5 manage machine supports howmany no. of cpus

    ReplyDelete
  21. if am wrong - please correct me . DLPAR to increase cpu is only on capped partitions not for the uncapped partition, since it does automatically. Thank you Sir

    ReplyDelete
  22. I could not understand active memory expansion. Like according to above we can increase the value of physical memory capacity. for that we should be have physical memory available right??

    ReplyDelete
  23. Hi,

    How to see the Physical/Virtual resources of an AIX LPAR from the VIO console ? Thanks ..!

    ReplyDelete
  24. What is vio and their functionality please explain it?

    ReplyDelete