The example below illustrates how the VM2000 administrator operates a VM group with two VMs on an SU /390.
/show-vm-resources information=*std ——————————————————————————————————— (1)
CPU-POOL(P)
VM-ID VM-GROUP(G) CPU-Q MAX-U PROC MEM-SIZE MAX-IO 1 MONITOR *STDPOOL(P) 30.00 100.00 2(+1) 512 (100)
2 C1SYS1 *STDPOOL(P) 20.00 20.00 2(+1) 512 (100)
VM-ID STATE VERSION PER ADMIN PRIV
1 MONITOR RUNNING V21.0B NO YES AS
2 C1SYS1 RUNNING V20.0B NO NO AS
F R E E VM: 13 LARGEST-DOMAIN(MB): 14832
/create-vm-group vm-group-name=gcust1,cpu-quota=20,
max-cpu-utilization=20,cpu-pool-name=*stdpool ———————— (2)VMS4401 VM GROUP 'GCUST1' CREATED
VMS4625 VM GROUP 'GCUST1' ASSIGNED TO CPU POOL '*STDPOOL'/add-vm-to-vm-group vm-id=c1sys1,vm-group-name=gcust1,
member-cpu-quota=1 ———————————————————————————————— (3)VMS4425 VIRTUAL MACHINE (2,C1SYS1) ASSIGNED TO VM GROUP 'GCUST1'
/create-vm memory-size=512,vm-name=c1sys2,processor=*bi,
cpu-quota=*by-vm-group(vm-group-name=gcust1,member-cpu-quota=1) ————— (4)VMS3050 VIRTUAL MACHINE (3,C1SYS2) CREATED
VMS4425 VIRTUAL MACHINE (3,C1SYS2) ASSIGNED TO VM GROUP 'GCUST1'VMS4615 VIRTUAL MACHINE (3,C1SYS2) ASSIGNED TO CPU POOL '*STDPOOL'
/show-vm-group vm-group-name=gcust1,information=*all —————————————————— (5)
VM-GROUP CPU-POOL CPU-Q MAX-U
GCUST1 *STDPOOL 20.00 20.00
VM-GROUP CPU-POOL VM-ID CPU-Q / EFF-Q MAX-U / EFF-U
GCUST1 *STDPOOL 2 C1SYS1 1.00 / 10.00 20.00 / 20.00
3 C1SYS2 1.00 / 10.00 100.00 / 20.00
...
/modify-vm-group-attributes vm-group-name=gcust1,cpu-quota=30,
max-cpu-utilization=30 ———————————————————— (6)/show-vm-group vm-group-name=gcust1,information=*attributes
VM-GROUP CPU-POOL CPU-Q MAX-UGCUST1 *STDPOOL 30.00 30.00
/modify-vm-attributes vm-id=c1sys1,
cpu-quota=*by-vm-group(member-cpu-quota=2),max-cpu-utilization=30 ——— (7)/show-vm-resources information=*cpu,
vm-id=*by-vm-group(vm-group-name=gcust1) ——————————— (8)VM-ID CPU-POOL GR-CPU-Q CPU-Q/ EFF-Q MAX-U/ EFF-U PROC
2 C1SYS1 *STDPOOL 30.00 2.00/ 20.00 30.00/ 30.00 2(+1) 3 C1SYS2 *STDPOOL 30.00 1.00/ 10.00 100.00/ 30.00 2(+1)
VM-ID SCHED ACT-I VIRT CPUS 2 C1SYS1 TS NO 00(RUN),01(RUN),02(OFF)
3 C1SYS2 TS NO 00(RUN),01(RUN),02(OFF)
...
/delete-vm vm-id=c1sys2 ——————————————————————————————————————————————— (9)
VMS4429 VIRTUAL MACHINE (3,C1SYS2) REMOVED FROM VM GROUP 'GCUST1'
VMS4619 VIRTUAL MACHINE (3,C1SYS2) REMOVED FROM CPU POOL '*STDPOOL'VMS4024 VIRTUAL MACHINE (3,C1SYS2) TERMINATED
/remove-vm-from-vm-group vm-id=c1sys1,vm-group-name=gcust1,
cpu-quota=30 ————————————————————————————————— (10) VMS4429 VIRTUAL MACHINE (2,C1SYS1) REMOVED FROM VM GROUP 'GCUST1'
/show-vm-group vm-group-name=gcust1,information=*members —————————————— (11)
VM-GROUP CPU-POOL VM-ID CPU-Q / EFF-Q MAX-U / EFF-U
GCUST1 *STDPOOL NONE/delete-vm-group vm-group-name=gcust1 ————————————————————————————————— (12)
VMS4629 VM GROUP 'GCUST1' REMOVED FROM CPU POOL '*STDPOOL'
VMS4405 VM GROUP 'GCUST1' DELETED/show-vm-resources information=*std ——————————————————————————————————— (13)
CPU-POOL(P)
VM-ID VM-GROUP(G) CPU-Q MAX-U PROC MEM-SIZE MAX-IO 1 MONITOR *STDPOOL(P) 30.00 100.00 2(+1) 512 (100)
2 C1SYS1 *STDPOOL(P) 30.00 30.00 2(+1) 512 (100)
VM-ID STATE VERSION PER ADMIN PRIV
1 MONITOR RUNNING V21.0B NO YES AS
2 C1SYS1 RUNNING V20.0B NO NO AS
F R E E VM: 13 LARGEST-DOMAIN(MB): 14832
-----------------------------------------------------------------------------------------------------------------
(1) | The command shows the initial situation for this example: |
(2) | The customer would now like to use a second VM. However, the specified CPU capacity should remain unchanged. For this purpose the VM2000 administrator creates the VM group |
(3) | The customer VM |
(4) | The customer VM |
(5) | The information output for the VM group shows the status now achieved: The two customer VMs |
(6) | After a certain time the customer requires higher CPU capacity and agrees with the data center on a CPU capacity of 30% of the Server Unit capacity. For this purpose the VM2000 administrator increases the relevant values for the VM group |
(7) | In addition, the defined CPU capacity should be distributed to the customer VMs in such a way that |
(8) | The information output for the VM group shows the status now achieved: The two customer VMs |
(9) | After a certain time the customer no longer requires the additionally created VM |
(10) | The VM |
(11) | The VM group |
(12) | The VM group |
(13) | The information output shows that the required status has been achieved. |