[ClusterLabs] Antw: Re: Antw: [EXT] The 2 servers of the cluster randomly reboot almost together

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Fri Feb 18 02:07:23 EST 2022


>>> Sebastien BASTARD <sebastien at domalys.com> schrieb am 17.02.2022 um 16:28 in
Nachricht
<CAAjZqdz9a2OorPyoSjdRFWNgJT5snOH2KehkpXdEbAuZrWOvEw at mail.gmail.com>:
> Thank you Ulrich for your script !
> 
> I launched it, with 10 seconds delay :
> 
>    - on Server A, to ping Server B
>    - on Server B, to ping server A
>    - on QDevice, to ping server A and Server B
> 
> I currently can't ping Qdevice from server A and B, because it is behind a
> firewall which only authorizes port 5403.
> 
> Tomorrow, I will see the results.

Maybe another remark: The script was not desoigned for cluster, so it was good enough to reditrect the output of the script to a file.
However bash may buffer some lines before they are written. If the script is killed, that's not a problem, but if the node is fenced, you might loose the last lines(s).
So maybe you want do change the echo statement in log_time() to:
echo "$@ $t ($(date -d@"$t" -u +%F_%T))" >> your_log_file

Maybe you want to use a variable or parameter for that.

Regards,
Ulrich




More information about the Users mailing list