2.6 KiB
2.6 KiB
title, category, tags, created, modified
| title | category | tags | created | modified | |||||
|---|---|---|---|---|---|---|---|---|---|
| MariaDB Galera + MaxScale | systems |
|
2026-07-24 | 2026-10-04 |
MariaDB Galera + MaxScale
Galera Cluster (3/3 Synced)
| Node | VM | IP | Role |
|---|---|---|---|
| db1 | VM300 (ms-a2-1) | 10.0.30.71 | Slave |
| db2 | VM301 (proxmox3) | 10.0.30.72 | Slave |
| db3 | VM302 (proxmox6) | 10.0.30.73 | Master |
- Root Credentials:
/root/.my.cnfauf VM300 (viaqm guest exec) - 1Password
mariadb-rootItem: PASSWORT IST FALSCH — stimmt nicht mit/root/.my.cnfüberein
MaxScale Proxy (HA)
| Node | VM | IP | Port |
|---|---|---|---|
| MaxScale-01 | VM310 (proxmox1) | 10.0.30.81 | Admin :8989 |
| MaxScale-02 | VM311 (ms-a2-1) | 10.0.30.82 | Standby |
| VIP | — | 10.0.30.70 | :3306 (keepalived) |
- Admin:
admin:mariadbauf :8989
VM Konfiguration
- VM300:
balloon: 0(disabled) — verhindert InnoDB Buffer Pool Swapping - Standard Practice für DB VMs
Fluent Bit
- VM300/301/302 (Galera): Fluent Bit aktiv
- VM310/311 (MaxScale): Fluent Bit aktiv
Bekannte Issues
- 2026-10-04 (GROSSER VORFALL): Ext4-Volume-Label
MARIADB_DATAauf allen 3 Galera-Datadisks verlor sich (Ursache ungeklärt, Symptome ab 04.10. ~07:58 MESZ). fstab montiert perLABEL=MARIADB_DATAmitnofail→ Boot ging durch, aber/var/lib/mysqlblieb LEER → mariadb crashte im Loop (Permission denied auf leeres Dir). Reparatur:e2label <dev> MARIADB_DATAje Disk (VM300 im Gast, VM301/302 offline viarbd map+ mount auf Hypervisor) → Reboot. Pattern: bei leerem /var/lib/mysql trotz intakter fstab IMMERtune2fs -l→ "volume name" prüfen. Galera-Recovery: Bootstrap-Kandidat per gvwmstate/grastate-Mtimes bestimmt (VM301, letzte View 38={301,300}),safe_to_bootstrap: 1offline in grastate geschrieben → 301 startete als PC, 300 jointe sofort, 302 folgte (IST 570871→570923, Delta nur 52 Tx). Ende: 3/3 Synced, MaxScale beide aktiv, VIP offen. - 2026-09-29: VM302 Zombie-State nach Migration (QEMU running, Services tot, QGA down). Behoben via Stop+Start; SST-Rejoin ~2-3min. Siehe
docs/solutions/bug-fixes/2026-09-29-vm302-zombie-postmigration-galera-rejoin.md - QEMU-Cmdline-Falle:
-incoming unix:/run/qemu-server/NNN.migrate -Sbleibt nach Migration im Prozess-String — KEIN Beweis für "paused". Immerqm monitor <vmid> <<< 'info status'prüfen. - HA-Guard:
ha-manager disableexistiert nicht. Bei Resource-Staterequest_stopgehtqm stoptrotzdem durch.
Related Skills
mariadb-galera-cluster-administration(devops)