Operating System - HP-UX
1833194 Members
3155 Online
110051 Solutions
New Discussion

Extending Physical Volume on a SAN and extending Volume Group

 
Francisco Díaz
Occasional Advisor

Extending Physical Volume on a SAN and extending Volume Group

I have a LUN within a EVA. The size of this LUN is 5 GByte. I need extend this LUN (PV) to 20 GByte and extend an existing VG in my HPUX System. I Try to export and import the mapfile of VG over the extended LUN, but I haven't sucessfully.

Can you help me in the step by step??

Thanks.

Regards.
6 REPLIES 6
RAC_1
Honored Contributor

Re: Extending Physical Volume on a SAN and extending Volume Group

Why you are exporting the volume?? The procedure would be as follows.

get a PV
pvcreate /dev/rdsk/cxtxdx
vgextend /dev/vgxx /dev/dsk/cxtxdx
Extend the lvol

Anil
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: Extending Physical Volume on a SAN and extending Volume Group

You may run into a problem with your volume group not having enough allowable physical extents to extend this far.

In that case you must back up , remove the volume group and vgcreate it with a larger PE size.

Steps:

Expand the LUN

insf -C

This will probably get the space recognized.

lvextend -L /dev/vg01/lvolname /dev/dsk/c8t1d0

I made up the lvol name and disk, you'll need to use real ones.

If you are getting an error posting the error can get you better assistance from itrc membership.

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
Geoff Wild
Honored Contributor

Re: Extending Physical Volume on a SAN and extending Volume Group

Are you extending the LUN? or just adding more disk to the existing VG?

If you modify the LUN - I'm pretty sure you will lose all data...

Just create a new LUN and as Anil says, add to the existing VG.

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ranjith_5
Honored Contributor

Re: Extending Physical Volume on a SAN and extending Volume Group

Hi,

If u need only more space do the following.

1.Create a new lun for required capacity.
2.Present it to the appropriate host
3.ioscan -fn
4.Do an #insf -e
5.umount /
6.pvcreate /dev/dsk/
7.vgextend vgname new_lun
8.extendfs
9.Mount the extended volume

if u have an online jfs installed u can use fsadm also.

If u r not bothered about data go for deleting and recreating LUN of a higher capacity.

regards,
Syam
Francisco Díaz
Occasional Advisor

Re: Extending Physical Volume on a SAN and extending Volume Group

I'm a extending a LUN whithin a EVA. This LUN is a PV of vg. This VG is activated and exist data inside.

Alzhy
Honored Contributor

Re: Extending Physical Volume on a SAN and extending Volume Group

Francisco,

HP-UX does not (at present) have support for EVA LUN/PV size expansion. You can only do this with OpenVMS and Tru64 Unix.

It was planned at HP-uX 11i v 3.0 but with HP's official announcement that Tru64 features will not be blended into HP-UX - your ability to do this in the feature will hinge with Veritas Volume Manager 4.0 which hopefully will be integrated into HP-UX 11i at some point in thenear future. Online disk/LUN expansion I believe is now supported at VxVM 4.0. Current Hp_UX11i releases are still at VxVM 3.5. VxVM 4.0 which is part of Veritas Storage Foundation 4.0 is already available for all other OS'es but not HP-UX11i where the relationship with Veritas was suspect until yesterday's announcement.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=754760
Hakuna Matata.