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

Failed to mount XFS volume + its restored snapshot to the same node #954

Closed
jsafrane opened this issue Jul 30, 2021 · 2 comments · Fixed by #955
Closed

Failed to mount XFS volume + its restored snapshot to the same node #954

jsafrane opened this issue Jul 30, 2021 · 2 comments · Fixed by #955
Assignees

Comments

@jsafrane
Copy link
Contributor

What happened:
When a XFS volume + its restored snapshot are NodeStaged to a single node, mount of the second volume fails with:

  Warning  FailedMount             3s (x4 over 9s)  kubelet                  MountVolume.MountDevice failed for volume "pvc-95794d96-69b5-4fa8-8db9-51db152fa1aa" : rpc error: code = Internal desc = could not format "/dev/disk/azure/scsi1/lun1"(lun: "1"), and mount it at "/var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-95794d96-69b5-4fa8-8db9-51db152fa1aa/globalmount"

What you expected to happen:
Both volumes are mounted

How to reproduce it:

  1. Create XFS volume and use it in a Pod.
  2. Take its snapshot.
  3. Restore the snapshot as a separate PV/PVC.
  4. Use the snapshot restored PVC in another pod. Make sure it's scheduled to the same node as the pod from step 1. (which is still running)

-> See the mount error.

Anything else we need to know?:
XFS does not allow to mount two block devices with the same filesystem UUID - the original + restored snapshot in this case.
Ext4 works without any issues.

Environment:

  • CSI Driver version: 1.3.0, but it should be reproducible with master too
@jsafrane
Copy link
Contributor Author

/assign

@jsafrane
Copy link
Contributor Author

CSI driver logs:

E0730 13:24:37.991215       1 mount_linux.go:175] Mount failed: exit status 32
Mounting command: mount
Mounting arguments: -t xfs -o defaults /dev/disk/azure/scsi1/lun1 /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-95794d96-69b5-4fa8-8db9-51db152fa1aa/globalmount
Output: mount: /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-95794d96-69b5-4fa8-8db9-51db152fa1aa/globalmount: wrong fs type, bad option, bad superblock on /dev/sdd, missing codepage or helper program, or other error.

Kernel log on the node:

[ 1107.755237] XFS (sdd): Filesystem has duplicate UUID 28eeacec-3fe2-49a0-bd60-be367dd6829c - can't mount

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant