Replies: 1 comment
-
If I understand correctly, you performed a microk8s operation that resulted in some microk8s data that's stored on dqlite being deleted from the database, and you want to recover it. Effectively, you want to roll the dqlite database back to its state just before you deleted the data. Is that about right? dqlite doesn't have such a rollback function built in, so this is going to be a fairly manual process. The first thing I would do is to try to figure out whether either of the two snapshots that you see in that
(or pick the other matched pair of snapshot files). Don't just destroy the other files obviously, make a copy of the data directory first. I don't know whether you're running a HA configuration (multiple nodes), but if so it would be good to see the listing of files on those nodes as well. Otherwise, you should be able to start microk8s normally on the single node with this modified data directory and query it to see whether the CRD is there. If so, you can copy it somehow, then go back to the pristine data directory and re-add it to your running cluster. If not, please report back and I can help you look elsewhere for the missing data. |
Beta Was this translation helpful? Give feedback.
-
Hi !
I have accidentally removed some CRD on my dev cluster .. looks like dqlite is snapshotting data, how is it possible to recover from a previous state ?
Beta Was this translation helpful? Give feedback.
All reactions