1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
Commit Graph

11103 Commits

Author SHA1 Message Date
Heinz Mauelshagen
271561fea8 Merge branch 'dev-lvmguy-raid-takeover-reshape-resize_work' into dev-lvmguy-raid-takeover-reshape-resize 2016-02-04 14:31:07 +01:00
Heinz Mauelshagen
6a182bf338 raid_manip: fix data copies on mirror <-> raid1 conversions 2016-02-04 14:28:58 +01:00
Heinz Mauelshagen
10f5c83851 raid_manip: report index of tracking LV back; activate added striped image pairs 2016-02-04 13:31:37 +01:00
Heinz Mauelshagen
ebda5f8a65 raid_manip: allow mirror <-> raid1 to take regionsize 2016-01-30 01:17:29 +01:00
Heinz Mauelshagen
91f5c8edf0 raid_manip: introduce _init_tripe_size(), factor out _striped_raid0, more possible types 2016-01-29 14:58:56 +01:00
Heinz Mauelshagen
c2b07aa3b3 raid_manip: introduce new_region_size argument to takeover(helper) functions to allow for changing it during conversion 2016-01-29 12:59:23 +01:00
Heinz Mauelshagen
8977fd7835 raid_manip: fix coallocation of raid images on same PV 2016-01-29 01:00:20 +01:00
Heinz Mauelshagen
fcf1eb7140 raid_manip:
adjust conversion messages
	fix displaying all possible takeover/duplicating conversion types
raid:
	adjust segment type descriptions listing possible conversions
report:
	handle displayint data_offset and new_data_offset properly
	on duplicating sub LVs
2016-01-28 00:18:16 +01:00
Heinz Mauelshagen
a02028ee6b raid_manip: enhance lv_raidconvert error message
segtype.h: fix segtype_is_reshapable_raid()
2016-01-25 21:41:15 +01:00
Heinz Mauelshagen
2188d7f038 raid_manip: unify 'sub LV' naming; fix data copies and region size check 2016-01-25 15:34:56 +01:00
Heinz Mauelshagen
0acbc56854 raid_manip: fix extents/size 2016-01-23 01:59:49 +01:00
Heinz Mauelshagen
186ed06062 raid_manip:
rework freeing of reshape space
lvconvert:
	pass in 0 for region_size into lv_raid_convert unless -R
	avoid region_size_arg
2016-01-21 16:19:02 +01:00
Heinz Mauelshagen
cbe6dd7836 raid_manip:
more header comments
	add lv_raid_in_sync() API to use from lv_extend/lv_reduce
	to prevent reshaping LVs from being resized
	more argument checks
	less messages on device change reshaping
lv_manip:
	use lv_raid_ins_sync in lv_extend/lv_reduce
2016-01-20 22:38:19 +01:00
Heinz Mauelshagen
d748d1d9f4 raid_manip: walk through argument check and enhance 2016-01-20 14:32:18 +01:00
Heinz Mauelshagen
f9611765d9 RAID: support duplication/unduplication of thin volumes 2016-01-19 22:21:15 +01:00
Heinz Mauelshagen
43dff38daa raid_manip: unsafe table load + raid01 fixes; cleanup 2016-01-16 00:37:22 +01:00
Heinz Mauelshagen
3d818e6f0d raid_manip: rename callback funtions 2016-01-14 13:17:08 +01:00
Heinz Mauelshagen
82fde92c1e raid_manip:
activate duplication tree to avod unsafe table loads on merge
	cleanup
lv_manip:
	fix raid specific stripe rounding
{columns,report}.c:
	introduce new_data_offset field
2016-01-13 21:34:19 +01:00
Heinz Mauelshagen
9467971cde raid_manip: cleanup, comments... 2016-01-12 14:48:09 +01:00
Heinz Mauelshagen
b5350b481a raid_manip:
duplication namespace adjustments; step 3
	cleanup
2015-12-19 03:06:22 +01:00
Heinz Mauelshagen
a725f29290 raid_manip: avoid another metadata update on duplicated LV splitting; cleanup 2015-12-17 14:10:00 +01:00
Heinz Mauelshagen
5d2728f24b raid_manip:
duplication namespace adjustments; step 2
	introduce struct lv_raid_convert_params to pass on arguments to lv_raid_convert()
	cleanup
2015-12-16 23:09:30 +01:00
Heinz Mauelshagen
be0251c498 raid_manip:
duplication namespace adjustments; step 1
2015-12-16 10:48:18 +01:00
Heinz Mauelshagen
13e3f2b467 raid_manip: remove sime compile time conditional code 2015-12-15 17:31:20 +01:00
Heinz Mauelshagen
f880546044 raid_manip:
support callback function with _lv_update_and_realod_eliminate_lvs() to
	allow for changes to an LV between the 2 metadata updates and reloads therein
	use ^ in _raid_split_duplicate()
	streamlined
2015-12-15 15:42:15 +01:00
Heinz Mauelshagen
891c49ce90 raid_manip:
factored out functions
	fixed messages
	fixed duplicate/unduplicate/split
2015-12-14 19:12:15 +01:00
Heinz Mauelshagen
dde282a1ef raid_manip:
rework duplicate/unduplicate and split helpers
	rename lv to LV in messages and comments
	factor out _remove_layer()
	redo _rename_sub_lvs()
2015-12-10 23:36:16 +01:00
Heinz Mauelshagen
a0a91860b7 raid_manip: fator out duplicating sub-lv creation 2015-12-10 14:08:13 +01:00
Heinz Mauelshagen
34df1ec014 raid_manip:
check degradation on splitting off raid1 legs
	allow splitting off a leg og a 2-way duplicating LV, presumably the remaining single leg is resilient
2015-12-10 13:51:25 +01:00
Heinz Mauelshagen
74ef709fde raid_manip: introduce and make use of internal LV_DUPLICATED flag on duplicating sub lvs 2015-12-09 15:57:57 +01:00
Heinz Mauelshagen
ffeb4edfea raid_manip:
support region size change with check of metadata device limit
	add duplicate argument to _yes_no_conversion() to adjust prompts
	use RETURN_* in more places
	add to possible_types
{lv,raid}_manip,lvconvert:
	support --name option to select sub lv with --unduplicate
2015-12-08 01:41:20 +01:00
Heinz Mauelshagen
313310335d raid_manip: support change of data copies in raiud10_far 2015-12-01 23:06:27 +01:00
Heinz Mauelshagen
aecd3499b2 raid_manip,lv_manip:
lv_manip/raid_manip: optimize uspace metadata device wiping
report: display RAID data_offset per image LV with -a output rather than with the top-level lv

comments
2015-11-30 22:19:38 +01:00
Heinz Mauelshagen
f83062d27d lv_manip/raid_manip: reshape_len/rimage extents review 2015-11-20 17:04:49 +01:00
Heinz Mauelshagen
2aedfa29bf lv_manip: raid01 leg change support (-mN)
lvconvert: manual enhanced wrt --duplicate/--unduplicate/--splitmirrors
2015-11-13 20:26:35 +01:00
Heinz Mauelshagen
1465614448 raid_manip: unify _dup_ infix / fix raid01 creation 2015-11-13 02:39:09 +01:00
Heinz Mauelshagen
ae18fe2d55 more area_multiple avoidance 2015-11-11 22:56:32 +01:00
Heinz Mauelshagen
e173e85bbc raid_manip: start to better conversion messages 2015-11-06 21:08:40 +01:00
Heinz Mauelshagen
9399e2b75a raid_manip:
fix data_copies on TAKEOVER_FN calls
	fix _lv_free_reshape_space() reshape_len
	add more possible_types conversion
raid:
	add descriptor field to segment types to display on failing conversion
merge:
	remove now superfluous _data_rimages_count()
all:
	comments
2015-11-06 14:19:47 +01:00
Heinz Mauelshagen
1dd4629cac raid_manip:
more RETURN_IF_*() added
	introduce LV_RESHAPE_REMOVE flag
lv_manip:
	reshape_len corrections
report.c:
	enhanced stripes and data stripes to pay attention to LV_RESHAPE_REMOVE flag
2015-11-05 17:01:52 +01:00
Heinz Mauelshagen
7907c3ff6e raid_manip: cast void functions with new argument checks to int and adjust callers 2015-11-03 20:58:11 +01:00
Heinz Mauelshagen
7863aba993 raid_manip: rename lv_raid_rimage_extents
introduce function argument check macrors
introduce raid_total_extents()
introduce _lv_reshape_get_new_len()
rename _reshape_change_size()
added a few missing state transition definitions to possible types
2015-11-03 20:43:00 +01:00
Heinz Mauelshagen
42d8c2519e {lv,raid}_manip: proceed with area_multiple avoidance 2015-11-02 11:45:31 +01:00
Heinz Mauelshagen
c4314a0ff2 raid_manip: fix false _raid_conv_unduplicate arguments
cleanup
lv_manip: cleanup
2015-10-28 18:40:48 +01:00
Heinz Mauelshagen
965a163140 raid_manip: make lv_raid_rimage_extents() raid1 aware
split possible_type processing into takeover+reshape and duplicate
2015-10-28 18:05:50 +01:00
Heinz Mauelshagen
8b5e80c5fb raid_manip:
enhance possible conversion type processing
	enhance disk(s) add/remove reshape size processing
	enhance lv_raid_rimage_extents
	allow for direct raid4 <-> raid6 takeover
	more area_multiple work
2015-10-28 14:35:52 +01:00
Heinz Mauelshagen
aaf3425738 raid_manip: more raid split support for duplicating LVs 2015-10-23 18:26:51 +02:00
Heinz Mauelshagen
c787ae54a5 raid_manip: enhance replacement/repair with duplicated LVs
lv_manip: enhance check for duplicating LV
2015-10-22 17:39:51 +02:00
Heinz Mauelshagen
729088c96e raid_manip: start enhancing lv_raid_replace() to cope with duplicating LVs 2015-10-20 17:02:32 +02:00
Heinz Mauelshagen
1f7ea2a3c0 raid_manip: support --unduplicate w/o --type 2015-10-17 02:01:03 +02:00