Este contenido no está disponible en el idioma seleccionado.

Chapter 5. Trim options on an LVM-VDO volume


The following are different available trim options for an LVM-VDO volume:

discard
Performs online block discard operations to automatically discard unused blocks. For immediate discarding, use the mount -o discard command.
fstrim
Performs periodic discarding. The admin needs to schedule and monitor an additional process.
Note

It is currently recommended to use fstrim application to discard unused blocks rather than the discard mount option because the performance impact of this option can be quite severe. For this reason, nodiscard is the default.

5.1. Enabling discard mount option on an LVM-VDO volume

You can enable the discard option on your LVM-VDO volume.

Prerequisites

  • An LVM-VDO volume exists on your system.

Procedure

  • Enable the discard option on your volume:

    # mount -o discard /dev/vg-name/vdo-name mount-point
    Copy to Clipboard Toggle word wrap

5.2. Setting up periodic TRIM operation

You can enable a scheduled TRIM operation on your system.

Prerequisites

  • An LVM-VDO volume exists on your system.

Procedure

  • Enable and start the timer:

    # systemctl enable --now fstrim.timer
    Copy to Clipboard Toggle word wrap

Verification

  • Verify that the timer is enabled:

    # systemctl list-timers fstrim.timer
    NEXT                         LEFT         LAST  PASSED  UNIT         ACTIVATES
    Mon 2021-05-10 00:00:00 EDT  5 days left  n/a   n/a     fstrim.timer fstrim.service
    Copy to Clipboard Toggle word wrap
Note

You will not see any reference to a VDO volume, because the fstrim.timer runs across all mounted file systems.

Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2026 Red Hat