Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Wednesday, July 16, 2014

Vpar Commands +HPUX

Vpar Commands:

vparcreate
vparcreate is used to create a new virtual partition.

# vparcreate -p vpar1
-a cpu::3 -a cpu:::2:4 -a cpu:41 -a cpu:45 (Can be done a LIVE system)
–a mem::1280 (Cannot be done on a LIVE system)
–a io:0/8 -a io:1/10 -a io:0/8/0/0.5.0:boot

vparboot
The vparboot command is used to boot a second vPar from a running vPar.

Boot vpar2 partition from running vpar1 partition:

# vparboot -p vpar2

Boot vpar2 partition to single user mode from running vpar1 partition:

# vparboot -p vpar2 –o “-is”

vparmodify
With vparmodify we can change the resources and attributes of an existing vPar.

Modify the primary boot path to vpar1:

# vparmodify -p vpar1 -m io:0/8/0/0.5.0:BOOT

Set the alternate boot path:

# vparmodify -p vpar1 -a io:0/8/0/0.2.0:ALTBOOT



vparremove
The vparremove command deletes a virtual partition previously created using the vparcreate
command. All resources associated with the virtual partition are made available for allocation
to other partitions.


# vparremove -p vpar1
Remove virtual partition vpar1? [n]: y


vparstatus
Display information about one or more virtual partitions on a system. If Monitor is not loaded
the vparstatus shows this with an message. The output shows also the state of a vPar.


# vparstatus
[Virtual Partition]
                                                                          Boot
Virtual Partition Name         State Attributes Kernel Path               Opts
============================== ===== ========== ========================= =====
test0                       Up    Dyn,Auto   /stand/vmunix             -lq
test2                       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
==============================  ================  ====  ====================
test0                          6/  8    6   1     7    0/  0        28544
test2                          7/ 12    7   1     7    0/  0        20480

You can change only Unbound CPUs, for bound CPUs we have to recreate vpar.

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

[CPU Details]
Min/Max:  6/8
Bound by User [Path]:
Bound by Monitor [Path]:  0.10
                          0.11
                          0.12
                          0.13
                          1.10
                          1.11
Unbound [Path]:  3.13

[IO Details]
   0.0.0
   0.0.0.2.0.6.0.0.0.0.0  BOOT
   0.0.6
   0.0.14
   0.0.10
   0.0.12
   0.0.0.3.0.6.0  ALTBOOT

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

Total Memory (MB):  28544




Thanks...
Kiran Jadhav

**Let's Share our knowledge and keep visiting here**

No comments:

Post a Comment