Operating System - HP-UX
1748035 Members
4697 Online
108757 Solutions
New Discussion

Re: Why do I need to restart a Virtual Machine after adding disks

 
madhuca-
Occasional Advisor

Why do I need to restart a Virtual Machine after adding disks

Hi ,

 

 

I read the forum to understand the need to restart a Virtual Machine after adding disks.

 

"http://h30499.www3.hp.com/t5/Virtualization/Why-do-I-need-to-restart-a-guest-when-adding-disks/td-p/5097157#.VPAzn-YcSmQ"

"http://h30499.www3.hp.com/t5/Virtualization/Rebbot-of-hpvm-after-adding-disk/td-p/6706912#.VPBg6OYcSmQ"

-----> This posted was created by me,Since there is a some problem in my personal id ,I was  Not able to reset the password,so I duplicated the thread.

 

but I have some few question to clear my doubt.

 

I have two Virtual controller [0 1] and [ 0 2] and 15 disks can be added dynamically to a virtual controller.

 

Virtual Machine Version :B.04.10.00

 

After Storage team added  disk to VSP server ,I executed below command

 

opt/hpvm/bin/hpvmmodify -P hpivm182 -a disk:scsi::disk:/dev/rdisk/disk2612
hpvmmodify: Unable to dynamically create device disk:scsi:0,4,2:disk:/dev/rdisk/disk2612 - Protocol error.
hpvmmodify: Guest needs to be restarted (using hpvmstop followed by hpvmstart) for all changes to take effect.

 

As per the below hpvmstatus output,why hpvmmodify automatically selected 0,4,2 when it should select 0,2,10.

 

If not, can I execute hpvmmodify -P hpivm182 -a disk:scsi:0,2,10:disk:/dev/rdisk/disk2612 to make dynamnic changes.

 

0,4,2  - [0,4] Controller is automatically selected and any other ways to bypass it and make it to 0,2,10

 

[Storage Interface Details]
Guest                                 Physical
Device  Adaptor    Bus Dev Ftn Tgt Lun Storage   Device
======= ========== === === === === === ========= =========================
disk    scsi         0   1   0   0   0 lv        /dev/vg_hpivm182_00/rlv_os_00
disk    scsi         0   1   0   1   0 lv        /dev/vg_hpivm182_05/rlv_app_00
disk    scsi         0   1   0   2   0 lv        /dev/vg_hpivm182_01/rlv_app_00
disk    scsi         0   1   0   3   0 lv        /dev/vg_hpivm182_02/rlv_app_00
disk    scsi         0   1   0   4   0 lv        /dev/vg_hpivm182_06/rlv_app_01
disk    scsi         0   1   0   5   0 lv        /dev/vg_hpivm182_06/rlv_app_02
disk    scsi         0   1   0   6   0 lv        /dev/vg_hpivm182_07/rlv_app_07_01
disk    scsi         0   1   0   7   0 lv        /dev/vg_hpivm182_07/rlv_app_07_02
disk    scsi         0   1   0   8   0 lv        /dev/vg_hpivm182_08/rlv_app_08_01
disk    scsi         0   1   0   9   0 lv        /dev/vg_hpivm182_08/rlv_app_08_02
disk    scsi         0   1   0  10   0 lv        /dev/vg_hpivm182_09/rlv_app_08_01
disk    scsi         0   1   0  11   0 lv        /dev/vg_hpivm182_10/rlv_app_10
disk    scsi         0   2   0   0   0 lv        /dev/vg_hpivm182_11/rlv_app_11
disk    scsi         0   2   0   1   0 lv        /dev/vg_hpivm182_12/rora11g
disk    scsi         0   2   0   2   0 lv        /dev/vg_hpivm182_13/rlv_app_00
disk    scsi         0   2   0   3   0 lv        /dev/vg_hpivm182_13/rlv_app_01
disk    scsi         0   2   0   4   0 lv        /dev/vg_hpivm182_14/rlv_app_14
disk    scsi         0   2   0   5   0 lv        /dev/vg_hpivm182_15/rlv_app_15
disk    scsi         0   2   0   6   0 lv        /dev/vg_hpivm182_16/roracle_home
disk    scsi         0   2   0   7   0 lv        /dev/vg_hpivm182_17/rlv_app_17
disk    scsi         0   2   0   8   0 lv        /dev/vg_hpivm182_17/roracle_home_11_2_0_4
disk    scsi         0   2   0   9   0 lv        /dev/vg_hpivm182_18/rlv_app_18

 

Regards

 

Madhu

 

 

1 REPLY 1
Stan_M
HPE Pro

Re: Why do I need to restart a Virtual Machine after adding disks

First of all, the version that you speak about is obsolete for quite a long time.

 

The reason for the error is that the older versions could not create virtual HBA online (this is possible now).

And because of that the commands were trying to save some space in the target range so that LUNs could be added

online later (if you do not give bus,dev,tgt). For the version you have it seem you have to explicitly specify

the bus,dev,tgt on some existing bus,dev to get the disk added online.

 

You can explicitly give the location to the hpvmmodify command: disk:scsi:0,2,10:...  should work.

 

 

I work for HPE