Skip to content

Request: Periodic discard/trim (SCSI unmap) vs. online discard #723

@wonderland

Description

@wonderland

Describe the solution you'd like
Trident already enables (and documents) use of the "discard" mount option to enable block reclamation on ontap-san and ontap-san-economy drivers. However, OS vendors such as Red Hat recommend to run block reclamation as a periodic task ("trim" command) rather than online discard via the mount options.
Could Trident implement a periodic trim operation on all LUNs? Or trigger this during each volume mount to at least run it from time to time? This would allows to stay in line with OS vendor recommendations and still use this efficiency feature.

Describe alternatives you've considered
Online block discard via mount option in Storage Class. This is not recommended, for example Red Hat states "Red Hat recommends that you use batch or periodic discard."
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_file_systems/discarding-unused-blocks_managing-file-systems

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions