1752761 Members
5200 Online
108789 Solutions
New Discussion юеВ

Lvcreate

 
SOLVED
Go to solution
Ashwin_4
Frequent Advisor

Lvcreate

hi masters,
VG Name /dev/vgfa
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 7
Open LV 7
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 5624
VGDA 4
PE Size (Mbytes) 4
Total PE 11248
Alloc PE 9000
Free PE 2248

Above details of vg00 shows Free PE is 2248, With this maximum how big lv I can create.

Whatis the relation between PE And MB.

Thanks.

6 REPLIES 6
Hoefnix
Honored Contributor
Solution

Re: Lvcreate

It depends if you want the volume to be mirrored:
The maxsize should be:
Free PE* 4 MB
2248*4MB=8992

If its mirrored: 4496

Regards,

Peter
Hoefnix
Honored Contributor

Re: Lvcreate

Just more explns:

The PE are the Physical extends on the disk. (some way to devide your disk in pieces)

The PE size in your case is 4MB.
In this volumegroup the MAX PE per PhysicalVolume is 5624 so you can use disks of 5624*4MB=22.4GB in this volumegroup.


Regards,

Peter
KapilRaj
Honored Contributor

Re: Lvcreate

Do not go just by PE 's free ; If you have mirroring you will require 2 PE's to make one LE.

PE :- Physical Extend
LE :- Logical EXtend

Mirroring means , you have allocated 2 PE's for one LE So if you have 200 PE's free you can create an LV of 200/2 * PE Size.

man lvm

Regds,

Kaps
Nothing is impossible
Hoefnix
Honored Contributor

Re: Lvcreate

Kaps,
see my first post:
If its mirrored: 4496

regards,

Peter
KapilRaj
Honored Contributor

Re: Lvcreate

sorry pete,

I missed it

Where is the requester ?

Kaps
Nothing is impossible
Marton Ferenc
Advisor

Re: Lvcreate

In this vg you have 2 disks, both of them have 5624 PE, 5624x4MB. So vg has 11248 Total PE (2x5624) and diskspace 11248*4MB.

Real space of the filesystem depends on lv usage (mirror etc...)
J5000