The ProxMox CLI says, "shrinking disks is not supported." I did it manually and it seems to have worked fine, but maybe I made a mistake and I just don't realize it.
I have PVE 8.0.3 running a Windows Server 2022 guest with a 2 TB drive 0 and a 6 TB drive 1. Drive 0 is partitioned as a 50 GB drive C:, and the rest of the disk is unused. I realized that I was never going to need all that extra space on drive 0, so I wanted to resize it, but the CLI would not let me. After doing a lot of Googling and coming up with all kinds of complicated answers, I eventually did the following, which seems pretty simple:
1. Since my drive C partition was much smaller than the disk, I didn't have to worry about resizing that first.
2. Used lvdisplay to identify the LVM volume associated with drive 0,
3. Ran lvreduce to shrink the volume.
4. Edited the VM guest .conf file and changed the size of disk 0 from 2 T to 60 G.
5. Started the VM. It booted fine.
6. Used Windows Disk Management to verify that drive 0 is now 60G with a 50G drive C partition.
That's it, and all seems well. Did I miss something that will bite me later?
I have PVE 8.0.3 running a Windows Server 2022 guest with a 2 TB drive 0 and a 6 TB drive 1. Drive 0 is partitioned as a 50 GB drive C:, and the rest of the disk is unused. I realized that I was never going to need all that extra space on drive 0, so I wanted to resize it, but the CLI would not let me. After doing a lot of Googling and coming up with all kinds of complicated answers, I eventually did the following, which seems pretty simple:
1. Since my drive C partition was much smaller than the disk, I didn't have to worry about resizing that first.
2. Used lvdisplay to identify the LVM volume associated with drive 0,
3. Ran lvreduce to shrink the volume.
4. Edited the VM guest .conf file and changed the size of disk 0 from 2 T to 60 G.
5. Started the VM. It booted fine.
6. Used Windows Disk Management to verify that drive 0 is now 60G with a 50G drive C partition.
That's it, and all seems well. Did I miss something that will bite me later?
Last edited: