Backup automatico script del 2026-08-09 07:00

This commit is contained in:
daniele committed 2026-08-09 07:00:02 +02:00
1 parent 7c2efce9df
commit 3a7b867e83
4 files changed
+55 -11

No files matched your search

+24 -6
View File
@@ -1,17 +1,35 @@
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 MASTER
state BACKUP
interface eth0
virtual_router_id 51
priority 101 # 101 = Priorità più alta (Master)
priority 101
advert_int 1
preempt_delay 30
authentication {
auth_type PASS
auth_pass @Dedelove1
}
virtual_ipaddress {
192.168.128.85 # Il nostro VIP
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"
}
+22 -4
View File
@@ -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"
}