]> sourceware.org Git - lvm2.git/commit
lvconvert: reusing old cache pool metadata needs -Zn
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 22 Jul 2016 12:16:55 +0000 (14:16 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 22 Jul 2016 12:40:26 +0000 (14:40 +0200)
commit27a767d5e8cedf9cac31eb3562cf8fdd4aa88b7c
treed48ccfe24b83b5fa253208f8074d0cf5df400f86
parent259f9dd71817ad33195384dbeca14b39dfb77ae1
lvconvert: reusing old cache pool metadata needs -Zn

When cache pool is reused for a new cached volume, there is
normally no need to 'keep' old cache-pool metadata as this
could cause major data lose.

Unlike with 'lvcreate -H -LX --cachepool' conversion, this lvconvert
path left the metadata unzeroed - partly for making easier some
debugging, but this was rather a bug.

So to keep possible reattach of 'unzeroed' metadata, user
now has to use 'lvconvert -Zn' for such conversion. In this case
the prompt will appear about possibe data loss and to proceed,
user has to confirm such operation. Without -Zn metadata are wiped.
WHATS_NEW
tools/lvconvert.c
This page took 0.041124 seconds and 5 git commands to generate.