Which filesystem is recommended, ext4 or XFS, for the Trident CSI driver Persistent Volumes?
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"
