Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Event(s) not deleted from disk when deleted in Zoneminder #748
When I use a filter to delete multiple or simply delete a single event, the event is removed from the interface only. The event folder is symlinked to a directory on a btrfs mount.
Machine is Debian 7.7 running on XenServer, ZoneMinder 1.28.0
If OPT_FAST_DELETE is enabled under options (the default) then this is by design. You should read the help text concerning this option for a description. The zmaudit daemon will clean up orphans the next time it runs.
Also, you should not symlink the event folder. Instead, follow the instructions in the Wiki if this filesystem is on a local drive: http://www.zoneminder.com/wiki/index.php/Using_a_dedicated_Hard_Drive
Naturally, adjust the parameters to match your filesystem.
I just ran /usr/bin/zmaudit.pl manualy.
According to ZM web interface, the oldest event for camera 8 is 2016-dec-14 th.
According to filesystem ...
546# ls /mnt/Leon_Host_Big2/leon-03/_var_cache_zoneminder/events/8
So I have an event for dec 8th that is out if all ZM dbs. It may never be deleted by any later script.
This is an issue for me; I have writen a script that relies on the filesystem to determine the oldest even of a camera. This kind of error by ZM will produce false resuts for me.
Several cameras have similar residues.