Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)
Showing posts with label hpvm. Show all posts
Showing posts with label hpvm. Show all posts

Thursday, October 16, 2014

vmmodify ERROR (myvm) Incorrect backing device type - hpux

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
---------------------------------------------------------------------------

myvm:/] tail -f /var/opt/hpvm/common/hpvm_mon_log


Thanks...
Kiran Babu Jadhav








Thursday, September 25, 2014

New disk addition on HPVM - hpux

New disk addition on HPVM - hpux

The storage team will allocate a new lun to the VM HOST (Physical server).

We will be using that disk on VM guest. We can do this by two methods 
i.e either using that entire disk on HPVM guest.
or by creating a LV on HPVM host and using that LV as a disk on HPVM guest.


1. On HPVM Host ( Where the VM machine is running )


#ioscan -fnC disk

#insf -eCdisk

After identifying the disk:

{ For LV --

#pvcreate /dev/disk/rdisk??

#vgcreate /dev/vg_name?? /dev/disk/disk??

#lvcreate -L "disk size in MB" -n /dev/vg_name??/lv_?? /dev/vg_name??

(Create a RAW Lvol only , no need to create a FS, since we are going to allocate this RAW lvol as disk to HPVM) }




2. # /opt/hpvm/bin/hpvmstatus -P {VMguest} = To check existing disk details for the VM machine


For LV :

#hpvmmodify -P {VMguest} -a disk:scsi::lv:/dev//rdisk/diskxx


For Disk : 

#hpvmmodify –P {VMguest}  -a disk:avio_stor::disk:/dev/rdisk/diskxx


3. Once disk is added on HPVM guest; check and confirm: 

#/opt/hpvm/bin/hpvmstatus -P {VMguest} = to check the new added disk details in o/p



Thanks...
Kalyanjit