gluster / gluster-kubernetes

GlusterFS Native Storage Service for Kubernetes
Apache License 2.0
875 stars 389 forks source link

How to stop/restart heketi/glusterFS pods without losing data #566

Open LazyTuba opened 5 years ago

LazyTuba commented 5 years ago

I find docs on bringing up brand new gluster filesystem. I am looking for guidance on performing routine maintenance without having to wipe block devices and starting over

phlogistonjohn commented 5 years ago

Your best bet is to look at the Red Hat OCS documentation which pretty much uses this same stack: https://access.redhat.com/documentation/en-us/red_hat_openshift_container_storage/3.11/html-single/deployment_guide/#part-Upgrade

Generally the rule of thumb is to check that your gluster nodes do not have any outstanding heals. Use the gluster volume heal VOLNAME info command to check for this. If you have no heals you can stop the storage nodes. In addition, heketi has a feature called administrative modes which you can use to prevent heketi from making any additional changes to the system. Run: heketi-cli server mode set read-only before stopping any pods.

I think that the only way to accompish the latter would be with an external gluster and static provisioning. This is not really the topic covered by gluster-kubernetes and heketi and so I can't speak much to that.

LazyTuba commented 5 years ago

phlogistonjohn, Thank you for the pointers.