-
Notifications
You must be signed in to change notification settings - Fork 33
Description
I am getting a failure when attempting to mount an XFS filesystem on NVMe volumes using the csi-driver-lvm. This issue is due to incompatible XFS features that are not supported by the kernel on my worker nodes. Here are the details:
- Driver:
csi-driver-lvm(v0.6.0) - Kubernetes version: v1.27.16-eks-ce1d5eb
- Kernel version: 5.10.226-214.880.amzn2.x86_64 (Amazon Linux)
- StorageClass: XFS filesystem with striped LVM configuration on NVMe devices
- LVM configuration: Using striped storage class configured with
csi-driver-lvm - XFS rrror message: Superblock has unknown incompatible features (0x20) enabled
XFS (dm-0): Superblock has unknown incompatible features (0x20) enabled.
XFS (dm-0): Filesystem cannot be safely mounted by this kernel.
XFS (dm-0): SB validate failed with error -22.
The error suggests that the XFS filesystem superblock includes features not supported by the current kernel version. Specifically, the feature flag 0x20 appears incompatible, which prevents safe mounting.
These incompatible features might be due to the mkfs.xfs options applied by the LVM CSI driver.
Steps to reproduce
- Deploy the csi-driver-lvm with striped storage class using the following parameters in StorageClass:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: csi-driver-lvm-striped-xfs
provisioner: lvm.csi.metal-stack.io
reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
parameters:
type: "striped"
csi.storage.k8s.io/fstype: xfs- Attempt to mount the provisioned XFS filesystem on a Kubernetes node with kernel version 5.10.226-214.880.amzn2.x86_64.
Expected behavior
The XFS filesystem should mount successfully without errors.
Actual behavior
The mount fails with repeated errors about incompatible superblock features, as shown in the error message above.
Suggestion
Could we allow users to specify or restrict certain mkfs.xfs options to ensure compatibility with the underlying kernel.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status