Recovery after rm -rf /var/lib/postgresql/data/pgdata #4344
-
Hi! apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: cluster-example
spec:
instances: 3
storage:
size: 1Gi I ran |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, this is a known behavior and it should be addressed as part of a broader initiative of when a PVC group (how we define a set of volumes in CNPG) is not available anymore for any reason. Superuser escalation is an example (BTW, by default superuser access is not allowed in CNPG). But another one could be an unrepairable failure on a node when you use local disks. This issue is somehow related to the work we started with #2570, and it will involve determining a time-based value of an instance not being ready after which we give CNPG the permission to delete a PVC Group. However, this is a feature in the self-healing area that requires a lot of thought and care. What you need to do now is destroy the PVC. You can also use the |
Beta Was this translation helpful? Give feedback.
Hi, this is a known behavior and it should be addressed as part of a broader initiative of when a PVC group (how we define a set of volumes in CNPG) is not available anymore for any reason. Superuser escalation is an example (BTW, by default superuser access is not allowed in CNPG). But another one could be an unrepairable failure on a node when you use local disks.
This issue is somehow related to the work we started with #2570, and it will involve determining a time-based value of an instance not being ready after which we give CNPG the permission to delete a PVC Group. However, this is a feature in the self-healing area that requires a lot of thought and care.
What you need to do now i…