VMware vSphere

 View Only
  • 1.  Does trim command work in a virtual disk? ESxi 6.5

    Posted Mar 07, 2019 12:36 PM

    Hi.

    I have been looking for an answer for my question but I have not found anything about it.

    We have a Virtual Machine with Suse enterprise server 12 in a server with ESxi 6.5. The virtual disk is placed in a ssd physical disk.

    Once a week, the Suse server runs a fstrim command and this command affects to the 700Gb of the virtual hard disk, so, when I have to do an snapshot after fstrim, it takes a lot of time, because the whole virtual disk has to be read (trim command makes changes in every empty sector).

    My question is. It is really neccessary to run a trim command in a virtual disk?.  I am sure it is usefull in a physical disk, but in a virtual one?

    Thanks and regards

    J. Bradi.



  • 2.  RE: Does trim command work in a virtual disk? ESxi 6.5

    Posted Mar 07, 2019 02:57 PM

    This is well explained here :
    SSDs and TRIM, Virtual Disks and Raw Disks

    regards

    Gayathri



  • 3.  RE: Does trim command work in a virtual disk? ESxi 6.5

    Posted Mar 07, 2019 05:24 PM

    The post you referenced was created years before ESXi/Workstation  added the option to flag virtual disks as SSD.
    I recommend reading it for  entertainment purposes.
    But I cant say if it still applies.



  • 4.  RE: Does trim command work in a virtual disk? ESxi 6.5

    Posted Jul 02, 2021 08:36 AM

    Really entertaining indeed. VMware experts on their high horses.  
    The author of the referenced post was in fact right, he might've been too rude, but I'd be [removed] as hell if some "experts" replied to me like that as well. The post is good and one of the answers explains in detail some of the more basic inner works of block devices and filesystems.

    You really missed the point.. it's not that the author didn't want "no" as an answer, they just wanted a detailed answer about how it worked and why. Not a simple "no", like some [removed] who think they're the best would do. 

     

    P.S. The discussion was actually civil, you just seemed [removed].


    Now, can anyone actually answer this question as well? Please..?

    moderator edit by wila: removed some [removed] words.. we do expect the usage of professional language without adding insults or cursing words.



  • 5.  RE: Does trim command work in a virtual disk? ESxi 6.5

    Posted Oct 25, 2021 03:25 PM

    I too would like an answer to this question, our storage usage is goin up despite our total VM count getting reduced recently.  Wondering if I need to be running trim on my VMs or something to keep the usage under control.