Operating System - HP-UX
1822475 Members
2533 Online
109642 Solutions
New Discussion юеВ

VPAR root disk mirror and Memory

 
SOLVED
Go to solution
Mahadev Pednekar
Frequent Advisor

VPAR root disk mirror and Memory

Hi,
I have rp5470 with two vpar and each with 2 GB memory. First vpar root disk is internal and second vpar root disk is external.
Now I want to mirror root disk of first vpar, can it be done in normal way or any special steps is required.
Next I want to move 1 GB of memory from second vpar to first vpar so that first vpar will have 3 GB memory, can this be done ? If yes then how. I am new to vpar.

regds,
MP
10 REPLIES 10
Mark Grant
Honored Contributor

Re: VPAR root disk mirror and Memory

Do your mirroring as normal. It won't make any difference.

For your memory "vparmodify -p vpar2 -m mem::1024" and "vparmodify -p vpar1 -m mem::3072"

Both vpars will have to be down to alter the memory settings though.
Never preceed any demonstration with anything more predictive than "watch this"
Devender Khatana
Honored Contributor

Re: VPAR root disk mirror and Memory

Hi MP,

I agrre with Mark nothing more than that is required.

For your memory run first command on the vpar you are reducing memory from and the second on the vpar you are adding memory to.

HTH,
Devender
Impossible itself mentions "I m possible"
Mahadev Pednekar
Frequent Advisor

Re: VPAR root disk mirror and Memory

Hi,
After executing this command I have to reboot both the partion to take memory effect ?

regds,
MP
Mark Grant
Honored Contributor

Re: VPAR root disk mirror and Memory

You can't execute the commands with the vpars active anyway. You have to shut them down first. So in effect, yes, a re-boot is required.
Never preceed any demonstration with anything more predictive than "watch this"
Ranjith_5
Honored Contributor
Solution

Re: VPAR root disk mirror and Memory

Hi Mahadev,

Assuming that you have a SCSI external storage you can follow the normal steps for mirroring. It is not recommanded to mirror a FC connected PV to have a mirror with the internal scsi disk.

The case of moving memory from the first vpar to the second vpar: I assume that you have only 2 vpars in your rp5470.

Now you have to login through the console.
Shutdown the server2 from the console.

#shutdown -hy 0

Release 1GB RAM from server2

server1>#vparmodify -p server2 -m mem::1024

Start the server2 from the console of server1

server1>#vparboot -p server2

After the server 2 is booted shutdown server1 from it console.

Now go to server2 console and add 1GB additional RAM to it.( On console use ^A to move from one vpar to the next vpar)

Server2>#vparmodify -p server1 -m mem::3072

Boot server1 from the console of server2

Server2>#vparboot -p server1

Verify the config using #vparstatus


Hope this helps.

Regards,
Syam
Mahadev Pednekar
Frequent Advisor

Re: VPAR root disk mirror and Memory

Hi Mark,
If vpar is down then command has to be executed from MON> prompt or how it is ?

regds,
MP
Ranjith_5
Honored Contributor

Re: VPAR root disk mirror and Memory

Mahadev,

I have posted just now the detailed procedure above.

Regards,
Syam
Mark Grant
Honored Contributor

Re: VPAR root disk mirror and Memory

Shutdown var2 first, log into vpar1, reduce the memory from vpar2 with "vparmodify" and then start it up again. Then log on to vpar2 and shutdown vpar1, reduce it's memory with "vparmodify" and then start it up again.

Remember you can run the "vparmodify" command for any vpar from any other vpar.
Never preceed any demonstration with anything more predictive than "watch this"
melvyn burnard
Honored Contributor

Re: VPAR root disk mirror and Memory

do you rmirrors as per normal except remember to change the autoboot string to reflect you boot to vpmon instead of vmunix:
mkboot ├в a ├в hpux /stand/vpmon ├в a├в /dev/rdsk/vParBootDevice

To do the memory changes you need to:
1. halt the vpar that you wish to REMOVE memory from. (vpar2)
2. from the vpar (vpar1) that is still up do vparmodify -p vpar2 -m mem::1024
3. reboot vpar2 and confirm it now only has 1Gb ram.
4. from vpar2, halt vpar1 to add the memory.
5. run vparmodify -p vpar1 -m mem::3072
6 reboot vpar1 and verify it has the correct memory assigned
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Mahadev Pednekar
Frequent Advisor

Re: VPAR root disk mirror and Memory

Hi
Thanks for all your help and it worked for me perfectly.

regds,
MP