1753823 Members
8655 Online
108805 Solutions
New Discussion юеВ

Extend luns

 
Cecile Rosset
New Member

Extend luns

I'm new to HPUX. I have a VxFS file system created on a lun as follows:
/env VxFS /dev/dsk/c8t1d0

The above lun is currently 25GB but needs to be extended to 75GB.

# bdf
/dev/dsk/c8t1d0 26214400 1058528 24793468 4% /env

How do I extend the above lun/file system without damaging the data?

Thank you.
Cecile
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Extend luns

Shalom,

It depends on a few factors.

To be safe, you MUST back up the data before proceeding.

After extension reboot the system.

See if at that point its possible to lvextend the logical volume to a larger size.

More often than not, you can't and you must destroy the data and rebuild from scratch.

At this size it often also happens that the volume group does not have enough extents to handle the increased size and it must be rebuilt with larger extent size -s or less physical volumes -p (in vgccreate).

Sometimes its eaiser to have the LUN admin copy the lun to a new lun an present that to the system. The filesystem or data should not be mounted or active during the copy.

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: Extend luns

Where is the LUN located? An EVA?

Extending the filesystem is not a problem, but it could be a problem to extend the physical volume from the volume manager point of view.

AFAIK the VxVM can do this, but the LVM up to HP-UX 11.23 cannot.

LVM in 11.31 can.

Workarounds:
delete the VG configuration on the LUN and re-create
or
don't expand the LUN but create a new LUN and extend the VG. Doing this you can grow the LVOL without problems.

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!   
Armin Kunaschik
Esteemed Contributor

Re: Extend luns

To clarify Torstens statement:

VxVM 4.1 supports LUN resizing with "vxdisk resize cXtYdz".
LVM on 11.11/11.23 does not support LUN resizing.

I have not heard about that feature in 11.31... how is it done?

Armin
And now for something completely different...
Torsten.
Acclaimed Contributor

Re: Extend luns

Regarding 11.31:

"The detection of physical volume size changes (LUN size expansion or contraction) is automatic"

see man vgmodify

http://docs.hp.com/en/B2355-60130/vgmodify.1M.html




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!