Database Cleanup?
Posted: Wed Feb 14, 2024 7:59 pm
I installed and used a very old ZoneMinder box. When it died last year, I installed 1.36.33 on a newer system. Unfortunately, I ran into an issue where the ]inode table got full (viewtopic.php?t=33019) and ZM was complaining the disk was full even though there was over 700 gig of space left. After getting input here & doing research elsewhere, I stopped the zoneminder service, backed up the directory except for the events/#/* directories, unmounted the file system, created a new ext4 file system with 2.5x the number of inodes the prior one had, adjusted fstab to mount it by device ID rather than UUID, mounted it, restored the backup, and finally started the zoneminder service. ZoneMinder appears to be recording again & hopefully this will be the end of the issue with the inodes running out.
Unfortunately, all of the old events (none of which exist on disk anymore) are still being shown in the ZoneMinder GUI. The ancient version I was using would clean up the database on it's own if an event was removed from disk, but this does not appear to be happening in the new version. Is there a way to trigger this to happen or do I need to go mucking around in the database, using SQL to erase the events in it directly?
Unfortunately, all of the old events (none of which exist on disk anymore) are still being shown in the ZoneMinder GUI. The ancient version I was using would clean up the database on it's own if an event was removed from disk, but this does not appear to be happening in the new version. Is there a way to trigger this to happen or do I need to go mucking around in the database, using SQL to erase the events in it directly?