LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

Update volume group after extending LUN

 
Pietro84
Advisor

Update volume group after extending LUN

Hi,
I have extendet a LUN on a Clariion storage, now I need to apply these changes on the VG.
How can I proceed?

Previous LUN was 18GB, now is 100GB on the storage.

By LVM I have no FREE PE. Why? Ho can "refresh" the vg?

bash-4.1# vgdisplay emc02
--- Volume groups ---
VG Name /dev/emc02
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 1
Open LV 1
Max PV 511
Cur PV 1
Act PV 1
Max PE per PV 831
VGDA 2
PE Size (Mbytes) 64
Total PE 831
Alloc PE 831
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0
VG Max Size 53184m
VG Max Extents 831

bash-4.1#

Thanks
8 REPLIES 8
Viktor Balogh
Honored Contributor

Re: Update volume group after extending LUN

you should use the vgmodify command, see this:

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02273773/c02273773.pdf
****
Unix operates with beer.
Pietro84
Advisor

Re: Update volume group after extending LUN

I have done this but no change appear:

bash-4.1# vgmodify -E -a emc02
Reconfiguration to expand physical volume "/dev/dsk/c2t0d2" succeeded.
Previous number of extents: 287
Number of extents after reconfiguration: 287
Physical volume "/dev/dsk/c2t0d2" was changed.


I have 0 Free PE
worm
Occasional Visitor

Re: Update volume group after extending LUN

Max PE per PV 831
PE Size (Mbytes) 64

831*64=53184Mbytes
Viktor Balogh
Honored Contributor

Re: Update volume group after extending LUN

Hi Pietro,

>bash-4.1# vgmodify -E -a emc02
>Reconfiguration to expand physical volume >"/dev/dsk/c2t0d2" succeeded.
>Previous number of extents: 287
>Number of extents after reconfiguration: 287
>Physical volume "/dev/dsk/c2t0d2" was changed.


>I have 0 Free PE

that's not a surprise to me. If you read the above output carefully, you can see that the "before" and "after" values are the same, 287. Now you need to find what's wrong here, maybe it lies on the storage side?
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: Update volume group after extending LUN

> Physical volume "/dev/dsk/c2t0d2" was changed.

what is the output of

# pvdisplay /dev/dsk/c2t0d2

?

****
Unix operates with beer.
Pietro84
Advisor

Re: Update volume group after extending LUN

Hi,
I have removed vg and created again.

Now size is changed.

Fortunately I made a backup. But how can upgrade a vg if I will extend a LUN on a Clariion?

Viktor Balogh
Honored Contributor

Re: Update volume group after extending LUN

> Fortunately I made a backup. But how can upgrade a vg if I will extend a LUN on a Clariion?

the procedure is called Dynamic LUN Expansion (DLE), here is a whitepaper how to do it:

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

see p.12 --> prerequisites
see p.13 --> online vgmodify procedures
****
Unix operates with beer.
Highlighted
Pietro84
Advisor

Re: Update volume group after extending LUN

Hi,

I have done this:

bash-4.1# vgmodify -E -a emc02
Reconfiguration to expand physical volume "/dev/dsk/c2t0d2" succeeded.
Previous number of extents: 287
Number of extents after reconfiguration: 287
Physical volume "/dev/dsk/c2t0d2" was changed.

But size was not changed.