Disk adding issue on HPVM : How to solve?

How to add new disk to HPVM ? if Already 9 disks already added ??

I faced this issue while am trying to add 10 th disk to VM guest node. Already we had 9 disk added to VM machine and i got a request to add one more new disk to HPVM

I got error message like VM Machine required a reboot to make this changes done. Then i found that we need to use controller path for adding more than 9 disk ,while use the command to add disk. 

O/p from our server 

#hpvmstatus -P vmmachineA

-----
------
Storage controller details

Device  Adaptor    Bus Dev Ftn Tgt Lun Storage   Device
======= ========== === === === === === ========= =========================
disk    scsi         0   1   0   0   0 lv        /dev/vg_name_00/rlv_os_00
disk    scsi         0   1   0   1   0 lv        /dev/vg_name_01/rlv_app_01
disk    scsi         0   1   0   2   0 lv        /dev/vg_name_02/rlv_app_01
disk    scsi         0   1   0   3   0 lv        /dev/vg_name_03/rlv_app_03
disk    scsi         0   1   0   4   0 lv        /dev/vg_name_04/rlv_app_05
disk    scsi         0   1   0   5   0 lv        /dev/vg_name_05/rlv_app_06
disk    scsi         0   1   0   6   0 lv        /dev/vg_name_06/rlv_app_00
disk    scsi         0   1   0   7   0 lv        /dev/vg_name_07/rlv_app_01
disk    scsi         0   1   0   8   0 lv        /dev/vg_name_08/rlv_app_02
disk    scsi         0   1   0   9   0 lv        /dev/vg_name_09/rlv_app_03 -----This is 10th disk which i added newly using the below method.


Steps to add 10th disk in HPVM Guest:
 
On HOSt node

#ioscan -eC disk

#inq -sym_wwn |grep -i "lun no"

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


#hpvmmodify -P ngmhv456 -a disk:scsi:lv:/dev/vg_ngme??/rlv_name??


( we can use this command upto 9 disks)


or


hpvmmodify -P ngmhv456 -a disk:scsi:0,1,9:lv:/dev/vg_name??/rlv_name??


( this command we need to use for adding 10 th disk)

Problem :

If you try to add 10th disk to your vm guest node on HPVM using below command u will get error message  like "you need to Reboot ur vm machine to make this changes"
 
# hpvmmodify -P ngmhv456 -a disk:scsi:lv:/dev/vg_ngme??/rlv_name??


Reason : 
In a controller we can add maximum 15 disks only. And we can add upto 9 disks without mention the controller path. For 10th disk we need to mention the controller path.


solution 1:

We have to mention the controller path while add the disk. Using the below command maximum we can add upto 15 disks to one controller.

# hpvmmodify -P ngmhv456 -a disk:scsi:lv:/dev/vg_ngme??/rlv_name??


 ( we can use this command upto 9 disks)


For 10th disk use the below command



# hpvmmodify -P ngmhv456 -a disk:scsi:0,1,9:lv:/dev/vg_name??/rlv_name?? 


solution 2: ( At the Time of VM Guest creation)

If you want to add more than 15 disk to VM guest without reboot , then we need to follow below steps.

At the time of VM Guest creation we need to give the 3 controllers paths. Instead of default path.


# hpvmmodify -P ngmhv456 -a disk:scsi:0,1,0:lv:/dev/vg_name??/rlv_name??

# hpvmmodify -P ngmhv456 -a disk:scsi:0,2,0:lv:/dev/vg_name??/rlv_name??

# hpvmmodify -P ngmhv456 -a disk:scsi:0,3,0:lv:/dev/vg_name??/rlv_name??


The 3 controllers are 0/1/0 & 0/2/0 & 0/3/0.


Since in one controller we can have maximum of 15 disks. Once we haved 15 disks to one controller and if you want to add one more controller to VM guest then we need
to reboot the VM guest node. To Avoid this reboot we can give 3 different controller at the time of VM guest node creation.



Post a Comment

0 Comments