]> sourceware.org Git - lvm2.git/commitdiff
lvmdbusd: Add '-y' to lvconvert for lv cache create
authorTony Asleson <tasleson@redhat.com>
Wed, 27 Jul 2016 23:43:27 +0000 (18:43 -0500)
committerTony Asleson <tasleson@redhat.com>
Thu, 28 Jul 2016 16:13:29 +0000 (11:13 -0500)
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

index 391757d6d89c817a975ee53ca486239ded41fe51..fac582cc5b067b2ac68837588ea033addd57dc38 100644 (file)
@@ -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)
 
This page took 0.036302 seconds and 5 git commands to generate.