VMware vSphere

 View Only
  • 1.  TRIM on SSD or NVMe

    Posted Nov 20, 2023 02:42 PM

    Hi comunity,
    can anybody confirm if TRIM or similar FLASH disk wear-out prevention feature is implemented in ESXi (NVMe and SSD disks)?
    - If yes, from which ESXi version onwards?
    - is there any special settings you need to perform, or select specific "disk controller" which activates this etc?
    - is it working for pure "VMFS disks " and vVol / vSANtoo? 
    - Is there a way to check the TRIM on specific disk is activated and works OK?
    Thank you in advance for any help...could not find any official informations.



  • 2.  RE: TRIM on SSD or NVMe



  • 3.  RE: TRIM on SSD or NVMe

    Posted Nov 22, 2023 01:54 PM

    Hi,
    thanks for the URLs.
    After reading the articles, few details are unclear/unconfirmed to me :
    - OK, only SCSI controllers can support TRIM : any of the configuration is OK? (LSI SAS, LSI paralel, VMware   Paravirtual etc...) What about SATA or NVMe Controllers?...not supported?
    - does it work for vVOL too?
    .....I guess it is ON by default.
    Thanks



  • 4.  RE: TRIM on SSD or NVMe

    Posted Nov 23, 2023 07:12 AM

    Hi,

    not sure where you found the statement that it would require (or work only) with SCSI controllers.
    As all IO Operations on HDDs/SSDs regardless of the interface (SATA, SAS, NVMe) rely on SCSI CMDs the type of the used virtual controller shouldn't care.

    As stated in the mentioned articles, VMFS does support TRIM and UMAP, so if the underlying storage and the Guest VM also do support it than you're fine.

    vSAN also support it, but you might need to activate it manually.

    Keep in mind that it would require additional steps on vSAN from within the VMs when this feature wasn't initially enabled.
    As vSAN didn't reclaim the space when the feature wasn't activated the VM need to rerun a space reclaim operation so that vSAN would receive Trim & Umap commands again to reclaim space.