vgexport to leave lvm in clean state
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 2 Oct 2014 11:49:33 +0000 (13:49 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 2 Oct 2014 12:21:29 +0000 (14:21 +0200)
vmdk-backup.pl

index 068325f..14b8994 100755 (executable)
@@ -162,6 +162,8 @@ sh "lvremove -f $_" foreach @lv_remove;
 
 sh "vgchange --available n $vg_backup";
 
+sh "vgexport $vg_backup";
+
 sh "kpartx -dv /dev/nbd0";
 
 warn "finished in ", time() - $start_t, " seconds\n";