Operating System - HP-UX
1833051 Members
2387 Online
110049 Solutions
New Discussion

Extending a LUN used by an iVM whilst online

 
huntingtower
New Member

Extending a LUN used by an iVM whilst online

I am increasing capacity on an existing disk that is presented to a parent host and subsequently given as a raw disk to an iVM.

I am using a San and I can increase the size of the disk and the new capacity shows correctly on the parent host.

However after running ioscan -fNC disk and insf -e on the iVM I am still not able to see the new size.

My ultimate aim is to be able to extend the volume group and logical volume on the iVM using the extended lun. I am interested to discover if I can do this without an outage for an iVM using HPUX 11.31.

Any assistance in this matter would be appreciated.
5 REPLIES 5
Wim Rombauts
Honored Contributor

Re: Extending a LUN used by an iVM whilst online

You don't specify if you have use this disk for LVM, or that you directly access the LUN without LVM. If you use LVM, have you tried 'vgmodify -a -E ' for the volume where the LUN is in ?
huntingtower
New Member

Re: Extending a LUN used by an iVM whilst online

Thanks for the response.

I am using the disk in LVM, the disk is already assigned to a volume group.

When I use vgmodify I am given the following output.

[test01:/] vgmodify -a -E vg04
The physical volume "/dev/disk/disk7" does not need to be reconfigured
for expansion since the available disk space is less than the size
of one extent.
Physical volume "/dev/disk/disk7" was not changed.

Any further assistance is appreciated.
vishnu.khandare
Respected Contributor

Re: Extending a LUN used by an iVM whilst online

Hi,
As per ur problem desciption, you want to extend the mountpoint/Logical Volume in the Guest IVM.

U have the storage LUN at host IVM,
u need to added the LUN/Disk to required guest, by hpvmmodify, then check in Guest IVM.
After getting the disk/LUN extend the required logical volume or mount point.

Hope this help to resolve ur problem


Regards
Vishnu Khandare
You should deserve before U desire!!!!
huntingtower
New Member

Re: Extending a LUN used by an iVM whilst online

Thanks for the response Vishnu.

The disk in question has previously been added to the guest iVM using hpvmmodify. Since then the disk size has been increased (and run ioscan and insf). However when I run vgmodify on the parent host after the lun increase I recieve the following message:

[hostname01:/] hpvmmodify -P test01 -a disk:scsi::disk:/dev/rdisk/disk239
hpvmmodify: ERROR (dpttest01): Duplicate backing device '/dev/rdisk/disk39'.
hpvmmodify: ERROR (dpttest01): Unable to add device '/dev/rdisk/disk39'.
hpvmmodify: Unable to create device disk:scsi::disk:/dev/rdisk/disk39.
hpvmmodify: Unable to modify the guest.

This message appears because the disk is already added, however can I make the guest iVM regonise the new size without removing the disk from the guest iVM or restarting.

Any further assistance is greatly appreciated
vishnu.khandare
Respected Contributor

Re: Extending a LUN used by an iVM whilst online

Hi,

Make sure you have to add san disk/LUN to host and run hpvmmodify from host only.
check with hpvmdevmgmt -l all | grep -i diskXX
perticular disk which ur going to add in that IVM,which VM is holding tht disk.

If the IVM version is lower then 4 then it will not add the disk online it requiers reboot of guest IVM to reflect the disk.
Second thing is once u get the disk in guest IVM do pvcreate and vgextend.
If possible reboot the guest and check disk status.

Hope this resolves.

Regards
Vishnu Khandare
You should deserve before U desire!!!!