Hi,
My LVM-Thin is getting larger by the day and very fast, I'm almost out of disk space.
I have only one VM (Home Assistant) and nothing else.
Disk space usage only goes up and never goes down.
The discard option is checked and SSD emulation also. I use a SSD, not a HDD.
I found the following guides.
https://gist.github.com/hostberg/86bfaa81e50cc0666f1745e1897c0a56
https://opensource.com/article/20/2/trim-solid-state-storage-linux
But, when I type the command fstrim -av it seems that the VM's drive is not being trimmed.
root@NUC:~# fstrim -av
/boot/efi: 510.7 MiB (535465984 bytes) trimmed on /dev/sda2
/: 231.3 MiB (242548736 bytes) trimmed on /dev/mapper/pve-root
When I look in etc/fstab I don't see the VM's drive, is this why it isn't trimmed?
Should I somehow add the VM's disk here?
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext4 errors=remount-ro 0 1
UUID=824B-3413 /boot/efi vfat defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
I found the following post, does this refer to etc/fstab? How can I mount the file system within the guest?
https://forum.proxmox.com/threads/trim-ssds.46398/post-220577
My LVM-Thin is getting larger by the day and very fast, I'm almost out of disk space.
I have only one VM (Home Assistant) and nothing else.
Disk space usage only goes up and never goes down.
The discard option is checked and SSD emulation also. I use a SSD, not a HDD.
I found the following guides.
https://gist.github.com/hostberg/86bfaa81e50cc0666f1745e1897c0a56
https://opensource.com/article/20/2/trim-solid-state-storage-linux
But, when I type the command fstrim -av it seems that the VM's drive is not being trimmed.
root@NUC:~# fstrim -av
/boot/efi: 510.7 MiB (535465984 bytes) trimmed on /dev/sda2
/: 231.3 MiB (242548736 bytes) trimmed on /dev/mapper/pve-root
When I look in etc/fstab I don't see the VM's drive, is this why it isn't trimmed?
Should I somehow add the VM's disk here?
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/pve/root / ext4 errors=remount-ro 0 1
UUID=824B-3413 /boot/efi vfat defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0
I found the following post, does this refer to etc/fstab? How can I mount the file system within the guest?
https://forum.proxmox.com/threads/trim-ssds.46398/post-220577
Last edited: