Sponsored Content
Full Discussion: LVM extent size
Operating Systems Linux LVM extent size Post 302477942 by HansHenderson on Tuesday 7th of December 2010 04:31:06 AM
Old 12-07-2010
The information both of you are probably referring to is also no longer relevant for LVM2, lots of misinformation out there.

Again, sorry I can't enter URLs, but this is from IBM in 2007. Google on the literal phrase in quotes to confirm.

>With LVM2, there's no limit on the maximum numbers of extents per PV/LV.

<snip>

> there is no I/O performance penalty for smaller/bigger extent size. LVM tools usage, however, can suffer from high extent count, so using bigger extents can keep the extent count low.

---------

Note this source also gives the default as 4MB, which I believe is no longer true, as per my previous quote.

In some cases, I've seen people talk about multiple-GB-sized extents.

Personally I plan to use 1GB: 4096*256=1048576

This makes it easy to use extents directly as units in allocating space. Even 10 GB would only be 2% of the smallest drive I'm using, so wouldn't hamper flexibility, but IMO this seems a bit "out there".

==================

My main point in all this is that an "rtfm" response is inappropriate for this topic area; I have been unable to find canonical docs that directly address these issues, and there is a lot of conflicting information from what appears to be authoritative sources, even relatively recent ones.

It would be great if someone with access to some big drives would do some hands-on testing to check and post back here. Next time I have the chance I'll try to remember to do so. . .

---------- Post updated at 04:31 PM ---------- Previous update was at 07:36 AM ----------

I've posted to the linux-LVM mailing list, frequented by Neil Brown and the other LVM maintainers, in order to get more "canonical" information on these issues

Here's my attempt to bypass the URL blocking feature of this board:

http - fossplanet.com

f13/%5Blinux-lvm%5D-configuring-extent-size-83253/

If that doesn't work for you, google on

"apparently authoritative but conflicting information"

If given multiple list archive servers, I recommend fossplanet.com

The subject header is: [linux-lvm] Configuring extent size
 

10 More Discussions You Might Find Interesting

1. HP-UX

Size of LVM header in non bootable disk

hi, i have a query regarding the size of the LVM header. Since the LVM header of a bootable disk is always 2912KB. The header size of a non bootable disk is not fixed. In Bootable disk after the LVM header (2912 KB=5824 sectors)the user data starts or we can say LV extents starts. If i extend any... (0 Replies)
Discussion started by: gorayen
0 Replies

2. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

3. HP-UX

file system full (1 block extent)

When i run dmesg, I get the following message which clearly indicates that the file system is full. Please let me know what does (1 block extent) means in the following error message? msgcnt 1 vxfs : mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent) Thanks (6 Replies)
Discussion started by: Adams Nave
6 Replies

4. HP-UX

How to reduce LVM to create another LVM

Hi, I'm new to HP-UX. I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3 Thanks (4 Replies)
Discussion started by: lamoul
4 Replies

5. Shell Programming and Scripting

The scripts not able to make the file to size 0, every times it go back to its original size

#!/bin/sh ########################################################################################################## #This script is being used for AOK application for cleaning up the .out files and zip it under logs directory. # IBM # Created #For pdocap201/pdoca202 .out files for AOK #1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies

6. Shell Programming and Scripting

Script to read file size and send email only if size > 0.

Hi Experts, I have a script like $ORACLE_HOME/bin/sqlplus username/password # << ENDSQL set pagesize 0 trim on feedback off verify off echo off newp none timing off set serveroutput on set heading off spool Schemaerrtmp.txt select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
Discussion started by: welldone
5 Replies

7. Solaris

Block-based allocation and Extent-based allocation in Solaris

Hi guys! Could you tell me what's this figure about? (See the attached figure below.) This is a representation of block allocation filesystem and extent allocation filesystem in Solaris. Does this mean that in a block-based allocation, data are placed in individual blocks while in... (0 Replies)
Discussion started by: arah
0 Replies

8. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

9. UNIX for Advanced & Expert Users

Physical disk IO size smaller than fragment block filesystem size ?

Hello, in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)
Discussion started by: rarino2
4 Replies

10. Red Hat

How to reduce the LVM Size in RHEL/Centos 7 ?

Hi All, I have one logical volume with size as 900G and it is mounted as xfs file system. Now I want to reduce this partition to 500G. So I followed the below steps. unmount the mount point /home Reduced the volume using the command Now I remounted the partition. But the problem... (3 Replies)
Discussion started by: kalpeer
3 Replies
PVDISPLAY(8)						      System Manager's Manual						      PVDISPLAY(8)

NAME
pvdisplay - display attributes of a physical volume SYNOPSIS
pvdisplay [-c|--colon] [-d|--debug] [-h|-?|--help] [-s|--short] [-v[v]|--verbose [--verbose]] PhysicalVolumePath [PhysicalVolumePath...] DESCRIPTION
pvdisplay allows you to see the attributes of one or more physical volumes like size, physical extent size, space used for the volume group descriptor area and so on. pvs (8) is an alternative that provides the same information in the style of ps (1). OPTIONS
See lvm for common options. -c, --colon Generate colon separated output for easier parsing in scripts or programs. N.B. pvs (8) provides considerably more control over the output. The values are: * physical volume device name * volume group name * physical volume size in kilobytes * internal physical volume number (obsolete) * physical volume status * physical volume (not) allocatable * current number of logical volumes on this physical volume * physical extent size in kilobytes * total number of physical extents * free number of physical extents * allocated number of physical extents -s, --short Only display the size of the given physical volumes. -m, --maps Display the mapping of physical extents to logical volumes and logical extents. SEE ALSO
lvm(8), pvcreate(8), lvcreate(8), vgcreate(8) Sistina Software UK LVM TOOLS 2.02.44-cvs (02-17-09) PVDISPLAY(8)
All times are GMT -4. The time now is 10:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy