How to reduce SCSi disk size?

eddie

New Member
Jun 21, 2017
11
0
1
43
Hello everyone, I got one question with my VM.
I made one VM which is SCSi disk with 2TB windows 2016 OS. if I use GUI backup will it take exact size for backing up? or just like thin-provisioning only usage?
I would like to resize it to under 300G since this VM was planned to give 200GB only.

Any answer is appreciate!

Thanks
 

Attachments

  • Screen Shot 2017-10-19 at 1.05.55 PM.png
    Screen Shot 2017-10-19 at 1.05.55 PM.png
    136.1 KB · Views: 11
if I use GUI backup will it take exact size for backing up? or just like thin-provisioning only usage?

When backing up you may choose a compressor, which will always reduce size quite a bit, especially if most of the guest disk is till empty.
independent of compression choosen our backup tool will only write non-empty data blocks from the disk to the backup. So even if you do an uncompressed backup it normally won't take the full space, that will only happen if the guest disk itself is also completely full.
 
  • Like
Reactions: eddie
I would like to resize it to under 300G since this VM was planned to give 200GB only.

This is not as easy as often wished.

First you would need to reduce the partition size inside the guest, so that its partition(s) are as small as your new disk size - so 200GB in your case.
After that you could resize the LV (logical volume) where the disk resides, see `man lvreduce` and various forum threads here.

Always make backups before doing anything of that, at least if this virtual machine has any value to you (which I guess, else you would just have created a new one with the intended disk size.
 
  • Like
Reactions: eddie
This is not as easy as often wished.

First you would need to reduce the partition size inside the guest, so that its partition(s) are as small as your new disk size - so 200GB in your case.
After that you could resize the LV (logical volume) where the disk resides, see `man lvreduce` and various forum threads here.

Always make backups before doing anything of that, at least if this virtual machine has any value to you (which I guess, else you would just have created a new one with the intended disk size.

Thanks!
is there any threads or articles tutorial or example of this?
 
When backing up you may choose a compressor, which will always reduce size quite a bit, especially if most of the guest disk is till empty.
independent of compression choosen our backup tool will only write non-empty data blocks from the disk to the backup. So even if you do an uncompressed backup it normally won't take the full space, that will only happen if the guest disk itself is also completely full.

Thanks, I was planned to install ZFS for my cluster but the RAID card does't support IT mode or HBA.
 

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!