Alasdair G Kergon
52217f6ebd
raid: Fix partial activation logic for non-raid.
2014-07-23 16:13:12 +01:00
Alasdair G Kergon
25fa725b05
pre-release
2014-07-23 16:05:22 +01:00
Zdenek Kabelac
8d63d94d85
tests: still unusable kernel
2014-07-23 00:29:32 +02:00
Zdenek Kabelac
22be7c4417
tests: support cluster run
...
needs exclusive activation
2014-07-23 00:25:49 +02:00
Zdenek Kabelac
3a8bb8d3a4
tests: use exclusive activation
2014-07-22 23:44:06 +02:00
Petr Rockai
ab1887fe47
man: Update the lvscan manpage with a section on --cache.
2014-07-22 22:48:41 +02:00
Petr Rockai
66686a5bc5
WHATS_NEW: lvscan --cache, dmeventd RAID + lvmetad
2014-07-22 22:48:41 +02:00
Petr Rockai
5dc6671bb5
dmeventd: Call lvscan --cache in the RAID plugin.
2014-07-22 22:48:21 +02:00
Petr Rockai
a9ea014e51
lvscan: Implement a --cache mode.
2014-07-22 22:48:21 +02:00
Zdenek Kabelac
653fd7bee3
tests: new lvconvert features
2014-07-22 22:41:41 +02:00
Zdenek Kabelac
ee11bb8416
tests: use full option name
...
Don't overuse shortcut support -
since poolmetadatasize was the only allowed option
it's been equivalent to poolmetadata
2014-07-22 22:41:41 +02:00
Zdenek Kabelac
b51f1b3df6
man: lvconvert poolmetadataspare
...
Add missing description for --poolmetadataspare option.
2014-07-22 22:41:41 +02:00
Zdenek Kabelac
d7d81e1157
cleanup: show better messages
2014-07-22 22:41:40 +02:00
Zdenek Kabelac
894eda4707
thin and cache: unify pool common code
...
Fix get_pool_params to only read params.
Add poolmetadataspare option to get_pool_params.
Move all profile code into update_pool_params.
Move recalculate code into pool_manip.c
2014-07-22 22:41:38 +02:00
Zdenek Kabelac
8c56c5fbac
lvconvert: better testing order
...
Avoid duplicate tests through implicit calls - check directly
result of string assignment.
2014-07-22 22:38:59 +02:00
Zdenek Kabelac
ab7bcc26f6
tools: switch logic for new arg_ func
...
Revert logic and rename new arg_ functions to:
arg_from_list_is_set()
arg_outside_list_is_set()
When err_found is given, log_error message is automaticaly
printed.
2014-07-22 22:38:59 +02:00
David Teigland
864ff3cb18
man: rework lvmcache to match lvmthin
...
Reorganize and rewrite parts to match lvmthin(7).
2014-07-22 15:12:02 -05:00
Alasdair G Kergon
50961f43d0
report: Remove lv_target_type field.
...
This field is too complicated to be useful on its own and either needs
redefining or splitting up into multiple fields.
2014-07-22 20:57:57 +01:00
Alasdair G Kergon
99e3c13012
raid: Moved degraded activation code to raid_manip.
...
Adjust some messages & fn names.
2014-07-22 20:50:29 +01:00
David Teigland
fe5b282a4a
man: lvmcache updates
...
- use the lvconvert --cachepool syntax to match the lvmthin style
- rewrite removal information
- very minor formatting adjustments
2014-07-21 15:41:42 -05:00
David Teigland
1fe487043d
man: use macros for indenting in lvmthin
2014-07-21 10:28:20 -05:00
Alasdair G Kergon
3366baf076
metadata: Reinstate system info in metadata.
...
Revert part of cac0722cac
This was deliberate and aids the investigation of problems.
2014-07-21 15:54:20 +01:00
Alasdair G Kergon
513fd029a6
config: Adjust description of activation_mode.
2014-07-21 15:50:47 +01:00
Alasdair G Kergon
8c231a5f4d
raid: Correct degraded warning message level
2014-07-21 15:40:59 +01:00
Zdenek Kabelac
27574d0e41
tests: use bigger metadata
...
Until resolved - use bigger then 4MB cache pool metadata.
2014-07-17 16:27:39 +02:00
Zdenek Kabelac
53b787e519
cleanup: drop testing impossible path
...
We cannot get NULL in this test - since if the arg is set
it will always return non-NULL value here.
(in-release update)
2014-07-17 16:20:21 +02:00
Zdenek Kabelac
ffa1a7b046
cleanup: typo in message
...
in-release fix.
2014-07-17 16:19:57 +02:00
Zdenek Kabelac
ab72cdbf81
cleanup: check arg_count once
...
Do not check quiet_ARG more then necessary.
2014-07-17 16:18:35 +02:00
Zdenek Kabelac
321592af71
raid: support lvdisplay --maps
...
Add legs printing for --maps
Somewhat similar to mirror support - maybe there are more things to
show...
2014-07-17 16:18:34 +02:00
Zdenek Kabelac
cac0722cac
metadata: use outfc for comments
...
Few unecessary comments were written to on-disc metadata.
Use outfc() to have comments only in archived files.
(may also save couple bytes in ringbuffer).
TODO: needed validation against newline char...
2014-07-17 16:17:44 +02:00
Zdenek Kabelac
f5d6c4b0f3
cache: use get_cache_mode for validation
...
Use a single function to validate cache mode arg
and set DM_ feature flags.
2014-07-17 16:16:45 +02:00
Zdenek Kabelac
8f9f180139
lvconvert: improve merge validation
...
Easier check for conflicting options with --merge.
2014-07-17 16:16:00 +02:00
Zdenek Kabelac
7abad9ef88
lvconvert: improve splitsnapshot test
...
Easier check for conflicting options with --splitsnapshot.
2014-07-17 16:15:30 +02:00
Zdenek Kabelac
4dcacbe369
lvconvert: move to single name validation
...
Validate all LV names in _lvconvert_name_params().
2014-07-17 16:14:36 +02:00
Zdenek Kabelac
04acf7a8d0
lvconvert: add missing option for repair
...
Few more option needs to be allowed with --repair.
(in-release fix).
2014-07-17 16:14:18 +02:00
David Teigland
3e4f24115a
man: lvmthin fix line breaks
...
The html rendering inserted some unpleasant line breaks,
so insert better breaks explicitly.
2014-07-11 15:15:03 -05:00
Zdenek Kabelac
65a3f50556
lvconvert: fix missing repair option
...
Support --repair and --use-policies with mirrors.
(fixes another regression from lvconvert change for thin and cache).
TODO: the code path for mirror needs update.
2014-07-11 14:42:21 +02:00
Zdenek Kabelac
af219fbc04
cleanup: lets make it really obvious for gcc
2014-07-11 14:19:22 +02:00
Zdenek Kabelac
c0ebe78ef8
lvconvert: fix mirror path
...
lvconvert rewrite commit missed proper handling
of mirror path for --corelog and --mirrorlog options.
Document this even in man page.
2014-07-11 14:12:35 +02:00
Peter Rajnoha
17b92001ea
WHATS_NEW: recent commits
...
Commits:
d169ff1e03
bccc2bef33
f76879ba44
2014-07-11 14:09:05 +02:00
Zdenek Kabelac
7913f64a02
cleanup: drop unintend debug error line
2014-07-11 13:54:54 +02:00
Zdenek Kabelac
a62cea3371
cleanup: older gcc is not smart enough
...
Avoid gcc warning about uninitialized 'seg' variable.
It's not easy for older gcc compiler to deduce it's been set.
2014-07-11 13:52:30 +02:00
Zdenek Kabelac
d7065f154e
tests: updates for new lvconvert
2014-07-11 13:32:52 +02:00
Zdenek Kabelac
9f703d35a0
cleanup: lvconvert reoder repair check
2014-07-11 13:32:23 +02:00
Zdenek Kabelac
4bbfac359c
man: lvconvert update
...
Update lvconvert doc for conversion of pools
(thin and cache pools and volumes)
Various more cleanups.
2014-07-11 13:32:23 +02:00
Zdenek Kabelac
b2988a917a
lvconvert: update help
...
Extend help for lvconvert.
Use COMMON_OPTS for some common options.
2014-07-11 13:32:22 +02:00
Zdenek Kabelac
970989655f
lvconvert: update for thin a cache
...
Major update of lvconvert code to handle cache and thin.
related targets.
Code tries to unify handling of cache and thin pools.
Better supports lvm2 syntax:
lvconvert --type cache --cachepool vg/pool vg/cache
lvconvert --type thin --thinpool vg/pool vg/extorg
lvconvert --type cache-pool vg/pool
lvconvert --type thin-pool vg/pool
as well as:
lvconvert --cache --cachepool vg/pool vg/cache
lvconvert --thin --thinpool vg/pool vg/extorg
lvconvert --cachepool vg/pool
lvconvert --thinpool vg/pool
While catching much more command line errors.
(Yet couple paths still needs more tests)
Detects as much cmdline errors prior opening VG.
Uses single lvconvert_name_params to convert LV names.
Detects as much incompatibilies in VG prior prompting.
Uses single prompt to confirm whole conversion.
TODO: still the code needs fixes...
2014-07-11 13:32:22 +02:00
Zdenek Kabelac
fe3ea94e58
cleanup: shift detection of chunksize sign
...
Sign should be checked prior opening of VG.
Since get_pool_params() needs profiles,
we need to move check for sign earlier.
2014-07-11 13:32:22 +02:00
Zdenek Kabelac
9955204e0d
cleanup: reorder code
...
Simplify code.
2014-07-11 13:32:21 +02:00
Zdenek Kabelac
de1ee0bc52
cleanup: move merge option
...
Put long --merge option into section with long options.
2014-07-11 13:32:21 +02:00