Recovering Elasticsearch or OpenSearch data if PV is deleted

If the data in the Elasticsearch or OpenSearch persistent volume (PV) is deleted by accident, follow this procedure to recover it.

Procedure

  1. Scale down Elasticsearch (or OpenSearch) and Process Federation Server statefulset replicas to 0.
  2. Delete the Elasticsearch persistent volume claims (PVCs).
  3. Scale up the Elasticsearch statefulset replicas to 1.
    New Elasticsearch PVCs and PVs are created automatically, and the Elasticsearch pod starts.
  4. Scale up Process Federation Server statefulset replicas to 1.
    The Process Federation Server pod starts and Process Federation Server can re-index all the data automatically.
  5. Search for any data in the Process Portal dashboard for verification.