kubernetes-csi/csi-driver-nfs

Pod usage error after pvc mounting

HuangTD1 opened this issue · 2 comments

What happened:
image

What you expected to happen:
As a result, the mariadb data cannot be initialized and errors are reported. Several attempts have failed. However, when kubectl exec is used to enter the mount directory, it is readable and writable, but it is difficult to initialize the mariadb service. The nfs server I gave is rw permissions.

[17:11:59] root:csi-driver-nfs git:(f3a7c1f*) # cat /etc/exports
/repo *(rw,no_root_squash,no_all_squash,sync)

storageclass
image

How to reproduce it:

Anything else we need to know?:

Environment:

  • CSI Driver version: 4.6.0
  • Kubernetes version (use kubectl version): k3s 1.25.7
  • OS (e.g. from /etc/os-release): Centos 8.3
  • Kernel (e.g. uname -a): 5.10.167
  • Install tools: nfs
  • Others:

@HuangTD1 I don't think this is related to this driver since the error msg means the path is also used by other process.

@HuangTD1 how did you resolve this issue?