Re: [pve-devel] [PATCH Storage] Boot LVM Migration Speed

2016-12-24 Thread Dietmar Maurer
Thanks, see:

https://git.proxmox.com/?p=pve-storage.git;a=commitdiff;h=46f114a53fd2948ff9b2262cb2d4de50f6b9434e


> On December 24, 2016 at 5:50 AM jlavoy  wrote:
> 
> 
> Boost LVM Migration Speed. This speeds up host to
>  host LVM migration to be more in line with what you see using qcows or raw
>  files.

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


[pve-devel] [PATCH Storage] Boot LVM Migration Speed

2016-12-23 Thread jlavoy
Boost LVM Migration Speed. This speeds up host to
 host LVM migration to be more in line with what you see using qcows or raw
 files.

Signed-off-by: jlavoy 
---
 PVE/Storage.pm | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index a904f4e..71b699c 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -613,11 +613,11 @@ sub storage_migrate {
 
eval {
if ($tcfg->{type} eq 'lvmthin') {
-   run_command([["dd", "if=$src"],["/usr/bin/ssh", 
"root\@${target_host}",
- "dd", 'conv=sparse', "of=$dst"]]);
+   run_command([["dd", "if=$src", "bs=4k"],["/usr/bin/ssh", 
"root\@${target_host}",
+ "dd", 'conv=sparse', "of=$dst", "bs=4k"]]);
} else {
-   run_command([["dd", "if=$src"],["/usr/bin/ssh", 
"root\@${target_host}",
- "dd", "of=$dst"]]);
+   run_command([["dd", "if=$src", "bs=4k"],["/usr/bin/ssh", 
"root\@${target_host}",
+ "dd", "of=$dst", "bs=4k"]]);
}
};
if (my $err = $@) {
-- 
2.10.2

___
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel