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 <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak
2016-08-04 11:30:53 +02:00
committed by Wolfgang Bumiller
parent 82fc923fd4
commit f3b3b2a3b7

View File

@ -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"]]);
}
};