vmmodify: ERROR (myvm) : Incorrect backing device type - hpux
If we get below error while adding disk to HPVM guest machine:
Here
myvm = HPVM Host machine
vmguest = HPVM guest machine
disk to be added = /dev/rdisk/disk14204
myvm:/dev/disk] hpvmmodify -P vmguest -a disk:avio_stor::disk:/dev/rdisk/disk14204
hpvmmodify: ERROR (vmguest): Incorrect backing device type.
hpvmmodify: Unable to create device disk:avio_stor::disk:/dev/rdisk/disk14204.
hpvmmodify: Unable to modify the guest.
Solution:
Check the device files for the disk:
myvm:/dev/disk] ll /dev/disk/disk14204
brw-r----- 1 bin sys 1 0x00011f Oct 13 15:57 /dev/disk/disk14204
myvm:/dev/disk]
myvm:/dev/disk] ll /dev/rdisk/disk14204
crw-r----- 1 bin sys 13 0x00011f Oct 13 15:57 /dev/rdisk/disk14204
myvm:/dev/disk]
myvm:/dev/disk] ll /dev/pt/pt_disk14204
crw-r----- 1 bin sys 12 0x00011c Sep 18 10:14 /dev/pt/pt_disk14204
myvm:/dev/disk]
See the there is difference between the device files so it is giving error while adding the particular disk to VM guest.
Remove the device file and recreate it by below commands:
myvm:/dev/disk] rm /dev/pt/pt_disk14204
myvm:/dev/disk] rm /var/opt/hpvm/common/hpvm_devinit
myvm:/dev/disk] hpvmdevmgmt -I -V
hpvmdevmgmt: VERBOSE (host): Device /etc already exists in hpvm device database.
hpvmdevmgmt: VERBOSE (host): Device /stand already exists in hpvm device database.
myvm:/dev/disk]
myvm:/dev/disk] ll /dev/pt/pt_disk14204
crw-r----- 1 bin sys 12 0x00011f Oct 15 12:32 /dev/pt/pt_disk14204
myvm:/dev/disk] hpvmmodify -P vmguest -a disk:avio_stor::disk:/dev/rdisk/disk14204
myvm:/dev/disk] hpvmdevinfo -P vmguest |grep 14204
vmguest disk [0,0,103] disk /dev/rdisk/disk14204 /dev/rdsk/c2t11d4
myvm:/dev/disk]
-----------------------------------------------------------------------
hpvm commands log file:
myvm:/] tail -f /var/opt/hpvm/common/command.log
10/15/14 12:11:12|SUMMARY|CLI|kiranj|hpvmdevmgmt -l all
10/15/14 12:11:31|SUMMARY|CLI|kiranj|hpvmstatus -v -P vmguest
10/15/14 12:11:38|SUMMARY|CLI|kiranj|hpvmstatus -v -P vmguest
10/15/14 12:22:21|SUMMARY|CLI|kiranj|hpvmdevmgmt -I -V
10/15/14 12:25:57|SUMMARY|CLI|kiranj|hpvmstatus
---------------------------------------------------------------------------
If we get below error while adding disk to HPVM guest machine:
Here
myvm = HPVM Host machine
vmguest = HPVM guest machine
disk to be added = /dev/rdisk/disk14204
myvm:/dev/disk] hpvmmodify -P vmguest -a disk:avio_stor::disk:/dev/rdisk/disk14204
hpvmmodify: ERROR (vmguest): Incorrect backing device type.
hpvmmodify: Unable to create device disk:avio_stor::disk:/dev/rdisk/disk14204.
hpvmmodify: Unable to modify the guest.
Solution:
Check the device files for the disk:
myvm:/dev/disk] ll /dev/disk/disk14204
brw-r----- 1 bin sys 1 0x00011f Oct 13 15:57 /dev/disk/disk14204
myvm:/dev/disk]
myvm:/dev/disk] ll /dev/rdisk/disk14204
crw-r----- 1 bin sys 13 0x00011f Oct 13 15:57 /dev/rdisk/disk14204
myvm:/dev/disk]
myvm:/dev/disk] ll /dev/pt/pt_disk14204
crw-r----- 1 bin sys 12 0x00011c Sep 18 10:14 /dev/pt/pt_disk14204
myvm:/dev/disk]
See the there is difference between the device files so it is giving error while adding the particular disk to VM guest.
Remove the device file and recreate it by below commands:
myvm:/dev/disk] rm /dev/pt/pt_disk14204
myvm:/dev/disk] rm /var/opt/hpvm/common/hpvm_devinit
myvm:/dev/disk] hpvmdevmgmt -I -V
hpvmdevmgmt: VERBOSE (host): Device /etc already exists in hpvm device database.
hpvmdevmgmt: VERBOSE (host): Device /stand already exists in hpvm device database.
myvm:/dev/disk]
myvm:/dev/disk] ll /dev/pt/pt_disk14204
crw-r----- 1 bin sys 12 0x00011f Oct 15 12:32 /dev/pt/pt_disk14204
myvm:/dev/disk] hpvmmodify -P vmguest -a disk:avio_stor::disk:/dev/rdisk/disk14204
myvm:/dev/disk] hpvmdevinfo -P vmguest |grep 14204
vmguest disk [0,0,103] disk /dev/rdisk/disk14204 /dev/rdsk/c2t11d4
myvm:/dev/disk]
-----------------------------------------------------------------------
hpvm commands log file:
myvm:/] tail -f /var/opt/hpvm/common/command.log
10/15/14 12:11:12|SUMMARY|CLI|kiranj|hpvmdevmgmt -l all
10/15/14 12:11:31|SUMMARY|CLI|kiranj|hpvmstatus -v -P vmguest
10/15/14 12:11:38|SUMMARY|CLI|kiranj|hpvmstatus -v -P vmguest
10/15/14 12:22:21|SUMMARY|CLI|kiranj|hpvmdevmgmt -I -V
10/15/14 12:25:57|SUMMARY|CLI|kiranj|hpvmstatus
---------------------------------------------------------------------------
myvm:/] tail -f /var/opt/hpvm/common/hpvm_mon_log
Thanks...
Kiran Babu Jadhav
No comments:
Post a Comment