Skip to contentSkip to conversation

How big are PEs by default?

linux-lvm Paul Furness 5 participants 6 messages Mar 11, 2003 – Mar 13, 2003

lore
Share & tools
lore
#0 lore raw

Hi.

I'm trying to get LVM 1.0.7 going on our new production server. I've never used LVM before, but based on reccommendations and looking at what it can do, it looks like exactly what I need.

For the reccord, it's a SMP Xeon system, running RedHat 7.3 plus current RH patches.

I am confused about the defualt setting for Physical Extents when you run vgcreate on a new PV.

Looking through the man page for vgcreate is says this:

-s, --physicalextentsize PhysicalExtentSize[kKmMgGtT]
Sets the physical extent size on physical volumes of this volume group. ................. The default of 32 MB allows LV sizes of ~2TB because as many as ~64k extents are supported per LV.

A bit later, under "Examples." it says this:

To create a volume group named test_vg using physical vol- umes /dev/hdk1, /dev/hdl1, and /dev/hdm1 with default physical extent size of 4MB:

vgcreate test_vg /dev/sd[k-m]1

So what is the default? 4M or 32M? Or something else? Or should I simply forget about the default and pick a number?

Finally, is there any documentation that's more detailed than the HOWTO, and explains a bit more about the theory of LVM - what happens when you change the size of existing file systems, and so on? The HowTo is ok (although not all that great if you've never patched a kernel before), but necessarily brief. :)

Thanks.

Paul.

Signature · 8 lines
Paul Furness

Systems Manager
Visual Information Lab
Mitsubsihi Electric ITE BV
Guildford, UK

Steepness is an illusion caused by flat things leaning over.
#1 lore raw
Quoted 26 lines · Paul Furness

Hi.

I'm trying to get LVM 1.0.7 going on our new production server. I've never used LVM before, but based on reccommendations and looking at what it can do, it looks like exactly what I need.

For the reccord, it's a SMP Xeon system, running RedHat 7.3 plus current RH patches.

I am confused about the defualt setting for Physical Extents when you run vgcreate on a new PV.

Looking through the man page for vgcreate is says this:

-s, --physicalextentsize PhysicalExtentSize[kKmMgGtT]
Sets the physical extent size on physical volumes of this volume group. ................. The default of 32 MB allows LV sizes of ~2TB because as many as ~64k extents are supported per LV.

A bit later, under "Examples." it says this:

To create a volume group named test_vg using physical vol- umes /dev/hdk1, /dev/hdl1, and /dev/hdm1 with default physical extent size of 4MB:

Quoted 5 lines

vgcreate test_vg /dev/sd[k-m]1

So what is the default? 4M or 32M? Or something else? Or should I simply forget about the default and pick a number?

The default is 32MB, the example has not been updated. It used to be 4MB but limiting LVs to 256MB by default soon became a problem for people.

Quoted 5 lines

Finally, is there any documentation that's more detailed than the HOWTO, and explains a bit more about the theory of LVM - what happens when you change the size of existing file systems, and so on? The HowTo is ok (although not all that great if you've never patched a kernel before), but necessarily brief. :)

Not that I know of. But if you want to know what a filesystem does when it's extended then you need filesystem documentation, not LVM documentation.

Signature · 1 line
patrick
#2 lore raw
Quoted 27 lines · Patrick Caulfield
Quoted 26 lines · Paul Furness

Hi.

I'm trying to get LVM 1.0.7 going on our new production server. I've never used LVM before, but based on reccommendations and looking at what it can do, it looks like exactly what I need.

For the reccord, it's a SMP Xeon system, running RedHat 7.3 plus current RH patches.

I am confused about the defualt setting for Physical Extents when you run vgcreate on a new PV.

Looking through the man page for vgcreate is says this:

-s, --physicalextentsize PhysicalExtentSize[kKmMgGtT]
Sets the physical extent size on physical volumes of this volume group. ................. The default of 32 MB allows LV sizes of ~2TB because as many as ~64k extents are supported per LV.

A bit later, under "Examples." it says this:

To create a volume group named test_vg using physical vol- umes /dev/hdk1, /dev/hdl1, and /dev/hdm1 with default physical extent size of 4MB:

Quoted 16 lines
Quoted 5 lines

vgcreate test_vg /dev/sd[k-m]1

So what is the default? 4M or 32M? Or something else? Or should I simply forget about the default and pick a number?

The default is 32MB, the example has not been updated. It used to be 4MB but limiting LVs to 256MB by default soon became a problem for people.

Quoted 5 lines

Finally, is there any documentation that's more detailed than the HOWTO, and explains a bit more about the theory of LVM - what happens when you change the size of existing file systems, and so on? The HowTo is ok (although not all that great if you've never patched a kernel before), but necessarily brief. :)

You could try to read the documentation of HP LVM, wich is a little more detailed, but be carefull, there are some commands that are diferent. I dont have the link here with me now but I can search later on.

Regards

rech
--
Joao Rechena
mailto:[email protected]
http://www.rechena.com
================================
"Bow before me for I am root"

#5 lore raw
In reply to Paul Furness
Quoted 6 lines

Finally, is there any documentation that's more detailed than the HOWTO, and explains a bit more about the theory of LVM - what happens when you change the size of existing file systems, and so on? The HowTo is ok (although not all that great if you've never patched a kernel before), but necessarily brief. :)

Suse put out a white paper that may offer a little more detailed explanation of LVM. It's available at:
http://www.suse.com/en/business/certifications/certified_software/oracle/doc
s/lvm_whitepaper.pdf

Aaron M. Brock

#3 lore raw
In reply to Patrick Caulfield
Quoted 2 lines · Patrick Caulfield

The default is 32MB, the example has not been updated. It used to be 4MB but limiting LVs to 256MB by default soon became a problem for people.

Just a typo, but with a PE size of 4MB the limit is 256GB, not 256MB.

urs

#4 lore raw
Quoted 6 lines · Urs Thuermann
Quoted 2 lines · Patrick Caulfield

The default is 32MB, the example has not been updated. It used to be 4MB but limiting LVs to 256MB by default soon became a problem for people.

Just a typo, but with a PE size of 4MB the limit is 256GB, not 256MB.

Arg!. Just showing my age again :(

Thanks

patrick