cancel
Showing results for 
Search instead for 
Did you mean: 

Re: calculating LV SIZE

 
SOLVED
Go to solution
seenivasan
Frequent Advisor

calculating LV SIZE

Dear All,

while i am reading doc it was mentioned before creating LV we nned to know PE size.Depending upon the PE size we need to creat lV.
From following o/p can you clarify.

#vgdisplay -v /dev/vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
VGDA 2
PE Size (Mbytes) 4
Total PE 477
Alloc PE 475
Free PE 2
Total PVG 0

--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 1900
Current LE 475
Allocated PE 475
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c1t1d0
PV Status available
Total PE 477
Free PE 2
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: calculating LV SIZE

Maybe I don't understand your question, but the size is written there:

LV Size (Mbytes) 1900

Its the Current LE (475) * PE size (4MB)

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!   
rariasn
Honored Contributor

Re: calculating LV SIZE

Hi:

You can create lvol in 2 different ways:

# lvcreate -n lvol1 -l 475 ...
# lvcreate -n lvol1 -L 1900 ...

man lvcreate

rgs,
seenivasan
Frequent Advisor

Re: calculating LV SIZE

Dear the question is how to calculate and create a LV?
Pete Randall
Outstanding Contributor

Re: calculating LV SIZE

How much data do you want to put in this LV? If you want it to contain 1900 MB, then you're perfect. If you want it to contain more, then you're going to need to make it bigger (hint, see lvextend).


Pete

Pete
seenivasan
Frequent Advisor

Re: calculating LV SIZE

Dear ,

My question is If i need to create new LV then how to calcuate LV size?Don't consider the above o/p.
Torsten.
Acclaimed Contributor

Re: calculating LV SIZE

It depends on your requirements.

With lvcreate you can specify the number of PE or the size in MB.

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!   
Bijeesh
Respected Contributor
Solution

Re: calculating LV SIZE

Hi,

From vgdiaplsy o/p,
free PE = 2
Size of one PE = 4 mb

So the size of the LV that can be created, is 2*4 = 8 mb.

You have already an LV which have 475 PEs .

>>Depending upon the PE size we need to creat LV<<
Either you can mention the LV size in mb using -L option or with the number of PEs with -l option with lvcreate command.

Eg.
If you have free PE= 25
and PE size = 4 mb ,
then your total free size is 25*4 = 100 mb
So with -l option, mention 25
and with -L option, mention 100





seenivasan
Frequent Advisor

Re: calculating LV SIZE

Dear Thanks a lot.Now i am very clear.