Move Disk Compressed

masterdaweb

Well-Known Member
Apr 17, 2017
87
5
48
32
Hi,


I'd like to know if is there some way to move disk and compress it by command line before moving.
, Because it's moving an almost clean disk with 150 GB size and taking too much bandwidth
 
If I interpret "too much bandwidth" correctly you mean "move disk remotely", then the disk is copied via SSH, so you can use SSH compression if you enable it (man ssh_config).

Otherwise, you can always backup the machine with the fast compression and restore it on the new storage. You can get better compression rated with better compression programs, but you'll need more time and the normal LZOP is just fine for backup & restore and will compress empty space also very well. This should be the fastest method.
 
  • Like
Reactions: masterdaweb
If I interpret "too much bandwidth" correctly you mean "move disk remotely", then the disk is copied via SSH, so you can use SSH compression if you enable it (man ssh_config).

Otherwise, you can always backup the machine with the fast compression and restore it on the new storage. You can get better compression rated with better compression programs, but you'll need more time and the normal LZOP is just fine for backup & restore and will compress empty space also very well. This should be the fastest method.
Thank you very much!
 
If I interpret "too much bandwidth" correctly you mean "move disk remotely", then the disk is copied via SSH, so you can use SSH compression if you enable it (man ssh_config).

I just reread my answer and this is only true for moving the VM across host boundaries, not moving from local disk to nfs for example. So you should stick to backup & restore for that purpose.
 
  • Like
Reactions: masterdaweb
I just reread my answer and this is only true for moving the VM across host boundaries, not moving from local disk to nfs for example. So you should stick to backup & restore for that purpose.

Yes, the purpose of this topic is that I'm Moving Disk over Hosts.

I was planning a bash script to compress with LZOP (as you suggested), but I came across with the situation that I can't turn off my customer VM for a Disk Compress moving.

I think the only possible thing that I can do is turning on SSH Compress (As you suggested)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!