Operating System - HP-UX
1830935 Members
2504 Online
110017 Solutions
New Discussion

How to map disk from VMserver to VMguest ?

 
SOLVED
Go to solution
Jerry_109
Super Advisor

How to map disk from VMserver to VMguest ?

Hello All,

I'm having trouble mapping a drive from VM Server(hohp244) to a VMguest (hovm235)? How do you tell which disk drive on the server is which drive on the VMguest (hovm235)?

#############################
VM server :
HP-UX B.11.23 U ia64 hp server rx6600
++++++++
partial ioscan from VMserver hohp244

primary drives:
disk 10 0/7/1/0/4/0.10.0.0.0.0.5 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c1t0d5 /dev/dsk/c1t0d5s2 /dev/rdsk/c1t0d5 /dev/rdsk/c1t0d5s2
/dev/dsk/c1t0d5s1 /dev/dsk/c1t0d5s3 /dev/rdsk/c1t0d5s1 /dev/rdsk/c1t0d5s3
disk 12 0/7/1/0/4/0.10.0.0.0.0.6 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c1t0d6 /dev/dsk/c1t0d6s2 /dev/rdsk/c1t0d6 /dev/rdsk/c1t0d6s2
/dev/dsk/c1t0d6s1 /dev/dsk/c1t0d6s3 /dev/rdsk/c1t0d6s1 /dev/rdsk/c1t0d6s3


alt drives:
disk 9 0/7/1/0/4/0.10.1.0.0.0.5 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c3t0d5 /dev/dsk/c3t0d5s2 /dev/rdsk/c3t0d5 /dev/rdsk/c3t0d5s2
/dev/dsk/c3t0d5s1 /dev/dsk/c3t0d5s3 /dev/rdsk/c3t0d5s1 /dev/rdsk/c3t0d5s3
disk 11 0/7/1/0/4/0.10.1.0.0.0.6 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c3t0d6 /dev/dsk/c3t0d6s2 /dev/rdsk/c3t0d6 /dev/rdsk/c3t0d6s2
/dev/dsk/c3t0d6s1 /dev/dsk/c3t0d6s3 /dev/rdsk/c3t0d6s1 /dev/rdsk/c3t0d6s3

++++++++
Drives assigned to VMguest (hovm235)
root@hohp244[/root]
# hpvmstatus -Phovm235 -d | grep rdsk | awk -F: '{print $5}'
/dev/rdsk/c3t0d6
/dev/rdsk/c3t0d5

disk 9 0/7/1/0/4/0.10.1.0.0.0.5 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c3t0d5
disk 11 0/7/1/0/4/0.10.1.0.0.0.6 sdisk CLAIMED DEVICE HP HSV200
/dev/dsk/c3t0d6

#############################


Info from VMguest (hovm235):

root@hovm235[/root]
# /etc/ioscan -nfC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 1 0/0/0/0.0.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 2 0/0/0/0.1.0 sdisk CLAIMED DEVICE HP Virtual Disk
/dev/dsk/c0t1d0 /dev/dsk/c0t1d0s2 /dev/rdsk/c0t1d0 /dev/rdsk/c0t1d0s2
/dev/dsk/c0t1d0s1 /dev/dsk/c0t1d0s3 /dev/rdsk/c0t1d0s1 /dev/rdsk/c0t1d0s3
root@hovm235[/root]
# /etc/ioscan -kC disk -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rdisk/disk4 /dev/rdsk/c0t1d0
/dev/rdisk/disk4_p1 /dev/rdsk/c0t1d0s1
/dev/rdisk/disk4_p2 /dev/rdsk/c0t1d0s2
/dev/rdisk/disk4_p3 /dev/rdsk/c0t1d0s3
/dev/rdisk/disk5 /dev/rdsk/c0t0d0
/dev/rdisk/disk5_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk5_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk5_p3 /dev/rdsk/c0t0d0s3
root@hovm235[/root]
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/disk/disk4_p2 -- Boot Disk
Boot: stand on: /dev/disk/disk4_p2
Root: root on: /dev/disk/disk4_p2
Swap: swap on: /dev/disk/disk4_p2
Dump: swap on: /dev/disk/disk4_p2, 0
5 REPLIES 5
Tim Nelson
Honored Contributor
Solution

Re: How to map disk from VMserver to VMguest ?

hpvmstatus -P GuestName

hpvmdevmgmt -l gdev


If you use lv backingstores you can give the lvol a name like /dev/vg_guest1/disk1


Jerry_109
Super Advisor

Re: How to map disk from VMserver to VMguest ?

Great, Thanks,:

Now I see "c3t0d5 & c3t0d6". Now do I map
these drive to "c0t0d0 & c0t1d0" on VMguest
hovm235?

root@hohp244[/root]
# hpvmdevmgmt -l gdev | grep 235
vswitch3:CONFIG=gdev,EXIST=YES,DEVTYPE=SWITCH,SHARE=YES:hovm234,hovm235,hovm237:WWID_NULL
/dev/rdsk/c3t0d6:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:hovm235:6005-08b4-0010-7a85-0000-e000-00a1-0000
/dev/rdsk/c3t0d5:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:hovm235:6005-08b4-0010-7a85-0000-e000-004a-0000
melvyn burnard
Honored Contributor

Re: How to map disk from VMserver to VMguest ?

your simplest way is to use the VMM or Virtual Machine Manager, this will give you a graphical representation for your VM's, networking, storage etc.

Other than that, use hpvmstatus -Vp
In the output you will get information something like the following:
[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =======
disk scsi 0 1 0 0 0 file /var/vmdisks/vm1
disk scsi 0 1 0 2 0 disk /dev/rdsk/c4t10d0

Notice the Bus/Dev/Ftn/Tgt/Lun info.
In this case, if the guest OS were HP-UX, you would see two discs, /dev/dsk/c0t0d0 and /dev/dsk/c0t2d0

So use the hpvmstatus -Vp command, and work out your disk from there
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Jerry_109
Super Advisor

Re: How to map disk from VMserver to VMguest ?

looks like I do not have VMM:

from the hpvmdevmgmt cmd the (2) drives have a unique ID :
"00a1-0000" & "004a-0000" ? is there a way to map this to "c0t0d0" or "c0t1d0" on hovm235?

#####################################
# hpvmdevmgmt -l gdev | grep 235
/dev/rdsk/c3t0d6:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:hovm235:6005-08b4-0010-7a85-0000-e000-00a1-0000

/dev/rdsk/c3t0d5:CONFIG=gdev,EXIST=YES,DEVTYPE=DISK,SHARE=NO:hovm235:6005-08b4-0010-7a85-0000-e000-004a-0000

#############################
Base-VXVM B.04.10.011 Base VERITAS Volume Manager Bundle 4.1 for HP-UX
GuestAVIOStor B.11.23.0803 HPVM Guest AVIO Storage Software
GuestAvioLan B.11.23.0712.01 HPVM Guest AVIO LAN Software
HostAVIOStor B.11.23.0803 HPVM Host AVIO Storage Software
HostAvioLan B.11.23.0712.02 HPVM Host AVIO LAN Software
T2767AC A.03.50 Integrity VM
VMGuestLib A.03.50 Integrity VM Guest Support Libraries
VMKernelSW A.03.50 Integrity VM Kernel Software
VMProvider A.03.50 WBEM Provider for Integrity VM
AVIO-GVSD B.11.23.0803 HPVM Guest AVIO Storage Software
AVIO-HVSD B.11.23.0803 HPVM Host AVIO Storage Software
HPVM A.03.50 Integrity VM HPVM
VMAGENT A.03.50 HP Resource Allocation Agent for Integrity VM
VMCONVERT A.03.50 Integrity VM Machine Conversion Tools
VMMIGRATE A.03.50 Integrity VM Migration Tools
VRTSvmdoc 4.1.010 VERITAS Volume Manager Documentation
VRTSvmpro 4.1.010 VERITAS Volume Manager Management Services Provider
VRTSvxvm 4.1.011 Base VERITAS Volume Manager 4.1 for HP-UX
vmGuestLib A.03.50 Integrity VM vmGuestLib
vmKernel A.03.50 Integrity VM vmKernel
vmProvider A.03.50 WBEM Provider for Integrity VM vmProvider
Jerry_109
Super Advisor

Re: How to map disk from VMserver to VMguest ?

found great command that maps VMserver disk
to VMguest disk :

####################
# hpvmstatus -VP hovm235|egrep "Ioscan format|Physical Device"
Ioscan format : 0/0/0/0.0.0
Physical Device : /dev/rdsk/c3t0d6
Ioscan format : 0/0/0/0.1.0
Physical Device : /dev/rdsk/c3t0d5
Ioscan format : 0/0/2/0
Physical Device : console
####################