[pve-devel] [PATCH 1/2] Include all snapshots when migrate storage zfs to zfs.

Wolfgang Link w.link at proxmox.com
Wed Mar 16 14:24:35 CET 2016


---
 PVE/Storage.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index 140f8ae..a248773 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -512,7 +512,7 @@ sub storage_migrate {
 
 	    my $snap = "zfs snapshot $zfspath\@__migration__";
 
-	    my $send = "zfs send -pv $zfspath\@__migration__ \| ssh root\@$target_host zfs recv $zfspath";
+	    my $send = "zfs send -Rpv $zfspath\@__migration__ \| ssh root\@$target_host zfs recv $zfspath";
 
 	    my $destroy_target = "ssh root\@$target_host zfs destroy $zfspath\@__migration__";
  	    run_command($snap);
-- 
2.1.4





More information about the pve-devel mailing list