Operating System - HP-UX
1831589 Members
3219 Online
110025 Solutions
New Discussion

HPVM version 2.0 to HPVM version 4.0 upgrade

 
SOLVED
Go to solution
Torsten.
Acclaimed Contributor

HPVM version 2.0 to HPVM version 4.0 upgrade

Hi experts,

I hope someone came across this already and has an idea.

I'm about to upgrade from HP Integrity virtual machines 2.0 to version 4.0. All backing stores are based on LVM lvols.

Because the manual says you need to be on version 3.0 or 3.5 my first step was upgrade version 2.0 to version 3 using swinstall. The host is on hp-ux release

HPUXBaseAux B.11.23.0609 HP-UX Base OS Auxiliary

The host and all guests came up with version 3.

Now I created mapfiles of all VGs holding my virtual disks and took a backup of /var/opt/hpvm.

Next step was installing 11.31 (sept. 2008) on new disks together with HPVM ver. 4 and following patches:

PHSS_38566
PHSS_38567
PHSS_38611
PHSS_38631
PHSS_38610

All VGs vgimportet, hpvm environment stopped;
/sbin/init.d/hpvm stop

/var/opt/hpvm restored, hpvm environment startet.

Now the system was creating
/var/opt/hpvm/common/hpvm_mgmtdb_pre1131
and next step should be

# hpvmdevtranslate -a /var/opt/hpvm/common/hpvm_mgmtdb_pre1131

but the script says "no guests are able to run" (or something like this), hpvmstatus says "no guests", but all virtual switches are up and running.

No script
/var/opt/hpvm/common/hpvm_dev_convert
was created.

The file
/var/opt/hpvm/common/hpvm_mgmtdb_pre1131
says this is a version 2 configuration.

Now the question is, how to force the config to be a version 3 configuration?

Did I miss a step? Any ideas?

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!   
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: HPVM version 2.0 to HPVM version 4.0 upgrade

Hi Thorsten,

Shouldn't you be running 11iv3 on your VSE host?

http://docs.hp.com/en/T2767-90179/ch02s01.html

HP Integrity Virtual Machines B.04.00 is supported on HP Integrity servers or nPartitions running HP-UX 11i v3 (September 2008 0809 or later)

Regards,
Robert-Jan
Torsten.
Acclaimed Contributor

Re: HPVM version 2.0 to HPVM version 4.0 upgrade

Thanks Robert-Jan,

maybe it was not clear enough, I wrote

"Next step was installing 11.31 (sept. 2008) on new disks together with HPVM ver. 4 and following patches:"

This was on the host.

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!   
Richard Hepworth
Esteemed Contributor
Solution

Re: HPVM version 2.0 to HPVM version 4.0 upgrade

Torsten,

Do you have your hpvmcreate/hpvmmodify commands saved? We generally update a /home/hpvm/ file everytime we create/edit a VM so we can easily recreate them if situations like the above happen. If not /var/opt/hpvm/common/hpvm_mgmtdb is an ascii file and you could attempt a manual translation on it. Maybe create a test VM and allocate it network & storage devices to check what a V4 mgmtdb entry looks like and build the file up from your older version....
Torsten.
Acclaimed Contributor

Re: HPVM version 2.0 to HPVM version 4.0 upgrade

We started the 11.23 with HPVM version 3.0 again and did a hpvmmodify on each guest (removed and added the null DVD), just to touch the configuration.

After this the mgmt database was reported as version 3.

But finally the result was the same on the HPVM 11.31 version 4 host - no guest import possible, no device translation.




Richard, this was exactly we did.

We recorded all the

# hpvmstatus -P

configurations and re-created them.


For all who will probably need this in the future:

If the configuration for an existing guest is listed for example like this:


[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk scsi 0 1 0 7 0 lv /dev/vg01/rlvol1


You MUST make sure BUS, DEVICE and TARGET are the same in the new guest.

Otherwise you will likely get new devices files inside the guest and you need to adjust all the LVM configuration in the guest (vgexport/vgimport). This applies to hp-ux guest. If this happens to the guest boot disk, your guest will not boot, except in LVM maintenance mode.

So according to the configuration listed above add the device like this

BUS=0
DEVICE=1
TARGET=7

# hpvmcreate -P blabla
# hpvmmodify -P -a disk:scsi:0,1,7:lv:/dev/vg01/rlvol1


Hope this will help someone someday.



Thanks for replies.

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!