I found the problem, described here: https://github.com/apache/cloudstack/discussions/10136
rhel9 does not support discarcd/trim with old pc-i440fx-rhel7.6.0 machine type. Switching to q35 solves the problem. -----Ursprüngliche Nachricht----- Von: Daan Hoogland <daan.hoogl...@gmail.com> Gesendet: Dienstag, 19. August 2025 19:06 An: users@cloudstack.apache.org Betreff: Re: discard / trim functionality using alma linux Wilken, I am not sure what the problem is but I heard of more issues with alma9. On Thu, Aug 14, 2025 at 12:13 PM W. Verleger - proIO GmbH <w.verle...@proio.com> wrote: > > Hi all, > > I was wondering if I am missing something: > > I am using Alma Linux 9.6 as hypervisor and linstor/drbd as primary storage > (LVM thin pool). > I cannot discard / trim in guest VM (ubuntu 24 / ext4 file system): > > fstrim -v / > fstrim: /: the discard operation is not supported > > lsblk -D > NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO > sr0 0 512B 0B > 0 > vda 0 512B 0B > 0 > └─vda1 0 512B 0B 0 > > Thin pool discard passdown is enabled. > In qemu xml: discard='unmap' > > Are there any limitations? > Same setup but ubuntu24 as hypervisor it works out of the box. > > Thank you! > > BR > Wilken > > - proIO GmbH - > Geschäftsführer: Swen Brüseke > Sitz der Gesellschaft: Frankfurt am Main > > USt-IdNr. DE 267 075 918 > Registergericht: Frankfurt am Main - HRB 86239 > > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich > erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie > diese Mail. > Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht > gestattet. > > This e-mail may contain confidential and/or privileged information. > If you are not the intended recipient (or have received this e-mail in > error) please notify the sender immediately and destroy this e-mail. > Any unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > -- Daan - proIO GmbH - Geschäftsführer: Swen Brüseke Sitz der Gesellschaft: Frankfurt am Main USt-IdNr. DE 267 075 918 Registergericht: Frankfurt am Main - HRB 86239 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.