-
Notifications
You must be signed in to change notification settings - Fork 103
What if storage goes down ? #34
Comments
@mlmarius do you have a step by step way to reproduce ? |
I am running this stack on a 2 node swarm:
Then I briefly stop ssh-host and restart it. When ssh-host goes down the volume is unmounted from the containers but when ssh-host comes back up or is reachable again the volume does not reappear on the containers. |
It's quite reasonable to expect a behavior like this. SSH doesn't bring the link up automatically again. It would be great if the container would use AutoFS or systemd to bring up the SSHFS connection and restore it on disconnect. |
additionally, consider the |
@vieux where is the |
@alexanderkjeldaas |
Yeah, so far I've gotten the mount to restore on reboots with it.
However I have not tested its resiliency further than that. so YMMV.
|
@victort For perfect resilience against network issues, the container would need to use AutoFS to mount the SSHFS. |
@xelra (or anybody else), I'm in the process of containerizing my stack, and one part of that stack was an autofs ssh mount. Am I going to have to continue to do that on the docker host and bind mount the host mount point into the container, or is there a better way? |
@jamiejackson There's nothing really special about the container. SSHFS will drop its connection and the only way to reliably keep it alive or mount on demand is with AutoFS. I'm not 100% sure what you're asking, but if you're asking whether you should include AutoFS, then the answer is yes. |
Hi.
I am testing the plugin and when the storage provider goes down, the volume inside the docker container disappears but it never reappears if the storage provider comes back up. How can this be handled ?
The text was updated successfully, but these errors were encountered: