adamant-kite-43734
11/27/2024, 9:55 AMbillowy-computer-46613
11/27/2024, 9:57 AMsqlite state.db <<< ".tables"
Unable to open database "state.db": file is encrypted or is not a database
billowy-computer-46613
11/27/2024, 9:59 AMIn addition to backing up the datastore itself, you must also back up the server token file at /var/lib/rancher/k3s/server/token
billowy-computer-46613
11/27/2024, 9:59 AMbillowy-computer-46613
11/27/2024, 12:39 PMsqlite3 state.db <<< ".tables"
kine
sticky-summer-13450
11/27/2024, 2:27 PMbillowy-computer-46613
11/27/2024, 2:43 PMkubectl get-all | wc -l
2291
billowy-computer-46613
11/27/2024, 2:43 PMsticky-summer-13450
11/27/2024, 3:04 PM-rw-r--r-- 1 root root 7.1G Nov 27 14:28 state.db
-rw-r--r-- 1 root root 170M Nov 27 14:28 state.db-shm
-rw-r--r-- 1 root root 86G Nov 27 14:28 state.db-wal
(I think the .db-wal
should be rolled into the .db
file at some time - but I don't know when sqlite3 will do that.)
So, perhaps 21GB isn't that large when compared to closer to 100GB.
I haven't investigated what resources are hanging around, that might be a fun exercise. I had loads of jobs which failed due to the far end resources going away, so I had to kill lots of stuck which may have resulted in finalisers hanging around 🤷