1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib/metadata
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
..
lv_alloc.h discards: don't discard reconfigured extents 2012-06-27 22:12:01 +01:00
lv_manip.c RAID: Fix problems with creating, extending and converting large RAID LVs 2012-09-27 16:51:22 -05:00
lv.c lvs: add partial attribute 2012-09-19 12:49:40 +01:00
lv.h Thin add new display field for lvs 2012-01-19 15:34:32 +00:00
merge.c cleanup: Use segtype->ops->name() instead of segtype->name where applicable 2012-09-05 11:35:54 -05:00
metadata-exported.h cleanup: use proper activation_change_t 2012-08-23 14:37:38 +02:00
metadata.c config: add silent mode 2012-08-25 20:35:48 +01:00
metadata.h lib/cache/lvmetad: Refactor to use dm_config_tree in requests. 2012-09-26 14:49:15 +02:00
mirror.c config: add silent mode 2012-08-25 20:35:48 +01:00
pv_alloc.h discards: split discard from release_pv_segment 2012-06-27 22:11:54 +01:00
pv_manip.c discards: skip when removing LVs on missing PVs 2012-09-19 12:48:56 +01:00
pv_map.c cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
pv_map.h Track unreserved space for all alloc policies and then permit NORMAL to place 2012-02-01 02:10:45 +00:00
pv.c Move lvmcache data structures behind an API (making the structures private to 2012-02-10 01:28:27 +00:00
pv.h Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
raid_manip.c RAID: Fix problems with creating, extending and converting large RAID LVs 2012-09-27 16:51:22 -05:00
replicator_manip.c add thin_manip.c like the other manip files 2011-09-06 19:25:42 +00:00
segtype.c Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00
segtype.h Use a more correct macro for 'seg_is_linear' 2011-10-14 14:21:32 +00:00
snapshot_manip.c Reinstate support for format1 snapshots, but issue deprecated warning. 2011-12-20 00:02:18 +00:00
thin_manip.c thin: use discards as plural rather than singular 2012-08-07 21:24:41 +01:00
vg.c Disallow changing cluster attribute of VG while RAID LVs are active. 2012-04-25 13:38:41 +00:00
vg.h Add free_orphan_vg 2012-02-13 11:03:59 +00:00