Saturday, 16 July 2011

Zoneminder Update on iNodes

Well with only 70% of my diskspace taken up I was getting out of space errors in zoneminder.
Turns out its my iNodes not the physical space on the disk.

If your running out of space with your inodes (like I was) you can setup a nightly deletion of the old files so that problem is nicely automated

pop this into crontab

0 0 * * * find /var/cache/zoneminder/events/ -name "*.jpg" -mtime +5 -exec rm -f {} \;

Change the +5 to be +howeverManyDaysYouWannaKeepYourImagesFor.