glusterfs

gluster (graceful, reliable) services stop

ref/base: https://github.com/gluster/glusterfs/blob/master/extras/stop-all-gluster-processes.sh

also:

killall glusterfs glusterfsd glusterd before issuing shutdown or reboot. If it is a replica or EC volume, ensure that there are no pending heals before bringing down a node. i.e. gluster volume heal volname info should show 0 entries.

https://lists.gluster.org/pipermail/gluster-users/2017-June/031653.html

https://github.com/gluster/glusterfs/issues/1767#issuecomment-731050742

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.

https://github.com/gluster/glusterfs/issues/1767#issuecomment-1575599711

/etc/systemd/system/glusterd.service.d/override.conf
[Service]
KillMode=control-group

Rename a GlusterFS Peer

for H in rbox s8 s9
do
    printf -- "\n-------- $H --------\n"
        ssh -T "$H" bash <<- EOF
            egrep -iR '_old_|[^x]\._new_\.tld' /var/lib/glusterd/ 2>/dev/null
            # find /var/lib/glusterd/ -type f -exec sed -i 's/_old_.tld/x._new_.tld/g' {} \;
        EOF
done
for H in rbox s8 s9
do
    printf -- "\n-------- $H --------\n"
        ssh "$H" bash <<- EOF
            while IFS= read -r -d $'\0' F; do
                mv -v "\$F" "\${F//_old_.tld/x._new_.tld}"
            done < <(find /var/lib/glusterd/ -type f -iname '*_old_*' -print0)
        EOF
done