Operating System - HP-UX
1834062 Members
2566 Online
110063 Solutions
New Discussion

Re: Translate host to guest disks

 
SOLVED
Go to solution
Mark Fisher_4
Frequent Advisor

Translate host to guest disks

We are presenting raw disks from hosts to guests. How do I determine which disk from the host is the same disk on the guest?

Here is the disk information from the host that was presented to the guest using the hpvmstatus command:

[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk avio_stor 1 0 0 1 0 disk /dev/rdisk/disk8
disk avio_stor 1 0 0 2 0 disk /dev/rdisk/disk9


Here are the disks we see on the guest:

Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 2 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP Virtual Disk
/dev/disk/disk2 /dev/rdisk/disk2
disk 3 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP Virtual Disk
/dev/disk/disk3 /dev/rdisk/disk3


So the host has a disk8 and disk9 and the guest has a disk2 and disk3. How do I determine which host disk is mapped to which guest disk?

Thanks in advance...
4 REPLIES 4
Olivier Masse
Honored Contributor
Solution

Re: Translate host to guest disks

Agreed, it's not very intuitive. You can use "ioscan -m hwpath" on the VM, it will show you a table mapping the lun path to the legacy paths, and using the legacy path you can correlate it easier with the output from hpvmstatus.
Mark Fisher_4
Frequent Advisor

Re: Translate host to guest disks

thank you for your response. It looks like the legacy hw path is disabled but your command shows enough information to determine.

Lun H/W Path Lunpath H/W Path Legacy H/W Path
====================================================================
64000/0xfa00/0x0
0/1/0/0.0x1.0x0
64000/0xfa00/0x1
0/1/0/0.0x2.0x0



it looks like the first column is the guest and the second column is the host (I ran the ioscan -m hwpath from the guest).

So guest disk at 0x0 (guest disk2) is host disk 0x1.0x0 or disk8

guest disk at 0x1 (guest disk3) is host disk 0x2.0x0 or disk9

Is this correct?
Olivier Masse
Honored Contributor

Re: Translate host to guest disks

I find it odd that you don't have legacy paths, on all my 11.31 systems, I have one. Their output is very similar from the bus device in hpvmstatus, which makes matching them easy.

Anybody here reading this have an idea on what's going on? Maybe running "insf -eC disk" will create them?
Mark Fisher_4
Frequent Advisor

Re: Translate host to guest disks

Thanks again for the help. I had to enable legacy mode with these commands:

insf -L -v
insf: Legacy mode is disabled

insf -L

Now the ioscan -m hwpath looks like:

ioscan -m hwpath
Lun H/W Path Lunpath H/W Path Legacy H/W Path
====================================================================
64000/0xfa00/0x0
0/1/0/0.0x1.0x0 0/1/0/0.1.0
64000/0xfa00/0x1
0/1/0/0.0x2.0x0 0/1/0/0.2.0


These seems to help match up with the disks from the hpvmstatus display from the host provider.