1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

thin: lvconvert use passed PVs for _pmspare

When PVs are given on 'lvconvert' respect them when converting
volume to thin-pool and allocating i.e. _pmspare.
This commit is contained in:
Zdenek Kabelac 2015-09-11 20:56:02 +02:00
parent 95b5d24f43
commit 280a6275ce
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
Version 2.02.131 - Version 2.02.131 -
===================================== =====================================
Disallow usage of --stripe and --stripsize when creating cache pool. Use passed list of PVS when allocating space in lvconvert --thinpool.
Disallow usage of --stripe and --stripesize when creating cache pool.
Warn user when caching raid or thin pool data LV. Warn user when caching raid or thin pool data LV.
When layering LV, move LV flags with segments. When layering LV, move LV flags with segments.
Ignore persistent cache if configuration changed. (2.02.127) Ignore persistent cache if configuration changed. (2.02.127)

View File

@ -2348,7 +2348,7 @@ static int _lvconvert_pool_repair(struct cmd_context *cmd,
pmslv = pool_lv->vg->pool_metadata_spare_lv; pmslv = pool_lv->vg->pool_metadata_spare_lv;
/* Check we have pool metadata spare LV */ /* Check we have pool metadata spare LV */
if (!handle_pool_metadata_spare(pool_lv->vg, 0, NULL, 1)) if (!handle_pool_metadata_spare(pool_lv->vg, 0, lp->pvh, 1))
return_0; return_0;
if (pmslv != pool_lv->vg->pool_metadata_spare_lv) { if (pmslv != pool_lv->vg->pool_metadata_spare_lv) {
@ -2473,7 +2473,7 @@ deactivate_pmslv:
} }
/* Try to allocate new pool metadata spare LV */ /* Try to allocate new pool metadata spare LV */
if (!handle_pool_metadata_spare(pool_lv->vg, 0, NULL, 1)) if (!handle_pool_metadata_spare(pool_lv->vg, 0, lp->pvh, 1))
stack; stack;
if (dm_snprintf(meta_path, sizeof(meta_path), "%s_meta%%d", pool_lv->name) < 0) { if (dm_snprintf(meta_path, sizeof(meta_path), "%s_meta%%d", pool_lv->name) < 0) {