I'd like to configure exec script on split-brain issue but I can't find proper syntax:
and this configuration is proper (hastctl(8) runs without errors )
But how can I add information about event (split-brain) and resource (myHast)
configuration like:
isn't good:
Code:
resource myHast {
exec /usr/local/sbin/myScript.sh
on server1 {
local /dev/da1
remote server2
}
on server2 {
local /dev/da1
remote server1
}
But how can I add information about event (split-brain) and resource (myHast)
configuration like:
Code:
exec /usr/local/sbin/myScript.sh split-brain hast1
hastctl status myHast give:
Code:
[ERROR] Unable to parse configuration file at line 1 near 'split-brain': syntax error