chiark / gitweb /
Backup: No longer attempt to lvchange -a n the snapshot volume.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Apr 2016 23:29:15 +0000 (00:29 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Apr 2016 23:29:24 +0000 (00:29 +0100)
With modern LVM this would deactivate the source volume too.  So
instead it stops and prompts.  It's not necessary anyway given that we
are passing -f to lvremove.

backup/snap-common
debian/changelog

index 52a2c41c99d9329ac3ccf16d0eadd473a4680e9a..1806a71b3512720d00db6639559dbf35c0e2a2b6 100644 (file)
@@ -62,7 +62,6 @@ lvmdropcore () {
 
        if [ $rc = 0 ]; then
                set +e
 
        if [ $rc = 0 ]; then
                set +e
-               lvchange    $lvm_lvtools_opts -a n $old_lv_dev
                lvremove -f $lvm_lvtools_opts      $old_lv_dev
                set -e
                rm $vardir/snap-device
                lvremove -f $lvm_lvtools_opts      $old_lv_dev
                set -e
                rm $vardir/snap-device
index 71dc3878dff19f15d675a4a29070bf7abae1c6c1..64fc9188ba4195a9885344362b46f17390e4b10d 100644 (file)
@@ -1,6 +1,7 @@
 chiark-utils (4.5.0~iwj4) unstable; urgency=medium
 
   * Add debian/.debhelper to .gitignore.
 chiark-utils (4.5.0~iwj4) unstable; urgency=medium
 
   * Add debian/.debhelper to .gitignore.
+  * Backup: No longer attempt to lvchange -a n the snapshot volume.
 
  --
 
 
  --