Saturday, 2 July 2016

Move resources between vpars

Change Description:
   
Shift 2 CPU’s from the partition in server1 to server2

1. Collect the configuration for your reference.

#server1:/#vparstatus -vp server1
[Virtual Partition Details]
Name:         server1
State:        Up
Attributes:   Dynamic,Autoboot
Kernel Path:  /stand/vmunix
Boot Opts:    -lq

[CPU Details]
Min/Max:  2/16
Bound by User [Path]:
Bound by Monitor [Path]:  0.12
                          0.13
Unbound [Path]:  1.10
                            1.11
                            1.12
                            2.10

[IO Details]
          1.0.0
                        1.0.2
                        1.0.4
                        1.0.8
                        1.0.10
                        1.0.12
                        1.0.0.2.0.6.0.0.0.0.0  BOOT
                        1.0.0.3.0.6.0, ALTBOOT

[Memory Details]
Specified [Base  /Range]:
          (bytes) (MB)
Total Memory (MB):  28288


2. server2:/#vparstatus -vp server2
[Virtual Partition Details]
Name:         server2
State:        Up
Attributes:   Dynamic,Autoboot
Kernel Path:  /stand/vmunix
Boot Opts:    -lq

[CPU Details]
Min/Max:  2/16
Bound by User [Path]:
Bound by Monitor [Path]:           0.10
                                                                        0.11
Unbound [Path]:                                                1.13
                                                                                    2.11
                                                                                    2.12
                                                                                    2.13
                                                                                    3.10
                                                                                    3.11
                                                                                    3.12
                                                                                    3.13

[IO Details]
   0.0.0
   0.0.2
   0.0.4
   0.0.6
   0.0.8
   0.0.10
   0.0.12
   0.0.14
   0.0.0.2.0.6.0.0.0.0.0  BOOT
   1.0.1
   0.0.1
   0.0.0.3.0.6.0, ALTBOOT

[Memory Details]
Specified [Base  /Range]:
          (bytes) (MB)
Total Memory (MB):  20224



***************************************************************************************************************

3. Check the vPar status:

#server1:/#vparstatus
[Virtual Partition]
                                                                                     Boot
Virtual Partition Name         State                       Attributes Kernel Path               Opts
============================== ===== ========== =========================
server2                                     Up                    Dyn,Auto   /stand/vmunix             -lq
server1                                     Up                    Dyn,Auto   /stand/vmunix             -lq

[Virtual Partition Resource Summary]
                                                                                                CPU                 Num       Memory (MB)
                                                            CPU                 Bound/                         IO                     # Ranges/
Virtual Partition Name          Min/Max                  Unbound           devs                 Total MB           Total MB
==============================  ================  ====  ====================
server2                                                 2/ 16                 2   8                  12                     0/  0                              20224
server1                                                 2/ 16                 2   4                  8                      0/  0                              28288

From the above output we see:

vpar server2 has 8 Unbound CPU's.
vpar server1 has 4 Unbound CPU's.





4. Delete 2 Unbound CPU's from vPar server1 (for moving it to vPar server2)

#vparmodify –p server1 –d cpu::2


5. Check the new configuration status of the vPar, server1 it should show 2 less Unbound CPU's. i.e it will show only 2 Unbound CPU's.


# vparstatus
[Virtual Partition]
                                                                                                Boot
Virtual Partition Name         State                       Attributes          Kernel Path               Opts
============================== ===== ========== ========================= server2                                               Up                    Dyn,Auto          /stand/vmunix             -lq
server1                                     Up                    Dyn,Auto          /stand/vmunix             -lq

[Virtual Partition Resource Summary]
                                                                                                                        CPU                 Num                    Memory (MB)
                                                                        CPU                             Bound/                         IO                                 # Ranges/
Virtual Partition Name                            Min/Max                        Unbound           devs                             Total MB    Total MB
==============================  ================  ====  ====================
server2                                                             2/ 16                             2   8                  12                                 0/  0                                20224
server1                                                             2/ 16                             2   2                   8                                 0/  0                                28288



6. View the available resources that are not assigned to any vPar.

server1:/#vparstatus -A
[Unbound CPUs (path)]: 
[Available CPUs]: 

[Available I/O devices (path)]:   

[Unbound memory (Base  /Range)]:  0x0/64
                                                (bytes) (MB)      0xc000000/448
[Available memory (MB)]:  512


7. Add 2 more Unboud CPU's to the vPar server2

#vparmodify -p server2 -m cpu::12


8. Check the new configuration status of the vPar, server2 should show 10 Unbound CPU's.

#vparstatus 
[Virtual Partition]
      
                                                                                                           
                                                                                                                                                                                                            Boot
Virtual Partition Name         State                                   Attributes          Kernel Path               Opts
============================== ===== ========== ========================= server2                                               Up                                Dyn,Auto          /stand/vmunix             -lq
server1                                     Up                                Dyn,Auto          /stand/vmunix             -lq

[Virtual Partition Resource Summary]
                                                                                                CPU                 Num        Memory (MB)
                                                            CPU                 Bound/                         IO                     # Ranges/
Virtual Partition Name          Min/Max                  Unbound           devs                 Total MB                        Total MB
==============================  ================  ====  ====================
server2                                                 2/ 16                 2   10                            12                     0/  0                                          20224
server1                                                 2/ 16                 2   2                  8                      0/  0                                          28288


No comments:

Post a Comment

Using capture groups in grep in Linux

Introduction Let me start by saying that this article isn't about capture groups in grep per se. What we are going to do here with gr...