fstrim

  1. pct fstrim <CT_ID> ignore /mnt ?

    any way to get the pct fstrim command to ignore the /mnt directory or mountpoints in the LXC? i get an error on all LXC with ZFS mountpoints: fstrim: /var/lib/lxc/121/rootfs/mnt/Media: the discard operation is not supported command 'fstrim -v /var/lib/lxc/121/rootfs/mnt/Media' failed: exit code 1
  2. VE Guest VM Unable to Discard

    Hi everyone, I have a guest VM which seems to be unable to utilize the discard option to free up block space. The guest VM is a Ubuntu 18.04 LTS OS with an ext4 root FS. Underlying storage is Ceph on Bluestore OSDs. VM storage controller is VirtIO-SCSI, with just a standard 1TB disk attached to...
  3. Schedule trim (fstrim) job on Hosts/VMs

    Do I need to schedule fstrim for SSD disks (or even HDD?..) on Proxmox 6.2 ? And if I do, how exactly do I schedule such a job? I've searched online but didn't find anything except for scheduling backups... Thank you,
  4. is it possible to auto trim for lxc disks?

    I have a cluster that has relatively heavy IO and consequently free space on the ceph storage is constantly constrained. I'm finding myself performing fstrim on a more and more frequent interval. Is there a way to auto trim a disk for an lxc container?
  5. fstrim doesn't work in containers (any OS) - workarounds?

    Hi again I've been trying all day to get fstrim working inside unprivileged LXC containers with no luck. Initially I thought it was just a Debian/Ubuntu issue, but I've tried multiple OS templates and it always results in: FITRIM ioctl failed: Operation not permitted. FYI it works fine in...
  6. Is fstrim needed on LVM-thick containers?

    Hi all, I've just discovered that debian/ubuntu has a bug with running fstrim inside containers. However, I am not using LVM-thin, just regular LVM. Therefore my raw disk image size won't change when files are deleted or added. For this reason, I'm thinking maybe there's no need to run fstrim...
  7. jmcorrea

    [SOLVED] FSTrim and Discard needed on ZFS?

    Hello! We have a couple of servers configured to use local ZFS pools for storage. These pools have Thin Provisioning enabled. I used to think that Thin Provisioning + ZFS was enough to have the VMs use on physical storage the same space that they are using into themselves, but it seems I was...
  8. 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...
  9. 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)?
  10. Thin provisioned VM backup size

    Hello to the community, I was following this thread to find the solution to the problem, but I got different behaviour. My guest VM is using 13GB on /dev/sda1, here's the configuration bootdisk: scsi0 cores: 1 ide2: none,media=cdrom lock: backup memory: 4096 name: pippo001 net0...
  11. Trim virtual drives

    Hey everyone ! We were moving disks from a storage to another and noticed that when they arrive on the new storage, the thin provisioning expanded to full space. Before, when we had a few VMs, we could use the old method to empty the disks (using dd to fill the disk with zeros and deleting...
  12. Copy to ZFS, fstrim

    Hi all, I have two issues: 1. When I do a command like dd if=rawfile | pv | dd of=/dev/zfs-pool/vm-disks/vm-109-disk-1 to import 96 GB large disk to Proxmox (the disk is created with 96 GB size), the occupied ZFS space increases for about 188 GB. Is this normal behaviour? I have tried on two...

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!