MariaDB Galera recovery

Galera recovery must choose one authoritative component before any node is bootstrapped to accept writes.

Network partition, simultaneous shutdown, failed SST, or storage trouble can leave nodes non-Primary or holding different replication positions. Bootstrapping both sides creates independent writable histories that cannot be merged automatically.

Understand the symptom

Galera quorum selects a Primary Component; sequence positions and safe_to_bootstrap guide full-cluster recovery.

WHY

What is happening

The most advanced consistent node is not always the one with the newest wall-clock timestamp. Recovery compares UUID and sequence state, transaction evidence, storage health, and application requirements before choosing a single source for IST or SST.

What you may see

Symptoms that change the recovery path.

01

Nodes show non-Primary

No component has the voting majority required for writes.

02

All nodes stopped unexpectedly

The cluster needs an authoritative bootstrap node.

03

safe_to_bootstrap is zero

No node is automatically confirmed as the last clean shutdown.

04

SST failed and joiner aborted

The receiving node may be incomplete and unusable.

Protect the source

Actions that can make the situation worse.

01

Dual bootstrap creates divergent clusters

Both sides can accept conflicting writes.

02

SST overwrites the joiner

Unique transactions on that node can be destroyed.

03

Deleting gcache removes IST history

A full transfer may become necessary and evidence is lost.

Do this now

Safe steps before evaluation.

01

Block application writes

Fence all nodes and clients until one component is selected.

02

Capture every wsrep state

Save status, UUID, sequence, safe flag, logs, and shutdown order.

03

Copy each data directory

Preserve donor, joiner, gcache, binlogs, and keys before bootstrap.

04

Map business transactions

Use application logs to identify required commits and possible divergence.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Node-state comparison

NEPFOSYS aligns Galera positions, logs, storage health, and transaction evidence.

02

Authoritative-copy protection

Every plausible node is preserved before selecting one source.

03

Cluster and data validation

Recovered tables and transactions are checked before replicas rejoin.

A clear next step

Preserve the original device before another repair or recovery attempt.

Start a case with the exact symptoms, incident timeline, prior attempts, encryption details, and the files that matter most. NEPFOSYS will route the case to the appropriate DFW intake or nationwide mail-in path.

Start with a case review

Questions, answered

What customers ask before starting.

What is safe_to_bootstrap?

It marks the node considered safe to start a new Primary Component after an orderly shutdown.

Can I bootstrap both partitions?

No. MariaDB warns that this creates two active clusters with diverging data.

Does SST merge two node histories?

No. SST replaces the joiner's state with the donor's full copy.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case