In first place i made the mistake creating the first LXC with all the free space allowed in local-lvm (150 G). After a lot of work iside this LXC, i want to create more LXC's and VM's, but i need more space, and the LXC never needed to be that big, so i want to keep it but smaller.
The first movement i needed was reduce the space of the LXC (after a backup), and i did it following this steps:
- resize2fs /dev/pve/vm-100-disk-1 65G
- lvreduce -L 65G /dev/pve/vm-100-disk-1
- modify the "rootfs" line inside etc/pve/lxc/100.conf to match the size i set up
After this steps, the LXC has the expected size, but there's no avalaible space in local-lvm, and i dont know how to get proxmox realize that now there is free space, that's not being used by the only one LXC.
The first movement i needed was reduce the space of the LXC (after a backup), and i did it following this steps:
- resize2fs /dev/pve/vm-100-disk-1 65G
- lvreduce -L 65G /dev/pve/vm-100-disk-1
- modify the "rootfs" line inside etc/pve/lxc/100.conf to match the size i set up
After this steps, the LXC has the expected size, but there's no avalaible space in local-lvm, and i dont know how to get proxmox realize that now there is free space, that's not being used by the only one LXC.