Apps snapshots

m9x3mos

Dabbler
Joined
May 13, 2021
Messages
34
Hello All,
I have been using TrueNAS Scale for a while now with some applications.
I recently started getting errors about too many snapshots.
I ran these commands and I was able to get from over 11,000 snapshots down to 1900 or so.
docker container prune --force --filter "until=24h"
docker image prune --all --force --filter "until=24h"
docker volume prune --force
docker system prune --all --force --volumes

I still have a alert that says this:

WARNING​

Dataset ScalePool/ix-applications/docker/e6305fd7ca0550d7867ee9456065eec0c2cbb698826621bb3387620c66123905 has more snapshots (1345) than recommended (512). Performance or functionality might degrade.​

2022-06-27 15:14:19 (America/New_York)

Any thoughts on how I can fix that?

I also periodically get a different warning that reporting database is over 1 gb in size and not recommended and is currently at 2.1 gb or similar.
Not sure if anyone has seen that so far.
 

somewhatdamaged

Dabbler
Joined
Sep 5, 2015
Messages
49
Be careful trimming snapshots, its caused problems with apps for some

But yeah, this snapshot issue is a huge problem imo.
 

m9x3mos

Dabbler
Joined
May 13, 2021
Messages
34
Yeah, I was concerned it might break things.
I haven't tested them all yet but had most of them stopped because I was having so much performance issues with it that were not there when I first set everything up.
It does seem to be responding much faster now and my idle CPU usage is much lower.
 

somewhatdamaged

Dabbler
Joined
Sep 5, 2015
Messages
49
I would reboot and make sure it comes back up OK...
 

m9x3mos

Dabbler
Joined
May 13, 2021
Messages
34
So far so good.
Rebooted and netdata, traefik, and vaultwarden all started up okay.
haven't started guacamole, plex, or syncthing yet.
Started a few servers on it I need for work that are disk heavy so going to wait for that to finish before I try to start them up.
 

m9x3mos

Dabbler
Joined
May 13, 2021
Messages
34
After running those commands and a reboot, I can confirm everything started back up okay.
traefik
vaultwarden
plex
netdata
syncthing
all started back up with no problems, started faster, and are more responsive.
Even the UI is much more responsive now.
Sitting at 714 snapshots now down from almost 12000
I did need to manually delete a bunch labeled as ScalePool/ix-applications/docker/e6305fd7ca0550d7867ee9456065eec0c2cbb698826621bb3387620c66123905
and still have 76 of those I can't delete due to dependent child sets, but that was done in the UI not a script.
I want to see if I can try and script that so it also stays under control
 

somewhatdamaged

Dabbler
Joined
Sep 5, 2015
Messages
49
Top man, i'll give it a go then. There definitely needs to be some auto trimming in TrueNAS Scale for this though, it's a big problem that shouldn't need regular running of commands just to keep the system running properly
 
Top