I’m looking at v1.9.0 of Longhorn. The version JUS...
# longhorn-storage
l
I’m looking at v1.9.0 of Longhorn. The version JUST released. And the change to the orphan-auto-deleting setting. What if I want to both have Longhorn delete orphan replica-data AND orphaned instances. Will I get that scenario by specifying:
orphanResourceAutoDeletion: instance
in my
Longhorn
settings? Thank you very much
It’s not clear to me by reading the docs.
l
Hi @late-needle-80860, per the documentation the custom resources and the engine both will be deleted by the above setting per the docs here - https://longhorn.io/docs/1.9.0/advanced-resources/data-cleanup/orphaned-instance-cleanup/#orphaned-runtime-instance
Does that help clarify? Or was it something else you were asking?
l
So by setting
orphanResourceAutoDeletion
to
instance
both orphaned Longhorn instances AND orphaned replicas will be deleted
We had the old orphan deletion setting to true before … and I still want the resulting behaviour: replicas deleted. And now that I can get
orphaned instances
deleted - I want that too. How do I achieve this?
?
l
cc: @salmon-doctor-9726
You can use
;
to specify what orphans you want to clean up. cc @billowy-painting-56466 @icy-agency-38675
b
For example, to automatically delete replica data and orphan instance:
replica-data;instance
👍 2
l
Wonderful. Thanks. I’ll try it out. This was certainly not clear from the docs … at least not to me 🤠 😉
But, I see I apparently should’ve read the docs better.
i
Thanks @late-needle-80860 for pointing out what we can improve. Would you like to submit a PR for improving the doc? https://github.com/longhorn/website/tree/master/content/docs/1.10.0/advanced-resources/data-cleanup
🙏 1
l
Yeah seems to work. Thank you very much for the help
🙌 3