Dynamic Lun Expansion on HP-UX 11.31 (2682 Views)
Reply
Advisor
Doug Wilburn
Posts: 31
Registered: ‎10-01-2004
Message 1 of 7 (2,682 Views)

Dynamic Lun Expansion on HP-UX 11.31

I have an rx2660 running HP-UX11.31 connected to EVA6400. On the EVA, I increased one of my luns (presented to the HP-UX host) from 20GB to 30GB. Then, on the HP-UX host, I ran the command: "ioscan -fnNC disk" but viewing the out put from diskinfo, the OS still sees the disk as a 20GB disk. Is there something else I need to do? 

Acclaimed Contributor
Torsten.
Posts: 23,392
Registered: ‎10-02-2001
Message 2 of 7 (2,680 Views)

Re: Dynamic Lun Expansion on HP-UX 11.31

You need to use "vgmodify" - see man page.

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!   
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 7 (2,678 Views)

Re: Dynamic Lun Expansion on HP-UX 11.31

Shalom,

 

I'm glad you at least can use vgmodify now. I'm going to suggest an pain free alternative to expanding LUN sizes.

 

Expanding LUN sizes has never been easy with HP-UX and often leads to down time to get the size recognition to work.

 

Alternate suggestion: When adding disk, build a new LUN on storage, present the LUN to the system.

 

Detection:

insf -e -C disk

ioscan -fnCdisk or

ioscan -fnNCdisk

 

pvcreate the newly discovered disk

 

vgextend the volume group you want to include the new disk

 

lvextend to extend the logical volume.

 

extendfs or fsadm to expand the file system. extendfs requires the file system be umounted. fsadm requires a paid license for Online JFS to work properly.

 

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
Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 4 of 7 (2,659 Views)

Re: Dynamic Lun Expansion on HP-UX 11.31

Please have a look of the whitepaper that describes how to do it.

 

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01920387/c01920387.pdf

Occasional Visitor
madhuca_chennai
Posts: 2
Registered: ‎07-12-2011
Message 5 of 7 (2,646 Views)

Re: Dynamic Lun Expansion on HP-UX 11.31

hi

 

only ioscan will not add the disk to the existing vg,

 

below steps

 

download evainfo tool.

 

1.identify the wwwn no from eva gui.

2../evainfo -w wwwnno

3.run iosacn -m dsf (cxtydz)   ----  u can find the other path for the links

4.pvcreate persistent device file ( use raw disk ) 

5.vgextend /dev/vgname persistent device file

6.lvextend -L10*1024(as per ur requirement) /dev/vgname/lvname

7.fsadm -F vxfs -b sizeM [mountpoint]    ---  if u have online jfs installed,if not do extendfs but need to unmount the filesystem)

8.check with bdf.

 

if it is in cluster

 

Do vgexport -p -s -v -m /tmp/vgname.map /dev/vgname

 

transfer the map file to failover server via ftp,rlogin

in failover

 

Do vgimport -s -v -N -m /tmp/vgname.map /dev/vgname

 

 

regards

 

Madhuchakkaravarthy.A

Valued Contributor
Arunabha Banerjee
Posts: 88
Registered: ‎04-22-2009
Message 6 of 7 (2,630 Views)

Re: Dynamic Lun Expansion on HP-UX 11.31

Hi Madhuchakkaravarthy.A

 

Your steps are for just adding a new LUN. So it is not the procedure for Dynamic Lun Expansion. Dynamic Lun Expansion is totally a different thing.

 

When a LUN is dynamically grown, use vgmodify to enable LVM to access this new space. After the
volume group has been adjusted by vgmodify, you can allocate the new space using the normal
LVM method by lvextend or lvcreate.

 

Please check page no 14 of the Doc which i already provided in my previous post.

 

In futere please understand the question/query before posting. :smileyhappy:

Valued Contributor
feeble
Posts: 34
Registered: ‎06-30-2011
Message 7 of 7 (2,619 Views)

Re: Dynamic Lun Expansion on HP-UX 11.31

[ Edited ]

1. run ioscan -C disk

2. run vgmodify -t -v on the volume group that has the lun you expanded on the EVA.

3. look at the vgmodify table and choose the mav_pv and max_pe options that will get you to 30GB.

4. run vgmodify -a -p <max_pv> -e <max_pe> -E /dev/vgXX

5. expand the lvol (lvextend).

6. expand the filesystem (fsadm).

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.