Stato
Il sottocomando status viene utilizzato per verificare se la replica è ancora sincronizzata e chi è il primario:
/opt/eranger/bin/eranger-server-replication.pl help status
Usage:
/opt/eranger/bin/eranger-server-replication.pl status [outfile]
# with optional argument outfile: to be used in crontab
# exit status 0 if replication is ok
# 1 if replication is down
# 2 if replication is not configured
# 3 for any other error
Tipico output sul server primario (10.1.0.88 è il primario corrente):
# eranger-server-replication.pl status 10.1.0.88 10.1.0.88 checking ssh for user reranger # Tue Jan 9 13:21:04 2018 # Status is OK, if there is at least one slave, FAILED otherwise # Legend: 'Slave: <seconds-last-read> (<ip>)' # slaves: 1 Status: OK Slave: 0 (10.1.0.89)
Tipico output sul server standby (10.1.0.88 è il primario corrente):
10.1.0.89 10.1.0.89 checking ssh for user reranger 10.1.0.88 is running Last read on master(10.1.0.88) 0 seconds ago