Skip to main content
NetApp Knowledge Base

Which filesystem is recommended, ext4 or XFS, for the Trident CSI driver Persistent Volumes?

Views:
10
Visibility:
Public
Votes:
0
Category:
trident-kubernetes
Specialty:
snapx
Last Updated:

Applies to

  • NetApp Trident CSI Driver (all supported versions)
  • Kubernetes PVs provisioned by Trident (using ONTAP SAN backend)
  • All supported Linux distributions

Answer

Filesystem Recommendation:

  • NetApp Trident supports both ext4 and XFS filesystems for PVs provisioned via the ONTAP SAN backend.
  • NetApp does not mandate or recommend one over the other.
    The filesystem selection should be based on:
    • The requirements of your application
    • The supported filesystems of your OS and Kubernetes distribution
    • Your operational preferences

Documentation Reference:

General Guidance:

  • Both ext4 and XFS are mature and widely supported.
  • XFS may offer advantages for very large files and high concurrency workloads, while ext4 is often preferred for general-purpose workloads and broad compatibility.
  • See Comparison Article: XFS vs ext4 (RHEL 9) for more details.

Additional Information

If your application or OS has a specific requirement or limitation (e.g., only supports ext4), specify the desired filesystem in the StorageClass parameter fsType. Example:

parameters:
  fsType: "ext4"

or

parameters:
  fsType: "xfs"

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.