Reduce disk space on lvm-thing

tayra

Active Member
Sep 25, 2017
11
0
41
52
I moved the disk from the zfs pool to the lvm-thing pool, but the space occupied by the disk did not decrease in accordance with the amount of data on it, but took up all the space in accordance with the volume of the disk. Is it possible to reduce the size of a disk on a lvm-thing to the size of the data on it, as a thin array allows?
 
Hi,
do you have the qemu guest agent installed and activated in the VM options? Make sure the guest runs a trim, as otherwise discarded blocks are not removed.
 
Hi,
do you have the qemu guest agent installed and activated in the VM options? Make sure the guest runs a trim, as otherwise discarded blocks are not removed.
Yes, the QEMU guest agent installed, both checkboxes in the virtual machine settings is enabled, did not help. The type of controller is Virtio scsi single, the type of disk is ide.
 
Please post the output of your storage configuration cat /etc/pve/storage.cfg, and lvs -a, as well as the configuration of the VM with the disk in question qm config <VMID>. Did you run a fstrim from within the VM to see if this frees up space?
 
Please post the output of your storage configuration cat /etc/pve/storage.cfg, and lvs -a, as well as the configuration of the VM with the disk in question qm config <VMID>. Did you run a fstrim from within the VM to see if this frees up space?

# cat /etc/pve/storage.cfg dir: local disable path /var/lib/vz content images prune-backups keep-last=1 shared 0 lvmthin: T1 thinpool T1 vgname T1 content rootdir,images nodes vm1 # lvs -a | grep 132 vm-132-disk-0 T1 Vwi-aotz-- 240.00g T1 99.67

The operating system of the guest machine is win10, there is have not fstrim
 

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!