-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
debian systemd services don't stop volumes and daemons properly #1767
Comments
Seen something like that. It looks like the processes are sent SIGKILL first and not SIGTERM by systemd. Maybe the glusterd.service needs some updates. There is a script /usr/share/glusterfs/scripts/stop-all-gluster-processes.sh that can be used to shutdown gluster. |
Thank you for your contributions. |
Still an issue |
It is intentional to not stop all the processes if Glusterd is Stopped. If Bricks are up then already connected Clients/Mounts continue to work even if Glusterd goes down. Think about restarting a Glusterd to fix an issue or to fix a memory leak, This doesn't mean all the other services should be stopped. For now you can use the script that @jronnblom suggested #1767 (comment) |
@aravindavk The general contract should be that whatever is being brought up by As there currently is nothing implemented for reload for The alternative would be service splitting, either a general |
Thank you for your contributions. |
Still an issue |
Thank you for your contributions. |
Closing this issue as there was no update since my last update on issue. If this is an issue which is still valid, feel free to open it. |
This is still an issue. When a node is shut down or rebooted, the gluster volumes with bricks on the server affected all hang for the 42 seconds default timeout. This is entirely avoidable by killing all gluster processes properly during shutdown. I understand the logic behind the glusterd.service 'restart' but it gets really annoying when all my VMs go unresponsive because an overheat caused a graceful server shutdown. |
Still an issue in |
Got the same issue. On Debian I don't have instances of glusterfsd, only glusterd that spawns multiple processes, which are not killed when glusterd is stopped. It's because of To resolve this issue, I am using the following: /etc/systemd/system/glusterd.service.d/override.conf:
Use Remember what
Either the KillMode should be set to |
Description of problem:
Provided service files for debian packages don't stop all gluster processes when stopped. This causes issues with stopping volumes and leaves zombie processes that have to be killed manually.
I noticed this for the past several versions, but I don't think it was the case for 5.x.
The exact command to reproduce the issue:
Expected results:
systemctl stop glusterd.service
stops all volumes and processes, including bitrot and self-heal. I could also see it make sense to have self-heal and bitrot daemons as separate services, but regardless there should be a way to reliably stop any ststemd-started gluster process via systemctl.- The operating system / glusterfs version:
debian 10 buster / debian 11 bullseye
glusterfs 8.2-1. Also true for 8.0, 8.1, and I think 7.x. It was not the case for 5.x IIRC.
The text was updated successfully, but these errors were encountered: