Operating System - HP-UX
1834609 Members
3301 Online
110069 Solutions
New Discussion

Re: Migrate vmhosts vg00 to new disks

 
Alan Casey
Trusted Contributor

Migrate vmhosts vg00 to new disks

HP-ux 11iv2, Integrity VM 3.5

I would like to migrate the virtual disks for a vmhost to new disks.
On the virtusl server they are logical volumes so I can migrate the data with dd.

how do I update the vmhost to point to the new devices?
3 REPLIES 3
melvyn burnard
Honored Contributor

Re: Migrate vmhosts vg00 to new disks

use DRD to clone the vg00 disk to a new disk, then activate the new clone
man drd

If your server does not have DRD, you can obtain it for free from:
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=DynRootDisk
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Alan Casey
Trusted Contributor

Re: Migrate vmhosts vg00 to new disks

thanks Melvyn, I might try this for vg00
I have other vg's too and was hoping I cud just use dd and then update the vmhost config to point at the new disks and start them up again
Eric SAUBIGNAC
Honored Contributor

Re: Migrate vmhosts vg00 to new disks

Bonjour Alan,


Yes DRD is an alternative for vg00. But I think you can use as well "dd" instead. Especially if you have others VG than vg00. Depending on your storage devices, you can also use snap or clone features at storage level

Just be aware of some things :

- target disks (file, lv or disks devices) must have at least the same size than source disks.
- be aware of virtual bus/device/target instances. If you replace a disk with a copy, be sure that new disks will have the same bus/device/target than original one.
- If you present LV as virtual disks to the VM, you should change vgid unless you delete original VG.
- In some circumstances (copying vg00 at storage level), you will have to modify the EFI autoboot.


To answer your original question "how do I update the vmhost to point to the new devices? ", here is a small example with virtual file disks


You must stop the VM before proceeding.


root@wad00002:/oldos/home#hpvmstatus -P foo


[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk avio_stor 1 0 0 0 0 file /oldos/home/foo1
disk avio_stor 1 0 0 1 0 file /oldos/home/foo2



Modify storage AND specify bus/device/target informations :

hpvmmodify -P foo -m disk:avio_stor:1,0,0:file:$PWD/foo3 -m disk:avio_stor:1,0,1:file:$PWD/foo4



root@wad00002:/oldos/home#hpvmstatus -P foo


[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk avio_stor 1 0 0 0 0 file /oldos/home/foo3
disk avio_stor 1 0 0 1 0 file /oldos/home/foo4

HTH

Eric