Operating System - HP-UX
1825667 Members
4167 Online
109686 Solutions
New Discussion

Re: Extending a physical volume?

 
mehmet ozdemir
Occasional Contributor

Extending a physical volume?

Hi,

I have a question about LVM on HP-UX.

For example, assume we have a VG with 1 PV which comes from a SAN
storage. What happens if we extend the size of that PV (LUN) from SAN disk
subsystem side? Can HP-UX handle this? I mean, is it possible to extend the
size of PV being used in a VG without data loss? If so, what should the
procedure be?

Thanks and regards


Thanks and regards
8 REPLIES 8
Sanjay_6
Honored Contributor

Re: Extending a physical volume?

Hi,

HP-UX Cannot handle a dynamic resize of the lun / PV for a Volume Group.

Hope this helps.

Regds
HGN
Honored Contributor

Re: Extending a physical volume?

Hi

If there is only 1 PV then this cannot be done and it would result in data loss.

Rgds

HGN
mehmet ozdemir
Occasional Contributor

Re: Extending a physical volume?

Hi Sanjay,

Thanks for your time.

Is it possible to do that offline?

Regards
mehmet ozdemir
Occasional Contributor

Re: Extending a physical volume?

and what about 2+ PVs and doing that offline? I will be glad if you explain the procedure with commands.

Regards
Sanjay_6
Honored Contributor

Re: Extending a physical volume?

Hi,

Offline or Online, HP-UX Cannot handle that.

To do this, you need to backup all the data on that VG / PV. Drop the VG (since there is only one PV), Resize the lun and reinitialize it by creating a new VG / LV's and then doing the restore.

Dynamic resizing of a Lun is not supported on HP-UX / Offline or online.

Hope this helps.

regds


Jeff Schussele
Honored Contributor

Re: Extending a physical volume?

Sure - you'd need to backup the data. Destroy the FS/LV/VG & THEN resize the LUN. You can then rebuild the VG/LV/FS & restore the data.
In other words - you still need to tear it down to rebuild it larger.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Pradeep_29
Frequent Advisor

Re: Extending a physical volume?

When you create a VG, it does set the max number of PEs possible with the size of PE you have mentioned while creating. Increasing size of Physical disk doesn't help. I don't believe that you would be losing any data unless you shrink it.

Also if you add any disk of size which exceeds the max number of PEs possible in it, the rest of the space would be useless.

I would suggest as others did to backup the data, recreate and restore back.

Thanx.
Shameer.V.A
Respected Contributor

Re: Extending a physical volume?

Hi Mehmet,
Happy New Year..

I follow with everybody... But Why you want to extend the LUN size??, Have you crossed the maximum LUN no. in your storage box?.
If not you can create one more LUN & do a vgextend & lvextend .

shameer
.... See invisible, feel intangible and achieve impossible as everything is possible ....