Overview
Part 10 deliberately distinguishes restore from replica rebuild. Not every FreeIPA outage requires a backup restore. Sometimes it is safer to remove a broken replica from topology and rebuild it cleanly.
Lab Baseline
Domain: example.testRealm: EXAMPLE.TESTPrimary: ipa01.example.testReplica: ipa02.example.testClient: client01.example.testDistribution: Fedora Linux 44Goal: production-like FreeIPA operations without using real customer domains
Decision Tree
| Situation | Useful reaction | Why |
|---|---|---|
| A client cannot log in | Check client, DNS, SSSD and time | server restore would be excessive |
| One replica is broken, primary is healthy | remove and rebuild replica | cleaner than restoring an inconsistent replica |
| Primary lost, replica healthy | check roles, make replica operational core if needed | data still exists in the topology |
| All servers lost | restore from tested backup | no living replication partner remains |
| CA role affected | check CA roles and certificate chain separately | identity may later fail without CA |
A client cannot log in
- Useful reaction
- Check client, DNS, SSSD and time
- Why
- server restore would be excessive
One replica is broken, primary is healthy
- Useful reaction
- remove and rebuild replica
- Why
- cleaner than restoring an inconsistent replica
Primary lost, replica healthy
- Useful reaction
- check roles, make replica operational core if needed
- Why
- data still exists in the topology
All servers lost
- Useful reaction
- restore from tested backup
- Why
- no living replication partner remains
CA role affected
- Useful reaction
- check CA roles and certificate chain separately
- Why
- identity may later fail without CA
First Diagnosis
for host in ipa01.example.test ipa02.example.test; doecho "### $host"ssh "$host" 'hostname -f; ipactl status; chronyc tracking || true; df -h / /var; journalctl -p warning -n 50 --no-pager'donekinit adminipa server-findipa topologysegment-find domainipa topologysegment-find ca
Remove a Broken Replica
If a replica is no longer trustworthy, do not half-repair and keep running it. The topology must stay consistent.
# Only after validation and maintenance approval:ipa server-del ipa02.example.testipa server-findipa topologysegment-find domainipa topologysegment-find ca
Rebuild the Replica
# On the newly installed Fedora 44 target system:dnf install -y freeipa-server freeipa-clientipa-client-install --domain example.test --realm EXAMPLE.TEST --server ipa01.example.testipa-replica-install --server ipa01.example.test --setup-ca
Restore from Backup
Restore is the path when no reliable replication source remains or the documented restore test says so. Restore commands belong in a runbook, not in improvised emergency chat.
# Isolated or prepared restore target:ipa-restore /var/lib/ipa/backup/ipa-full-YYYY-MM-DD-HH-MM-SSipactl statuskinit adminipa config-showipa user-find --sizelimit=5ipa host-find --sizelimit=5
Test Emergency Access
An identity outage must not mean that nobody can administer systems anymore. Break-glass accounts, local root paths, SSH access and documentation must be defined upfront.
Local console access to FreeIPA servers exists.
Break-glass procedure is documented and tightly protected.
Backup access does not depend on the broken identity system.
DNS and NTP baseline services are reachable in emergencies.
Communication path for maintenance approval is clear.
Result Check
| Area | Check | Result |
|---|---|---|
| Diagnosis | server/client/replication failure isolated | PASS required |
| Topology | server-find and topologysegment-find plausible | PASS required |
| Replica | broken replica removed or rebuilt | PASS required |
| Restore | ipa-restore only by runbook/test path | PASS required |
| Login | kinit and client login successful | PASS required |
| Policy | HBAC/sudo/keytab spot check successful | PASS required |
Diagnosis
- Check
- server/client/replication failure isolated
- Result
- PASS required
Topology
- Check
- server-find and topologysegment-find plausible
- Result
- PASS required
Replica
- Check
- broken replica removed or rebuilt
- Result
- PASS required
Restore
- Check
- ipa-restore only by runbook/test path
- Result
- PASS required
Login
- Check
- kinit and client login successful
- Result
- PASS required
Policy
- Check
- HBAC/sudo/keytab spot check successful
- Result
- PASS required
Do Not Skip This
Do not answer every failure with restore.
Remove broken replicas only after topology validation.
Test break-glass access before the emergency.
After restore or replica rebuild, validate real logins and policies.



