Operating System - HP-UX
1829456 Members
1322 Online
109992 Solutions
New Discussion

HPVM - 11iv3 virtual machines and assigning disk devices from host

 
Tom Haddad
Super Advisor

HPVM - 11iv3 virtual machines and assigning disk devices from host

I have one virtual machine that has these current disks (b/d/t) as presented by the VM host
Hpvmstatus shows: B/D/F/T/L assignments of
0/1/0/0/0 thru 0/1/0/13/0

Our practice has been to add the device hpvmodify) and provide explicit values of B-D-T

To add the next new disk, would my next new disk be assigned 0,1,14?
Whats the scsi range? Should I start wtih 0,2,0?


7 REPLIES 7
Mohammad Sanaullah
Frequent Advisor

Re: HPVM - 11iv3 virtual machines and assigning disk devices from host

Hi
To add a disk to virtual machine/system, we need to do following activity:
1. Identify which disk to be presented on virtual server.
2. Assign in to virtual Machine as follows:
hpvmmodify -P -a disk:scsi::disk:/dev/rdsk/
* disk name as in HOST machine.
3. do IOSCAN on Virtual machine
ioscan -fnC disk
insf -e
ioscan -fnC disk
use the disk as we use in physical machine
after doing a pvcreate to new visible disk on virtual server.
Alive
Richard Hepworth
Esteemed Contributor

Re: HPVM - 11iv3 virtual machines and assigning disk devices from host

Hi Tom,

It depends if you are using virtual scsi or AVIO. It's 0-14 for virtual scsi or 0-127 for AVIO.
You could always just let HPVM decide for you as you don't need to specify these values when allocating storage to the VM

regards,

Richard
Tom Haddad
Super Advisor

Re: HPVM - 11iv3 virtual machines and assigning disk devices from host

Im using virtual scsi (i thought was 0-14 (15 devices. My next device will be 0,1,14 or I may jump to the next device range and use 0,2,0.

I had the same steps on virtual guest as I do on the virt host first
on host..
symcfg discover (we use EMC storage..this will discover the newly mapped device)
enxt on virt host..
ioscan -fnC disk (look for new ctd)
insf -e
ioscan -fnC disk again if needed
run hpvmmodify to present the disk to the virtual guest

on guest...
ioscan -fnC disk
insf -e
perform pvcreate on new disk
perform usual volumegrup tasks from this point..
Richard Hepworth
Esteemed Contributor

Re: HPVM - 11iv3 virtual machines and assigning disk devices from host

Tom,

Unless you have a specific need to allocate target numbers manually just run hpvmmodify without it, HPVM will automatically create the next one up:

hpvmmodify -P myvm -a disk:scsi::disk:/dev/rdisk/disk1

Also as it's 11iv3 you shouldn't need to run insf manually as this gets spawned automatically by sfd when new devices are detected. Rest of procedure looks ok

regards,

Richard
Tom Haddad
Super Advisor

Re: HPVM - 11iv3 virtual machines and assigning disk devices from host

thanks to all!
Tom Haddad
Super Advisor

Re: HPVM - 11iv3 virtual machines and assigning disk devices from host

Information was very helpful!
Tom Haddad
Super Advisor

Re: HPVM - 11iv3 virtual machines and assigning disk devices from host

I had one question in similar article.
I want to change to a new bus /evice (ie 0,2,x)
I have 14 devices on the VM guest from 0,1.0 to 0,1,13) right now and approaching the device limit on 0,1.
From the hpvmmodify I will add the new disk as 0,2,0 but I was informed that I need to reboot the VM guest after I modidy it. The modify will respond with PROTOCOL ERROR and to RESTART to make the changes effective.
True?
Or I can stop the guest, then run hpvmmodify then restart the guest!
Same effect either way!