Reinitialize a replica
If puppet infrastructure status shows errors on your
replica after provisioning, you can reinitialize the replica. Reinitializing destroys and
re-creates replica databases, except for PuppetDB. This
process is usually quick because non-PuppetDB databases are
relatively small.
Before you begin: Your primary server must be fully functional and the replica must be able to
communicate with the primary server.
If you reinitialize a functional enabled replica, the replica is unavailable to serve as backup in a failover during reinitialization.
Reinitialization is not intended to fix slow queries or intermittent failures. Reinitialize your replica only if it’s not operational or if you encounter replication errors on non-PuppetDB databases.
- On the replica, as the root user, run
puppet infrastructure reinitialize replica.- Optionally, you can reinitialize a single database with
puppet infrastructure reinitialize replica --db <DATABASE>, replacing<DATABASE>with one of the following:pe-activitype-classifierpe-orchestratorpe-inventorype-rbac
- Optionally, you can reinitialize a single database with
- Follow prompts to complete the reinitialization. You can use the
–yflag to bypass the prompts.






