1848300 Members
8490 Online
104024 Solutions
New Discussion

HPVM acsi to avio_stor

 
SOLVED
Go to solution
Pablo Luis Romano
Occasional Advisor

HPVM acsi to avio_stor

I want to know you can change the configuration of disk of a HPVM ( acsi to avio_stor). And it is possible to do so in hot ?. Which is the command ?

Now:

[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk avio_stor 0 2 0 0 0 lv /dev/vg_vm2/rlv_vm2
disk scsi 0 4 0 0 0 disk /dev/rdsk/c8t0d3


After

[Storage Interface Details]
Guest Physical
Device Adaptor Bus Dev Ftn Tgt Lun Storage Device
======= ========== === === === === === ========= =========================
disk avio_stor 0 2 0 0 0 lv /dev/vg_vm2/rlv_vm2
disk avio_stor 0 4 0 0 0 disk /dev/rdsk/c8t0d3
3 REPLIES 3
melvyn burnard
Honored Contributor
Solution

Re: HPVM acsi to avio_stor

use hpvmmodify:
hpvmmodify -P -m disk:aviostor::disk:/dev/rdsk/c8t0d3

and if this is the OS disk then yes you will probably have to restart the Guest
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Pablo Luis Romano
Occasional Advisor

Re: HPVM acsi to avio_stor

NO, The disk /dev/rdsk/c8t0d3 is a Filesystem Oracle
Eric SAUBIGNAC
Honored Contributor

Re: HPVM acsi to avio_stor

Bonjour Pablo,

Whatever how virtual disks are used for, YOU WILL HAVE TO REBOOT the VM if you want to change virtual driver from scsi to avio, or avio to scsi.

In fact, you can't have a single disk in scsi or avio : the whole virtual bus/device that supports your virtual disks must have the same driver type. And of course, all devices that share the same adapter must have the same type.

It is about the same thing than in real physical life. For example, if you have an SCSI adapter, all disks connected to this adapter must be SCSI. If you have a SAS adapter, all disks connected to this adapter must be SAS.

In other words, modifying the driver type of a virtual disk implies that you have to modify the driver type of the virtual HBA. And you CAN'T ADD / MODIFY a virtual adapter without rebooting a VM.

[Yes, you can add a virtual disk to an existing adapter (bus/device) without rebooting, but you can't add a virtual disk to a new bus/device without rebooting.]

2 way to do the modification, but you will have to stop the VM before :

1) delete all disks from a given adapter then add them back

- Suppress all disks from the virtual adapter (OK, in your example just one disk ;-) : "hpvmmodify -P vm2 -d disk:scsi:0,4,0:disk:dev/rdsk/c8t0d3"

- When all disks from adapter at bus 0, device 4 are deleted the scsi virtual adapter itself is also removed

- Add back all disks whith avio driver : hpvmmodify -P vm2 -a disk:avio_stor:0,4,0:disk:dev/rdsk/c8t0d3"

- the adapater at bus 0, device 4 will be created with driver avio

2) Do it in one shot (the best way I guess :-)

- hpvmmodify -P vm2 -m hba:avio_stor:0,4


Then restart the VM



HTH

Eric