olljanat / csi-plugins-for-docker-swarm

MIT License
56 stars 11 forks source link

unclear how to remove volumes after they are in use #8

Open s4ke opened 1 year ago

s4ke commented 1 year ago

To me it's still a bit unclear how to remove a volume after it has been used by a service. I managed to use the volume properly, removed the service, set the availability to drain, and still get this behaviour:

image

s4ke commented 1 year ago

according to https://github.com/moby/moby/blob/master/docs/cluster_volumes.md#taking-cluster-volumes-offline this should work once the volumes are unpublished. But how do they get unpublished from the nodes?

olljanat commented 1 year ago

Not sure why but for some reason there is also force switch on that remove command. So far I have just done clean up by removing whole /var/lib/docker folder because I excepted that some of those issues was related to fact that multiple same plugin was rebuild over and over again. On proper CI it will not be issue.

s4ke commented 1 year ago

The force switch seems to bypass CSI though as it leaves my cloud volumes intact. This behaviour is useful though for example manual resizing.