Operating System - HP-UX
1834798 Members
2483 Online
110070 Solutions
New Discussion

how to extend the VG when the Sandisk is increased

 
Heiko_7
Advisor

how to extend the VG when the Sandisk is increased

goodday,

i'm have a vg with 1 disk of 500G, on the san we extended the disk to 600G.

How can i use the extra 100G in the volumegroup

hpux 11.31 , lvm 2.1

hope someone can help me out here,

kind regards,

Heiko
10 REPLIES 10
Pete Randall
Outstanding Contributor

Re: how to extend the VG when the Sandisk is increased

You would be better served to present the 100GB as a separate LUN and use vgextend to incorporate that new LUN into your existing VG.


Pete

Pete
Johnson Punniyalingam
Honored Contributor

Re: how to extend the VG when the Sandisk is increased

As mentioned by >>Pete<< you can use 100G to extend " the volume group"

pvcreate /dev/rdsk/cxtxdx -> from newly extend 100G Lun from you sotrage

vgextend /dev/vgname /dev/dsk/cxtxdx
Problems are common to all, but attitude makes the difference
smatador
Honored Contributor

Re: how to extend the VG when the Sandisk is increased

Hi,
If I were you, I would search threads about lun dynamic expansion
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1140868
HTH
Steven E. Protter
Exalted Contributor

Re: how to extend the VG when the Sandisk is increased

Shalom Heiko,

SAN disk expansion is a very difficult thing.

With HP branded storage, increases are usually but not always recognized after a system reboot.

Best practice is to present a new disk to the system, which will be recognized without a reboot and then migrate the data.

Or.
Use LVM. Build a volume group from a series of smaller LUNS. I have an Ignite storage file system that is its own volume group. When I need to increase its capacity, I have storage present a new LUN.

Then: pvcreate the new disk. vgextend the volume group to include the new disk. lvextend the logical volume, followed by faadm (which requires Online JFS) or umount/extendfs

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
Torsten.
Acclaimed Contributor

Re: how to extend the VG when the Sandisk is increased

I never did this with LVM version 2.x (vgmodify is for LVM 1.0 only), but what does the vgdisplay command show now?

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!   
Torsten.
Acclaimed Contributor

Re: how to extend the VG when the Sandisk is increased

From the LVM admin guide:

HP-UX System Administrator's Guide:
Logical Volume Management
HP-UX 11i Version 3 - Sept. 2009



"Beginning with the September 2009 Update, the vgmodify also supports
Version 2.x volume groups, but the volume groups must be in active mode to run
vgmodify. For more information, see vgmodify(1M).

If the LUN for a physical volume was dynamically expanded using an array utility,
the vgmodify -E option can be used to make available the new space for user data.

..."

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!   
Basheer_2
Trusted Contributor

Re: how to extend the VG when the Sandisk is increased

Heiko,

Click here for the detail steps.

http://www.hpuxtips.es/?q=node/179

or google for vgmodify and select the 3rd entry

Resizing a SAN disk using vgmodify only 11.23/11.31 | HP-UX Tips ...
13 Jan 2009 ... vgmodify -v /dev/vgtest + vgmodify -v /dev/vgtest ... vgmodify -tv /dev/vgtest. Volume Group configuration for /dev/vgtest has been saved in ...
www.hpuxtips.es/?q=node/179 - Cached - Similar


Heiko_7
Advisor

Re: how to extend the VG when the Sandisk is increased

Torsten,

that was the information i needed, we never upgraded this system to sep 2009, that;s why we got in trouble with then vgmodify command.

after upgrading the system,

vgmodify -a -E

did the trick

thanks all for your input

with kind regard

Heiko
Heiko_7
Advisor

Re: how to extend the VG when the Sandisk is increased

vgmodify on 11.31/lvm2.x only works with lvm from sep 2009


Torsten.
Acclaimed Contributor

Re: how to extend the VG when the Sandisk is increased

Do you know this already?

http://forums.itrc.hp.com/service/forums/helptips.do?#33

Have fun!

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!