Over-provisioned VM and can't resize

shiveringmussel

New Member
Jun 21, 2022
2
0
1
Hi

I am a complete beginner to Proxmox and think I've probably messed up a lot of stuff along the way.

My current problem is I have somehow created a vm disk larger (4.25) than the physical disk (4).

Within the file system I've set it to 3.9T, but in the storage > lvm_thin > VM Disks screen it shows as 4.25 TB.

I assume that as the filesystem is set to 3.9T I can somehow safely shring the VM Disk in ProxMox to 3.9T also? How?

I want to be able to take snapshots of the boot disk and I think last time I tried it the above issue broke it. Any help greatly appreciated!
 

Attachments

  • Screenshot 2023-04-19 083754.png
    Screenshot 2023-04-19 083754.png
    86.6 KB · Views: 4
  • Screenshot 2023-04-19 083854.png
    Screenshot 2023-04-19 083854.png
    22.3 KB · Views: 4
HI,
lvreduce is the command you are looking for, see man lvreduce. But, make sure to have a backup of the logical volume before you try anything, as if you get the sizes wrong, your filesystem on the LVM will be corrupt and you risk data loss. Also make sure to update the size in the VM config after reducing the LV size.
 
HI,
lvreduce is the command you are looking for, see man lvreduce. But, make sure to have a backup of the logical volume before you try anything, as if you get the sizes wrong, your filesystem on the LVM will be corrupt and you risk data loss. Also make sure to update the size in the VM config after reducing the LV size.
Thanks I will check it out.