# FreeIPA disaster recovery: restore, replica rebuilds and emergency access testing

Source: https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access
Language: en
Published: 2026-10-17
Updated: 2026-11-23

FreeIPA disaster recovery guide: failure scenarios, restore decision, replica rebuild, emergency access and technical acceptance.

## 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.

[![FreeIPA Web UI after login in the Fedora 44 sudo lab](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)

## Lab Baseline

```text
Domain:        example.test
Realm:         EXAMPLE.TEST
Primary:       ipa01.example.test
Replica:       ipa02.example.test
Client:        client01.example.test
Distribution:  Fedora Linux 44
Goal:          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 |

## First Diagnosis

```bash
for host in ipa01.example.test ipa02.example.test; do
  echo "### $host"
  ssh "$host" 'hostname -f; ipactl status; chronyc tracking || true; df -h / /var; journalctl -p warning -n 50 --no-pager'
done

kinit admin
ipa server-find
ipa topologysegment-find domain
ipa 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.

```bash
# Only after validation and maintenance approval:
ipa server-del ipa02.example.test
ipa server-find
ipa topologysegment-find domain
ipa topologysegment-find ca
```

## Rebuild the Replica

```bash
# On the newly installed Fedora 44 target system:
dnf install -y freeipa-server freeipa-client
ipa-client-install   --domain example.test   --realm EXAMPLE.TEST   --server ipa01.example.test

ipa-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.

```bash
# Isolated or prepared restore target:
ipa-restore /var/lib/ipa/backup/ipa-full-YYYY-MM-DD-HH-MM-SS
ipactl status
kinit admin
ipa config-show
ipa user-find --sizelimit=5
ipa 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 |

## 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.

## Hero image

[![FreeIPA Web UI after login in the Fedora 44 sudo lab](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)

## Author

Mathias Rumbold

## Category

- [Identity & Access](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access?category=identity-access)

## Tags

- [FreeIPA](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access?tags=freeipa)
- [Identity Management](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access?tags=identity-management)
- [Linux](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access?tags=linux)
- [Kerberos](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access?tags=kerberos)
- [Security](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access?tags=security)
- [Red Hat IdM](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access?tags=red-hat-idm)
- [fedora](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access?tags=fedora)

## Need clean identity operations?

ForgeOne supports FreeIPA, Fedora, SSSD, Kerberos, backup, recovery, high availability and technical acceptance.

[Discuss an identity project](https://forgeone.solutions/en/contact)

## Identity Management mit FreeIPA und Keycloak

Die Beiträge bauen praktisch aufeinander auf: Fedora-44-basierter FreeIPA-Server, Linux-Clients, Identity-Lifecycle, Passwort-Richtlinien, HBAC, sudo-Regeln, Kerberos-Keytabs, Updates, Backup, Recovery und Hochverfügbarkeit.

1. [Installing FreeIPA: From the First Server to an Enrolled Linux Client](https://forgeone.solutions/en/tech/install-freeipa)
2. [Connect Linux Clients to FreeIPA: SSSD, Kerberos and Centralized Users](https://forgeone.solutions/en/tech/connect-linux-clients-freeipa-sssd-kerberos-centralized-users)
3. [Managing FreeIPA Users and Groups: Identity Lifecycle in Practice](https://forgeone.solutions/en/tech/managing-freeipa-users-groups-identity-lifecycle-practice)
4. [FreeIPA Password Policies in Practice: Expiration, Lockout and Authentication Behavior](https://forgeone.solutions/en/tech/freeipa-password-policies-expiration-lockout-practice)
5. [FreeIPA HBAC in Practice: Control SSH Access by User, Group and Host](https://forgeone.solutions/en/tech/freeipa-hbac-ssh-access-user-group-host-practice)
6. [FreeIPA sudo rules in practice: delegate commands without root passwords](https://forgeone.solutions/en/tech/freeipa-sudo-rules-command-delegation-practice)
7. [Kerberos service principals and keytabs with FreeIPA in practice](https://forgeone.solutions/en/tech/freeipa-kerberos-service-principals-keytabs-practice)
8. [Updating FreeIPA: package updates, replicas and client compatibility checks](https://forgeone.solutions/en/tech/freeipa-update-package-updates-replicas-client-compatibility)
9. [FreeIPA backup in practice: ipa-backup, certificates, LDAP and recovery windows](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery)
10. [FreeIPA disaster recovery: restore, replica rebuilds and emergency access testing (current part)](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access)
11. [Running FreeIPA highly available: replication, CA roles, DNS and maintenance workflows](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance)
