Operating System - HP-UX
1825691 Members
3464 Online
109686 Solutions
New Discussion

Re: increase size LVDISK (VM Guest)

 
SOLVED
Go to solution
Eli Daniel
Super Advisor

increase size LVDISK (VM Guest)

Hi,
i have increase size in the virtual machine for vgecc.
these disk asigned in the vgecc were assigned lvdisk in the VM host.
to change the size of vg in the guest VM guest I have the server down?

15 REPLIES 15
Suraj K Sankari
Honored Contributor

Re: increase size LVDISK (VM Guest)

Hi,
>>to change the size of vg in the guest VM guest I have the server down?

If you have online JFS then reboot is not required

Suraj
Eli Daniel
Super Advisor

Re: increase size LVDISK (VM Guest)

how cant know?
Eli Daniel
Super Advisor

Re: increase size LVDISK (VM Guest)

Operation System 11.23 Itanium 64 bits
Torsten.
Acclaimed Contributor

Re: increase size LVDISK (VM Guest)

I have never done this before, but I assume if your guests are using 11.23 or an early 11.31 you need to do an vgmodify (on guest) to make LVM aware of the new size.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: increase size LVDISK (VM Guest)

Shalom,

hpvm version decides the outcome of this question.

Clearly life will be easier for you if you can boot the guests.

vgmodify functionality is added to 11.23 as a patch. It is built into 11.31

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Eli Daniel
Super Advisor

Re: increase size LVDISK (VM Guest)

the system operation support JFS

In the case modify lvdisk:

VMhost
lvextend -L 400 /dev/vg01/lvol4

VMguest
lvextend 400 /dev/vg01/lvol4
fsadm -F -vxfs -b 400M /usr/app1/data1

the run command wiht vgmguest up.

these is true?
TwoProc
Honored Contributor

Re: increase size LVDISK (VM Guest)

Re: your last question:

It's great that you've got Online JFS, therefore:

1) If you're on HPUX 11.3, then yes, that looks right.
2) If you're on HPUX 11.2, then you'll need to vgmodify first, then your commands.
3) If you're on HPUX 11.1, then no, you can't do this. You need to add new LUNS, not make existing LUNS larger.

Lastly, test this all out on a test server first, before changing production vm hosts and machines.
We are the people our parents warned us about --Jimmy Buffett
Eli Daniel
Super Advisor

Re: increase size LVDISK (VM Guest)

Hi John,
2) If you're on HPUX 11.2, then you'll need to vgmodify first, then your commands.

vgmodify in the Host or Vm Guest?
Torsten.
Acclaimed Contributor

Re: increase size LVDISK (VM Guest)

If you increase an LVOL on the host provided to the guest, you need to run vgmodify on the guest.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Eli Daniel
Super Advisor

Re: increase size LVDISK (VM Guest)

argument which I use for the VM Guest vgmodify?
Eli Daniel
Super Advisor

Re: increase size LVDISK (VM Guest)

Hi Torsten
I dont understand vgmodify in the VM host and VM guest?

I need to know how to increase or add a new disk to VM guest?
example:
Vm host
vgapp1 assigned LV disk to Vm Guest.

Vm host:
i need add 1 disk to vgapp1 and expand LV disk Vm guest.

Vm hosts:
vgextend /dev/vgapp1 /dev/dsk/c1t4d0
lvextend -L xxx /dev/vgapp1/lvapp1

Vm Guest:
lvextend -L xxx /dev/vg1/lv1

This is correct??
Torsten.
Acclaimed Contributor
Solution

Re: increase size LVDISK (VM Guest)

If you extend the lvol on the host, you need to use vgmodify on the guest to make it aware of the increased virtual disk. Then you can use lvextend there.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Eli Daniel
Super Advisor

Re: increase size LVDISK (VM Guest)

torsten, sorry again, but as vgmodify use on the guest? syntax or option to use?
Eli Daniel
Super Advisor

Re: increase size LVDISK (VM Guest)

Thanks Torsten
Torsten.
Acclaimed Contributor

Re: increase size LVDISK (VM Guest)

For those who need a manual, search for the PDF titled:

"Using the vgmodify command to perform LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC)"

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!