Why fstrim with --quiet-unsupported fails on a vxfs, as compared to other filesystems?

Solution Verified - Updated -

Issue

  • If fstrim is used with --quiet-unsupported, which is included from RHEL 9 and above, it doesn't work as expected. fstrim doesn't ignore the error, as it was supposed to.

    fstrim: /path/to/FS: FITRIM ioctl failed: Invalid argument
    
  • If tested on another filesystem, which doesn't support discard operations, such as NFS, tmpfs, no errors are observed.

  • Why is this issue occurring for only vxfs?

Environment

  • Red Hat Enterprise Linux 9
  • vxfs
  • fstrim

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content