From 4bc351d65879f319cf94cc59ff781ca3d649060f Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Wed, 27 Jul 2016 18:43:27 -0500 Subject: [PATCH] lvmdbusd: Add '-y' to lvconvert for lv cache create When converting to a cache lv, tests were hanging with a prompt for "Do you want wipe existing metadata of cache pool volume To preserve cache metadata add option "--zero n". WARNING: Reusing mismatched cache pool metadata MAY DESTROY YOUR DATA!" This is new. --- daemons/lvmdbusd/cmdhandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/lvmdbusd/cmdhandler.py b/daemons/lvmdbusd/cmdhandler.py index 391757d6d..fac582cc5 100644 --- a/daemons/lvmdbusd/cmdhandler.py +++ b/daemons/lvmdbusd/cmdhandler.py @@ -411,7 +411,7 @@ def lv_cache_lv(cache_pool_full_name, lv_full_name, cache_options): # lvconvert --type cache --cachepool VG/CachePoolLV VG/OriginLV cmd = ['lvconvert'] cmd.extend(options_to_cli_args(cache_options)) - cmd.extend(['--type', 'cache', '--cachepool', + cmd.extend(['-y', '--type', 'cache', '--cachepool', cache_pool_full_name, lv_full_name]) return call(cmd) -- 2.43.5