1833770 Members
1973 Online
110063 Solutions
New Discussion

vPar modify

 
SOLVED
Go to solution
MárcioAFM
Frequent Advisor

vPar modify

Hello,

I have two vPars running in a rx8640. I have two CPU's assigned to each one. I need to remove two CPU's from vPar2 and assign to the vPar1 so vPar1 can have four CPU's.

My plan is:

1.Shutdown the vPar's
2.Reboot in nPar mode
3.vparmodify -p vpar2 -d cpu::2 (remove the 2 CPU's from the vPar2)
4.vparmodify -p vpar2 -a cpu::2 (add more two CPU's two vPar1)
In this step i put the number of CPU i want to add or i put the total number of cpu's i want on the vPar?
5.Reboot in vPar mode

Think is a good plan?

Regards,

Márcio
9 REPLIES 9
melvyn burnard
Honored Contributor

Re: vPar modify

well first question is, what version of Vpars.
Then the next question is, how many cpu's are in each Vpar, an dhow many are bound and how many are floating?
Did you assign any CPU's using hardware addresing?

If there are unbound or floating cpu's. you should be able to simply remove themfrom vPar and add them to the other vPar while they are running
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Deepak Kr
Respected Contributor

Re: vPar modify

I have not checked personally but heard that you can do configuration checks on the fly in latest version of HP-UX 11.31 but with some set of patches...

Probably our big guys can put more light to it.

Your steps seems good enough to work!!
"There is always some scope for improvement"
Torsten.
Acclaimed Contributor
Solution

Re: vPar modify

You cannot have a vPar with 0 CPU - you must delete it completely.

Consider this (all depends on the number of configured min vs. max CPUs - sent a "vparstatus"):

- shutdown vPar1 (if needed)
- modify min/max values
- start vPar1
- shutdown vPar2
- remove vPar2
- add 2 CPUs to vpar1

But it will also work if you modify in npar mode ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
MárcioAFM
Frequent Advisor

Re: vPar modify

Hello,

Melvin this is the script i used to create the vPar's:

vparcreate -p vpar1 \
-o "-lq" \
-a cpu::2 \
-a cpu:::1:6 \
-a io:0/0/0 \
-a io:0/0/6 \
-a io:0/0/4 \
-a io:0/0/14 \
-a io:0/0/0/3/1 \
-a io:0/0/12 \
-a io:0/0/0/2/0.6.0:boot \
-a io:0/0/0/3/0.6.0:altboot \
-a mem::32768 \
-g ilm:2048 \


Thanks,

Márcio
Torsten.
Acclaimed Contributor

Re: vPar modify

So you can delete vpar2 from the running vpar1 and add the cpus online.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
melvyn burnard
Honored Contributor

Re: vPar modify

as Torsten says, if you need to use BOTH cpus from vpar1, you will need to halt vpar1, remove vpar1, and then add the 2 cpu's into the running vpar2.

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Torsten.
Acclaimed Contributor

Re: vPar modify

... or vice versa Melvyn... according to the initial post

"I need to remove two CPU's from vPar2 and assign to the vPar1 so vPar1 can have four CPU's."


Anyway, it doesn't make so much sense to run only 1 vPar inside a nPar.

;-)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
MárcioAFM
Frequent Advisor

Re: vPar modify

Hello,

Well realy don't make any sense...customer ask, we HP advice... but in the end customer decides.

I think that the customer is planning on buy some iCap licenses :).

I will do this friday, i have the last vPar last version running on HP-UX 11.31, so i will try to do it online just shutting down vPar2 and add 2 cpu's to vPar1 with this one running.

Regards,

Marcio

MárcioAFM
Frequent Advisor

Re: vPar modify

Hello,

I did a online cpu allocation with the vparmodify and works fine. Just have to shutdown the vPar to modify the max number of CPU's.


Best Regards,,

Thanks

Marcio