1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib
Jonathan Brassow 886656e4ac RAID: Fix problems with creating, extending and converting large RAID LVs
MD's bitmaps can handle 2^21 regions at most.  The RAID code has always
used a region_size of 1024 sectors.  That means the size of a RAID LV was
limited to 1TiB.  (The user can adjust the region_size when creating a
RAID LV, which can affect the maximum size.)  Thus, creating, extending or
converting to a RAID LV greater than 1TiB would result in a failure to
load the new device-mapper table.

Again, the size of the RAID LV is not limited by how much space is allocated
for the metadata area, but by the limitations of the MD bitmap.  Therefore,
we must adjust the 'region_size' to ensure that the number of regions does
not exceed the limit.  I've added code to do this when extending a RAID LV
(which covers 'create' and 'extend' operations) and when up-converting -
specifically from linear to RAID1.
2012-09-27 16:51:22 -05:00
..
activate cleanup: initilize percent to INVALID 2012-08-23 14:38:48 +02:00
cache libdaemon: Split daemon-shared.[hc] into daemon-io.[hc] and config-util.[hc]. 2012-09-26 17:26:23 +02:00
commands Implement devices/global_filter. 2012-09-26 14:49:15 +02:00
config libdaemon: Extend and refactor APIs. 2012-09-26 14:49:09 +02:00
datastruct Switch to return void 2012-02-08 12:52:58 +00:00
device Implement devices/global_filter. 2012-09-26 14:49:15 +02:00
display buffering: use unbuffered silent mode for liblvm 2012-08-26 00:15:45 +01:00
error cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
filters Implement devices/global_filter. 2012-09-26 14:49:15 +02:00
format1 cleanup: format1 test whether PV was found 2012-08-23 14:37:52 +02:00
format_pool cleanup: uint64_t casts 2012-08-23 14:37:21 +02:00
format_text lvmetad: Use "%" PRId64 in place of "%d" for extra clarity. 2012-09-26 17:26:16 +02:00
freeseg cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
label The lvmetad client-side integration. Only active when use_lvmetad = 1 is set in 2012-02-23 13:11:07 +00:00
locking locking: clarify read-only locking error message v2 2012-07-25 14:37:22 +02:00
log config: add silent mode 2012-08-25 20:35:48 +01:00
metadata RAID: Fix problems with creating, extending and converting large RAID LVs 2012-09-27 16:51:22 -05:00
mirror cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
misc setvbuf: reopen only valid fd 2012-08-27 13:07:07 +02:00
mm comments: misc updates 2012-08-07 18:34:30 +01:00
raid RAID: Add support for RAID10 2012-08-24 15:34:19 -05:00
replicator cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
report cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
snapshot Differentiate between snapshot status of "Invalid" and "Merge failed". 2012-01-20 22:02:04 +00:00
striped Add activation/use_linear_target enabled by default. (prajnoha) 2011-11-28 20:37:51 +00:00
thin cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
unknown cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
uuid Revert the #include changes. Need to fix this at the #include site for now, and 2011-07-18 14:34:33 +00:00
zero cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
Makefile.in cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00