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

Extend PV On Single VDISK From EVA

 
SOLVED
Go to solution
Highlighted
AZayed
Super Advisor

Extend PV On Single VDISK From EVA

Dears,
Good day,

I have the following scenario: VDISK on EVA with 900 GB, I want to move it from FC to FATA and increase the size to 2TP. I created a mirror on EVA with 900 GB the I break the relation and present this new VDISK copy to HP-UX 11.23 and use vgchgid to import the mirror.

Now, I will increase the VDISK on EVA to 2TB, how can I make HP-UX VG detect the new size.

On the old VG the PE Size is 32 MB.

Thanks a lot.
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
12 REPLIES 12
Torsten.
Acclaimed Contributor

Re: Extend PV On Single VDISK From EVA

You need to use "vgmodify" to adjust LVM.

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!   
AZayed
Super Advisor

Re: Extend PV On Single VDISK From EVA

Hi Toresten,

Yes, using vgmodify I was able to extend the LV to 1TB. Can you guide me throw it?

Thanks
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
P Arumugavel
Respected Contributor

Re: Extend PV On Single VDISK From EVA

AZayed
Super Advisor

Re: Extend PV On Single VDISK From EVA

Hi Folks,

This is what I have now, is it possible to change the PE Size or to Extend the LV up to 2TB.

Thanks a lot.

# vgdisplay /dev/vgDONE
--- Volume groups ---
VG Name /dev/vgDONE
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 28
Cur PV 1
Act PV 1
Max PE per PV 65535
VGDA 2
PE Size (Mbytes) 32
Total PE 65502
Alloc PE 32767
Free PE 32735
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


# lvdisplay /dev/vgDONE/DONE
--- Logical volumes ---
LV Name /dev/vgDONE/DONE
VG Name /dev/vgDONE
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1048544
Current LE 32767
Allocated PE 32767
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default


# lvextend -L 2097088 /dev/vgDONE/DONE
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgDONE/DONE" could not be extended.
Failure possibly caused by strict allocation policy
#
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
Ismail Azad
Esteemed Contributor
Solution

Re: Extend PV On Single VDISK From EVA

Hi,

It's been a while since I did some math....

Total P.E * Extent size = Capacity

In your case...
65502*32=2096064

> # lvextend -L 2097088 /dev/vgDONE/DONE

2097088> 2096094.

:). I sincerly hope my math is not wrong. Don't forget to assign points....

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
AZayed
Super Advisor

Re: Extend PV On Single VDISK From EVA

Hi,

It give me the same error.

# lvextend -L 2096094 /dev/vgDONE/DONE
Warning: rounding up logical volume size to extent boundary at size "2096096" MB.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgDONE/DONE" could not be extended.
Failure possibly caused by strict allocation policy
#
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
Ismail Azad
Esteemed Contributor

Re: Extend PV On Single VDISK From EVA

Hi,

How about you try a size like 2090000. Perhaps your playing somewhere close to the boundary... As the size it was rounding upto was greater than capacity.. 2096096> 2096094....

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
AZayed
Super Advisor

Re: Extend PV On Single VDISK From EVA

Thanks Ismail, I was able to extend the LV successfully.

Thanks
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
AZayed
Super Advisor

Re: Extend PV On Single VDISK From EVA

lvextend + fsadm
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.