Automatic cleanup?

Hi all

I’ve been searching the documentation and the forums for a straight answer, but haven’t been able to find one.

When using the retain policy and the volume is released, is it ever cleaned up automatically after weeks, months or years? Or is it a totally manual process? I do expect the latter, but I would like to know for certain :slight_smile:

Thanks in advance.

When PersistentVolume’s reclaimPolicy is Retain, if you delete the corresponding PersistentVolumeClaim, the corresponding PersistentVolume is not be deleted. Longhorn does not automatically delete the volume after weeks, months, or years unless you manually delete it.

Btw, if you want to protect the data when the whole cluster goes down, you can set a backup target so Longhorn can move the data outside of the cluster to a safe place. When a disaster happens to the cluster, you can quickly restore the data on a different cluster.

1 Like

Thanks! It’s nice to get a confirmation on it, when planning business services and documentation internally.

Thanks :slight_smile:

1 Like