trim

  1. T

    Freeing Up Unused Space In A Linux VM That Doesn't Support TRIM

    Hi all, I'm usng LVM-Thin storage for my VMs, one of which is a very old legacy Linux VM. So old that the kernel doesn't support TRIM. The file system is EXT2. Is it possible to somehow run fstrim from the PVE host on the lvm-thin volume and have the space reclaimed in the lvm-thin pool? The VM...
  2. C

    [solved] Storage 'local' on node 'pve' grows without utilizing space with data

    Hello everyone, I've searched everywhere but unfortunately haven't found anything useful. I became aware of the problem through I/O Error... checked... local disk full. I suspect an Ubuntu installation on which I created chia plots in RAM. Strangely enough, the local drive slowly grew from that...
  3. I

    passing trim from virtual computer to host block device

    Hi! I think everything runs smooth but i would like to get confirmation if it is really ok. Setup has flash devices (actually nvme samsung and kioxia) and they are directly running on pcie (i.e. without some kind of raid controller etc although raid controller setup + nvme seems to be rare case...
  4. S

    NAS VM set up - To disk passthrough or not? Trim?

    Hi all, I have a build using standard PC parts, and one of my VMs is OpenMediaVault NAS OS. Storage wise I currently have: 1st NVMe - Proxmox OS. Passed through to NAS from mobo SATA ports (using Passthrough Physical Disk to Virtual Machine (VM) 2nd NVMe 1st SSD 2nd SSD 1st HDD There are a...
  5. A

    Trim/Discard nachträglich aktivieren

    Ist es möglich die Discard/trim Funktion nachträglich laufen zu lassen? Ich habe ein paar VMs (Ubuntu server 20) bei denen discard ursprünglich nicht aktiviert wurde und nun unnötig viel Speicher verschwendet wird. Ich hab discard nun nachträglich aktiviert (und qemu guest agent installiert)...
  6. T

    Help with TRIM on Virtio SCSI Single

    Hi Everyone, Wondering whether or not Virtio SCSI Single supports TRIM in guests, I have observed it not working automatically during disk migration with a hook script but when the disk controller is set to Virtio SCSI, it works as expected with no other changes. Evidently, I've prefer to use...
  7. T

    [SOLVED] Trim cronjob not working - PVE 7.3.4

    Just wondering if anyone else has the same problem. In the default install I can see there are two cron jobs; one for scrubbing and one for triming: nano /etc/cron.d/zfsutils-linux I wanted to check that these jobs actually do something so I manually ran the following commands in the...
  8. H

    Trim errors/not working on debian 11 guest / LVM-Thin storage

    Hello, i have problems with trim on debian 11 guest VM , i used windows server as guest on different VM and its was working for it i used virtio-scsi and ssd emulation on/off, discard on underlying storage is NVME drive pveversion pve-manager/7.2-4/ca9d43cc (running kernel: 5.15.35-1-pve) cat...
  9. N

    ZFS TRIM on Proxmox

    Could someone please explain ZFS TRIM on Proxmox? Particularly the difference between setting autotrim=on and using zpool trim and best practices for use on SSD zpools an a Proxmox server (simple home lab server).
  10. jsterr

    Thin Provisioned Windows-VMs use full capacity in Proxmox Ceph after migration

    Is there a way to make them use just the space they are really using? I read alot about trim and discard, but it seems like theres not a easy way- Any tips? Im trying it myself currently, but yeah if there are any experience you wanna share, I would really appreciate it. Example: VMware-VM 40GB...
  11. V

    [SOLVED] windows 2016 Optimize-Volume ReTrim

    The Proxmox VE 6.3 (Hyper-converged Infrastructure) cluster has a virtual machine running MS Windows 2016. Characteristics of this virtual machine bootdisk: scsi0 ostype: win10 scsi0: rbd:vm-126-disk-0,discard=on,size=256G scsi1: rbd:vm-126-disk-1,discard=on,size=1000G scsihw: virtio-scsi-pci...
  12. S

    PVE 6.3-3 not working discard

    VMs with Debian 10 or Ubuntu 20.04 configured according to instructions https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files#Linux_Guest_Configuration fstrim -av writes that he successfully released about 10Gib But! qcow2.img size not changed (VM fs size 7.7G and qcow2 size 20G) After poweroff...
  13. A

    pct fstrim - can't umount lvm disk

    Hi! Today i run command pct fstrim 100 on disable lxc container and my ssh connection was disconnected. After reconnect i try fstrim and get error: mount: /var/lib/lxc/100/rootfs: /dev/mapper/vg0-vm--100--disk--0 already mounted on /var/lib/lxc/100/rootfs. Ok, trying umount: # umount -f...
  14. K

    [SOLVED] ZFS - Belegter Speicherplatz größer als tatsächlich verwendet

    Hallo zusammen. Aus 4x 3TB HDDs habe ich einen RAIDz1 Pool erstellt, wodurch 7.7 TiB verfügbar sind. Den Pool nutze ich u.a. als Storage für zusätzliche Festplatten in den VMs (aktuell nur Dateien von der NAS-VM). Ein df -h innerhalb der NAS-VM zeigt eine Belegung von knapp 3 TB. Die Proxmox...
  15. A

    Which MegaRAID is known to support TRIM?

    Used to rent servers (only a few, not that many) in datacenter, all under PVE and run perfectly well. Nowadays it is good choice to rent SSDs to put VMs on, and so we choose hardware raid with bbu to create mirrors out of SSDs (it is used to be megaraids) but... I never can find a wayto check...
  16. ThinkAgain

    zpool trim in Proxmox 6.1

    Am I correct in assuming that I will need to create a cron job to run "zpool trim" on, e.g., a weekly basis? Because the "autotrim" property doesn't appear to be set on zpools by default (neither "zfs get all" nor "zdb" show it), and I couldn't find any existing cronjob or timer that runs "zfs...
  17. aPollO

    TRIM in Windows 7 Gästen

    Guten Tag Zusammen, ich habe vor kurzem die Einstellung bei allen meinen Windows Gästen geändert. Jetzt laufen alle mit SCSI Controller VirtIO SCSI und die Festplatten logischerweise an scsi0 mit der Option discard.Auf allen VMs sind die aktuellen Spice-Tools mit dem Qemu Agent installiert...
  18. S

    [SOLVED] TRIM SSDs

    I have read all posts marked with trim but am still a little confused. Currently I have two PE nodes. Both have PE installed to an SSD. One has two further SSDs for VM disk images (using LVM-thin, discard always on); the other has HDDs which are passed through directly to the respective VMs...
  19. N

    trim or discard mapped size disk from within the host machine

    About returning unused space (trim or discard mapped size disk) I know about use `fstrim` command in guest vm. But I can not login to the guest customers! Now, my question is, is there any way to do this from within the host machine (main proxmox server)?
  20. G

    PVE Installer 5.0 - possible to install on disk partition only (not whole disk on zfs)

    Would it be possible to take an entire disk (256GB SSD) and break it down into smaller partitions, then install rpool on a fragment of the disk only? Right now the installer for PVE 5.0 beta2 when selecting zfs raid1 from the menu it shows entire disk /dev/sda, any possibility to have the...

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!