diff options
author | M.H. Tsai <mingnus@gmail.com> | 2016-01-27 19:11:03 +0800 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-02-11 18:30:40 +0100 |
commit | e32e793c43280c898ff6b20d22488af568825287 (patch) | |
tree | 17d86b5a9bbd467b840dfcf0ad60a2c79890c163 | |
parent | 3b76e9fd98bcbe89e1a73c8a0f7419c21799eecb (diff) | |
download | lvm2-e32e793c43280c898ff6b20d22488af568825287.tar.gz |
lvconvert: enable spare creation during conversion
Let user control pool metadata spare creation after repair as
the VG might not have enough free space.
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | tools/lvconvert.c | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,6 @@ Version 2.02.142 - ==================================== + Support control of spare metadata creation when repairing thin-pool. Fix config type of 'log/verbose' from bool to int (2.02.99). Fix thinp watermark calc for data LV for faster dmeventd responce (2.02.133). Use use_blkid_wiping=0 if not defined in lvm.conf and support not compiled in. diff --git a/tools/lvconvert.c b/tools/lvconvert.c index fbec9b0cf..e2b91fa52 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -2481,7 +2481,8 @@ deactivate_pmslv: } /* Try to allocate new pool metadata spare LV */ - if (!handle_pool_metadata_spare(pool_lv->vg, 0, lp->pvh, 1)) + if (!handle_pool_metadata_spare(pool_lv->vg, 0, lp->pvh, + lp->poolmetadataspare)) stack; if (dm_snprintf(meta_path, sizeof(meta_path), "%s_meta%%d", pool_lv->name) < 0) { |