Backup automatico script del 2026-08-09 07:00
This commit is contained in:
1 parent
7c2efce9df
commit
3a7b867e83
4 files changed
+55
-11
No files matched your search
@@ -1,9 +1,24 @@
|
||||
global_defs {
|
||||
enable_script_security
|
||||
script_user root
|
||||
}
|
||||
|
||||
vrrp_script chk_ha {
|
||||
script "/usr/local/sbin/keepalived-check-ha.sh"
|
||||
interval 5
|
||||
weight -30
|
||||
fall 3
|
||||
rise 2
|
||||
user root
|
||||
}
|
||||
|
||||
vrrp_instance VI_1 {
|
||||
state BACKUP
|
||||
interface eth0
|
||||
virtual_router_id 51
|
||||
priority 100 # 100 = Priorità più bassa (Backup)
|
||||
priority 100
|
||||
advert_int 1
|
||||
preempt_delay 30
|
||||
authentication {
|
||||
auth_type PASS
|
||||
auth_pass @Dedelove1
|
||||
@@ -11,7 +26,10 @@ vrrp_instance VI_1 {
|
||||
virtual_ipaddress {
|
||||
192.168.128.85
|
||||
}
|
||||
notify_master "/home/daniely/rete/scripts/ha-failover.sh assume-tier-a"
|
||||
notify_backup "/home/daniely/rete/scripts/ha-failover.sh release-tier-a"
|
||||
notify_fault "/home/daniely/rete/scripts/ha-failover.sh fault"
|
||||
track_script {
|
||||
chk_ha
|
||||
}
|
||||
notify_master "/usr/local/sbin/keepalived-notify-master.sh"
|
||||
notify_backup "/usr/local/sbin/keepalived-notify-backup.sh"
|
||||
notify_fault "/usr/local/sbin/keepalived-notify-fault.sh"
|
||||
}
|
||||
Reference in new issue
Block a user