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

Remount when connection lost #674

Open
barthofu opened this issue May 15, 2024 · 3 comments
Open

Remount when connection lost #674

barthofu opened this issue May 15, 2024 · 3 comments
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@barthofu
Copy link

Is your feature request related to a problem?/Why is this needed

Hello, i don't really know if it's an intended or normal behavior but each time i'm losing my NFS connection and then get it back up, it won't remount the disks in my pods.

I'm then in the obligation of restarting the pods...

Would it be possible to automate the NFS remount into the pod?

@andyzhangx
Copy link
Member

@barthofu have you tried -o hard mount option?

there is an NFS mount option that you can use to remount the NFS share when the server is unavailable and then recovers. The option is called hard and it makes the NFS client keep retrying the NFS server indefinitely until it becomes available again.

Here's an example command to mount an NFS share with the hard option:

mount -t nfs -o hard <nfs-server>:<nfs-share> <mount-point>

@bogdanpetrea
Copy link

bogdanpetrea commented Jul 18, 2024

I think unless you specify soft, hard is on by default.

Edit: In a much older issue from the kubernetes repo (which I assume is a different implementantion from the csi-driver one), someone mentioned they fixed their problem by using a different NFS server image: kubernetes/kubernetes#75918 (comment)

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

5 participants