Giter VIP home page Giter VIP logo

Comments (7)

Lorislombardi avatar Lorislombardi commented on June 1, 2024 2

Hello @autokilla47 @arunmk

After reconfiguring the csidriver with

fsGroupPolicy: ReadWriteOnceWithFSType

VMware support provides the following fix

kubectl apply -f https://gist.githubusercontent.com/arunmk/f0c06b261e1181baf2d17ade1bbcfa4f/raw/051297d21e32eae4748a129d56e183105caa4d84/gistfile1.txt

from cloud-director-named-disk-csi-driver.

Lorislombardi avatar Lorislombardi commented on June 1, 2024 1

Yes This solves the problem but it creates another one. when two pods need to access the same PVC and they are not scheduled on the same node, one of the nodes fails to mount the volume

Warning FailedMount 13s kubelet MountVolume.MountDevice failed for volume "pvc-db604a6a-5241-494c-a934-94f7d9077010" : rpc error: code = Internal desc = unable to format and mount device [/dev/sdc] at path [/var/lib/kubelet/plugins/[kubernetes.io/csi/pv/pvc-db604a6a-5241-494c-a934-94f7d9077010/globalmount](https://fra01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkubernetes.io%2Fcsi%2Fpv%2Fpvc-db604a6a-5241-494c-a934-94f7d9077010%2Fglobalmount&data=05%7C01%7C%7C9f8b8e1f8bf044fb64db08da7b6d9ab3%7C06ba9ba160b04c909fe49f3621194d60%7C0%7C0%7C637958007964405507%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nYpjlXFeXg6YFH3dDjfpcJHXmFHQxtDgBN99UMP1%2Fes%3D&reserved=0)] with fs [[rw]] and flags [mount failed: exit status 32 mounting arguments: -t ext4 -o rw,defaults /dev/sdc /var/lib/kubelet/plugins/[kubernetes.io/csi/pv/pvc-db604a6a-5241-494c-a934-94f7d9077010/globalmount](https://fra01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkubernetes.io%2Fcsi%2Fpv%2Fpvc-db604a6a-5241-494c-a934-94f7d9077010%2Fglobalmount&data=05%7C01%7C%7C9f8b8e1f8bf044fb64db08da7b6d9ab3%7C06ba9ba160b04c909fe49f3621194d60%7C0%7C0%7C637958007964405507%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nYpjlXFeXg6YFH3dDjfpcJHXmFHQxtDgBN99UMP1%2Fes%3D&reserved=0) output: mount: /var/lib/kubelet/plugins/[kubernetes.io/csi/pv/pvc-db604a6a-5241-494c-a934-94f7d9077010/globalmount](https://fra01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkubernetes.io%2Fcsi%2Fpv%2Fpvc-db604a6a-5241-494c-a934-94f7d9077010%2Fglobalmount&data=05%7C01%7C%7C9f8b8e1f8bf044fb64db08da7b6d9ab3%7C06ba9ba160b04c909fe49f3621194d60%7C0%7C0%7C637958007964405507%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=nYpjlXFeXg6YFH3dDjfpcJHXmFHQxtDgBN99UMP1%2Fes%3D&reserved=0): mount(2) system call failed: Structure needs cleaning. ]: [%!!(MISSING)!(MISSING)v(MISSING)]

from cloud-director-named-disk-csi-driver.

erdembas avatar erdembas commented on June 1, 2024

The example of the DigitalOcean worked is below.

CleanShot 2022-06-06 at 17 58 27

from cloud-director-named-disk-csi-driver.

erdembas avatar erdembas commented on June 1, 2024

I am solved this problem. Added CSIDriver spec fsGroupPolicy : File

apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
  name: named-disk.csi.cloud-director.vmware.com
spec:
  attachRequired: true
  podInfoOnMount: false
  fsGroupPolicy: File

from cloud-director-named-disk-csi-driver.

autokilla47 avatar autokilla47 commented on June 1, 2024

@Lorislombardi resolved?

from cloud-director-named-disk-csi-driver.

arunmk avatar arunmk commented on June 1, 2024

@Lorislombardi have you used ReadWriteMany as the access mode? We create a shared disk and allow mounts to multiple VMs only in the ReadWriteMany case.

from cloud-director-named-disk-csi-driver.

arunmk avatar arunmk commented on June 1, 2024

@erdembas would dc8f906 have solved your issue?

from cloud-director-named-disk-csi-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.