[Bugs] [Bug 1540249] Gluster is trying to use a port outside documentation and firewalld' s glusterfs.xml

bugzilla at redhat.com bugzilla at redhat.com
Mon Feb 12 09:45:37 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1540249



--- Comment #22 from devianca at gmail.com ---
For faster debugging for all of you, heres the script I'm using to catch it:

[root at ProdigyX ~]# systemctl cat glusterd
# /etc/systemd/system/glusterd.service
[Unit]
Description=GlusterFS, a clustered file-system server
Requires=rpcbind.service
After=network.target rpcbind.service
Before=network-online.target

[Service]
Type=forking
PIDFile=/var/run/glusterd.pid
LimitNOFILE=65536
Environment="LOG_LEVEL=INFO"
EnvironmentFile=-/etc/sysconfig/glusterd
ExecStart=/usr/sbin/glusterd -p /var/run/glusterd.pid  --log-level $LOG_LEVEL
$GLUSTERD_OPTIONS
KillMode=process
SuccessExitStatus=15

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/glusterd.service.d/override.conf
[Unit]
PartOf=array0.mount
Wants=systemd-networkd-wait-online.service
#Wants=gluster.mount
After=array0.mount
After=systemd-networkd-wait-online.service
#Before=gluster.mount
[Service]
ExecStartPost=/usr/bin/bash -c '_ip="10.250.1.2"; while :; do gluster volume
status | grep "$_ip" | grep -q Y && break; sleep 0.5; done; echo "Local brick
online."'
ExecStartPost=/usr/bin/bash /root/glusterd_health
StandardOutput=journal
Restart=on-failure
RestartSec=5s

[root at ProdigyX ~]# cat glusterd_health
#!/bin/bash

echo "DATE: $(date +%G-%m-%d" "%H:%M:%S)" >> /root/glusterd_health.log

log_it() {
        gluster volume status >> /root/glusterd_health.log
        gluster pool list >> /root/glusterd_health.log
        rm -Rf /var/log/glusterfs/*
        sync
}

_ip="10.250.1.1"
_until=$(($(date +%s) + 30))
until [[ "$(date +%s)" -gt "$_until" ]]; do
        gluster pool list | grep "$_ip" | grep -q Connected && log_it && reboot
        sleep 0.5
done

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list