From f3b3b2a3b74cc3154500e81bbc187300d5c53a4a Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 4 Aug 2016 11:30:53 +0200 Subject: [PATCH] remove compression option from lvm migration ssh(1) mentions that compression is only disirable on slow connections. since migration from cluster node to cluster node needs a fast network anyway, we can drop the compression for a speed improvement Signed-off-by: Dominik Csapak --- PVE/Storage.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 991131a..25ff545 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -559,10 +559,10 @@ sub storage_migrate { eval { if ($tcfg->{type} eq 'lvmthin') { - run_command([["dd", "if=$src"],["/usr/bin/ssh", "root\@${target_host}", "-C", + run_command([["dd", "if=$src"],["/usr/bin/ssh", "root\@${target_host}", "dd", 'conv=sparse', "of=$dst"]]); } else { - run_command([["dd", "if=$src"],["/usr/bin/ssh", "root\@${target_host}", "-C", + run_command([["dd", "if=$src"],["/usr/bin/ssh", "root\@${target_host}", "dd", "of=$dst"]]); } };