[slurm-users] primary_database_failure event does not triggered.
fj2770fj at fujitsu.com
fj2770fj at fujitsu.com
Tue Dec 24 06:02:42 UTC 2019
Hi, All
I checked primary_database_failure as follows but it was not triggered.
Is the primary_database_failure event not working in version 18.08.6?
[root at ohpc137pbsop-sms ~]# sbatch --version
slurm 18.08.6
[root at ohpc137pbsop-sms ~]#
[root at ohpc137pbsop-sms ~]# cat /usr/sbin/primary_database_failure
#!/bin/bash
# Submit trigger for next event
strigger --set --primary_slurmctld_failure --program=/usr/sbin/primary_database_failure
echo "[event trigger] primary database failure event trigger run." >> /tmp/slurmdbd.log
[root at ohpc137pbsop-sms ~]#
[root at ohpc137pbsop-sms ~]# chmod +x /usr/sbin/primary_database_failure
[root at ohpc137pbsop-sms ~]# strigger --get
TRIG_ID RES_TYPE RES_ID TYPE OFFSET USER FLAGS PROGRAM
13 database * primary_database_failure 0 root /usr/sbin/primary_database_failure
[root at ohpc137pbsop-sms ~]#
[root at ohpc137pbsop-sms ~]# ps -eaf |grep slurmdbd
slurm 27535 1 0 10:41 ? 00:00:00 /usr/sbin/slurmdbd
root 60021 18909 0 14:58 pts/0 00:00:00 grep --color=auto slurmdbd
[root at ohpc137pbsop-sms ~]# kill -9 27535
[root at ohpc137pbsop-sms ~]# ls /tmp/slurmdbd.log
ls: cannot access /tmp/slurmdbd.log: No such file or directory
[root at ohpc137pbsop-sms ~]#
Regards,
Tomo
More information about the slurm-users
mailing list