Operating System - HP-UX
1833343 Members
2901 Online
110051 Solutions
New Discussion

disk dual zoned to two different VM hosts

 
silusan
Regular Advisor

disk dual zoned to two different VM hosts

vmhost 1 has vmguest 1

vmhost 2 has vmguest 2

 

vmguest1 has two disks coming from vm host1

vmguest2 has two disks coming from vm host2

 

there is a third disk in vmhost1..presented to vm guest1

this disk can be seen from vm host 2 too

 

this disk#3 is dual zoned... is visible from both the vm hosts

 

this disk#3 presented to vm guest1 has been used to create a VG, lv and then a mount point.

 

Storage team say,

they failed over the disk#3 from vmhost1 to vmhost2 and they explain that now the disk#3 is read-write on vmhost2 and just read only on vmhost1

 

and now I am asked to make the disk usable on vmhost2... (i.e., all those mount points to be pesent when it was on vmhost1)

 

so... what should I do... I cannot pvcreate, vgcreate again on disk#3 when it is in vmguest2 (vmhost2) as there is some data before the "failover"

 

do I need to exportvg on vmuest1 and import that ,mappin table on vmguest2?

 

3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: disk dual zoned to two different VM hosts

>>do I need to exportvg on vmuest1 and import that ,mappin table on vmguest2?

 

Yes, that is exactly what you need to do.

 

silusan
Regular Advisor

Re: disk dual zoned to two different VM hosts

thank you. it worked...

 

by the way this is what I see when I import....

 

vgimport -v -m /tmp/map_VG-ABC_ VG-ABC /dev/disk/disk7

Beginning the import process on Volume Group "VG-ABC".

vgimport: Warning:  Volume Group belongs to different CPU ID.

 

Can not determine if Volume Group is in use on another system. Continuing.

Logical volume "/dev/VG-ABC/lv-3" has been successfully created with lv number 1.

Logical volume "/dev/VG-ABC/lv-4" has been successfully created with lv number 2.

Logical volume "/dev/VG-ABC/lv-5" has been successfully created with lv number 3.

 

vgimport: Volume group "/dev/VG-ABC" has been successfully created.

 

Warning: A backup of this volume group may not exist on this machine.

 

Please remember to take a backup using the vgcfgbackup command after activating the volume group.

 

VMGuest/ #

VMGuest/ # vgchange -a y VG-ABC

Activated volume group. Volume group "VG-ABC" has been successfully changed.

 

VMGuest/ # vgcfgbackup VG-ABC Volume Group configuration for /dev/VG-ABC has been saved in /etc/lvmconf/VG-ABC.conf

 

VMGuest/ # mkdir /mount-pt-1;mkdir /mount-pt-2;mkdir mount-pt-3

VMGuest/ #

VMGuest/ # vi /etc/fstab

added entries (didnt do mkfs)

 

mountall

mountpoints got mounted

 

 

chris huys_4
Honored Contributor

Re: disk dual zoned to two different VM hosts

The commands and the output executed are ok.

 

However, there is to much aix-talk coming through. ;)

Its not exportvg, its vgexport on HP-UX.

 

Its not mkfs, its newfs on HP-UX. (though newfs is just a layer on top of mkfs)