1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Mike Snitzer b123a82d73 Change default alignment of pe_start to 1MB.
The new standard in the storage industry is to default alignment of data
areas to 1MB.  fdisk, parted, and mdadm have all been updated to this
default.

Update LVM to align the PV's data area start (pe_start) to 1MB.  This
provides a more useful default than the previous default of 64K (which
generally ended up being a 192K pe_start once the first metadata area
was created).

Before this patch:
# pvs -o name,vg_mda_size,pe_start
  PV         VMdaSize  1st PE
  /dev/sdd     188.00k 192.00k

After this patch:
# pvs -o name,vg_mda_size,pe_start
  PV         VMdaSize  1st PE
  /dev/sdd    1020.00k   1.00m

The heuristic for setting the default alignment for LVM data areas is:
- If the default value (1MB) is a multiple of the detected alignment
  then just use the default.
- Otherwise, use the detected value.

In practice this means we'll almost always use 1MB -- that is unless:
- the alignment was explicitly specified with --dataalignment
- or MD's full stripe width, or the {minimum,optimal}_io_size exceeds
  1MB
- or the specified/detected value is not a power-of-2
2010-08-12 04:11:48 +00:00
..
activate Never scan internal LVM devices. 2010-08-09 14:05:16 +00:00
cache Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
commands Recognise and give preference to md device partitions (blkext major). 2010-08-11 12:14:23 +00:00
config Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00
datastruct Remove unnecessary / duplicate dm_list macros and functions. 2009-11-25 20:44:07 +00:00
device Recognise and give preference to md device partitions (blkext major). 2010-08-11 12:14:23 +00:00
display Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
error Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
filters Recognise and give preference to md device partitions (blkext major). 2010-08-11 12:14:23 +00:00
format1 Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
format_pool Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
format_text Avoid changing aligned pe_start as a side-effect of very verbose logging. 2010-08-03 18:19:42 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
locking Use void parameter for function definition. 2010-08-03 13:06:35 +00:00
log Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
metadata Change default alignment of pe_start to 1MB. 2010-08-12 04:11:48 +00:00
mirror Reduce severity of the "mirror transient status" log message (this was never 2010-08-04 15:55:03 +00:00
misc Recognise and give preference to md device partitions (blkext major). 2010-08-11 12:14:23 +00:00
mm Fix format string from patch apply mistake 2010-07-08 14:47:46 +00:00
replicator Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
report Clarify help text for vg_mda_count. 2010-07-21 19:44:25 +00:00
snapshot Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
striped Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
unknown Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
uuid Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
zero Use __attribute__ consistently throughout. 2010-07-09 15:34:40 +00:00
Makefile.in Replicator: base lvm2 support 2010-05-21 12:36:30 +00:00