Skip to main content
Version: 5.11.0

Metaloggers

A metalogger connects to the master and receives a copy of every changelog entry, plus periodic full downloads of the metadata image. Unlike a shadow master, a metalogger does not participate in consensus and can never become the master — it is a pure, independent backup of the cluster metadata.

Run a metalogger on a host separate from the master so a master‑host failure cannot take the backup with it. The basic enablement (install saunafs-metalogger, start the service) is covered in Service configuration; this page details the configuration and how the metalogger feeds recovery.


Configuration (leil-metalogger.cfg)

# /etc/saunafs/leil-metalogger.cfg
MASTER_HOST = 192.168.10.10
MASTER_PORT = 9419
DATA_PATH = /var/lib/saunafs/metalogger
BACK_LOGS = 50
BACK_META_KEEP_PREVIOUS = 3
META_DOWNLOAD_FREQ = 24
OptionMeaningDefault
MASTER_HOSTAddress of the master to back upleil-master
MASTER_PORTMetalogger port on the master (MATOML)9419
DATA_PATHWhere downloaded metadata and changelogs are stored(required)
WORKING_USER / WORKING_GROUPUser/group the service runs as(user required)
BACK_LOGSNumber of changelog files to retain50
BACK_META_KEEP_PREVIOUSPrevious metadata images to keep3
META_DOWNLOAD_FREQHours between full metadata downloads (at most BACK_LOGS/2)24
MASTER_RECONNECTION_DELAYSeconds before retrying a lost master connection30
MASTER_TIMEOUTSeconds before a master connection is considered dead60
TLS_CERT_FILE / TLS_KEY_FILE / TLS_CA_CERT_FILETLS material when the cluster runs with TLS(none)

Reload or restart the service after editing:

sudo systemctl restart saunafs-metalogger

Using a metalogger for recovery

A metalogger's DATA_PATH contains everything needed to rebuild metadata up to the last received changelog entry: the periodic metadata image plus the changelogs since. In a disaster where every master and shadow is lost, that data is copied to a fresh master host and replayed.

The full break‑glass procedure — including the leil-master -a (--auto-recovery) rebuild and consistency verification — is documented in Metadata recovery.

caution

Test metalogger‑based recovery periodically in a non‑production environment. Do not assume recovery works until you have actually performed it end to end.