Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filesystem XFS is mounted as ext4 (fsType: ext4 / filesystem: xfs) #122

Closed
0hlov3 opened this issue Dec 9, 2022 · 1 comment · Fixed by #149
Closed

Filesystem XFS is mounted as ext4 (fsType: ext4 / filesystem: xfs) #122

0hlov3 opened this issue Dec 9, 2022 · 1 comment · Fixed by #149
Assignees
Labels
bug Something isn't working

Comments

@0hlov3
Copy link

0hlov3 commented Dec 9, 2022

Describe the bug

Hi there,

we configured the Kubernetes Cluster to use XFS as Filesystem, after we deployed the Cluster everything looks as aspected.

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: sk3-standard
parameters:
  filesystem: xfs
  storageProfile: SK3 Standard

After we created the first PVCs/PVs and took a look at the PV, the fsType is ext4 and the filesystem is declared as xfs.

apiVersion: v1
kind: PersistentVolume
metadata:
  annotations:
    pv.kubernetes.io/provisioned-by: named-disk.csi.cloud-director.vmware.com
  creationTimestamp: "2022-12-09T12:53:15Z"
  finalizers:
  - kubernetes.io/pv-protection
  - external-attacher/named-disk-csi-cloud-director-vmware-com
  name: pvc-a088b019-258a-4ac6-955b-c19f80930e5f
  resourceVersion: "103190"
  uid: de5843da-678a-4d2e-be5b-0266ec77cc81
spec:
  accessModes:
  - ReadWriteOnce
  capacity:
    storage: 100Mi
  claimRef:
    apiVersion: v1
    kind: PersistentVolumeClaim
    name: myvol-centostate-2
    namespace: default
    resourceVersion: "103096"
    uid: a088b019-258a-4ac6-955b-c19f80930e5f
  csi:
    driver: named-disk.csi.cloud-director.vmware.com
    fsType: ext4
    volumeAttributes:
      busSubType: VirtualSCSI
      busType: SCSI
      diskID: urn:vcloud:disk:7a8fb790-f4f5-4422-a054-3dc34ce58742
      filesystem: xfs
      storage.kubernetes.io/csiProvisionerIdentity: 1670585734394-8081-named-disk.csi.cloud-director.vmware.com
      storageProfile: SK3 Standard
    volumeHandle: pvc-a088b019-258a-4ac6-955b-c19f80930e5f
  persistentVolumeReclaimPolicy: Delete
  storageClassName: sk3-standard
  volumeMode: Filesystem
status:
  phase: Bound

But if we look at the node or the container the Filesystem Mounted is EXT4

❯ k exec -ti centostate-0 -- /bin/bash
[root@centostate-0 /]# df -T
Filesystem     Type    1K-blocks    Used Available Use% Mounted on
/dev/sdb       ext4        95054    1550     86336   2% /vol

Unfortunately, I don't currently understand how the filesystemtype and the fstype are related. I only see that ext4 is mounted on the nodes and on the containers.

I would like to understand here if this is an intended behavior.

Reproduction steps

  1. Cloud Dorector -> Kubernetes Container Clusters -> New
  2. Kubernetes Storage -> Filesystem -> xfs
  3. Deploy the Cluster

Expected behavior

The expected behaviour is, that the Volumes are formatted and mounted as XFS.

Additional context

No response

@0hlov3 0hlov3 added the bug Something isn't working label Dec 9, 2022
@arunmk arunmk assigned arunmk and ymo24 and unassigned arunmk Feb 19, 2023
@arunmk
Copy link
Collaborator

arunmk commented Feb 19, 2023

@0hlov3 apologies for the delay.

@ymo24 could you please take a look at this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants