Recording Errors

Support and queries relating to all previous versions of ZoneMinder
Locked
tim@pcs-alaska.com
Posts: 45
Joined: Fri May 06, 2005 7:30 pm
Location: Kenai, Alaska

Recording Errors

Post by tim@pcs-alaska.com »

I've been running Zone Minder with three cam's running in Moddetect mode 24x7 since May.

Noticed that one of my cams is no longer recording. Disk space looks good:

zoneminder:/home/tim# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 146G 63G 76G 45% /

Here is the output from syslog:

Aug 29 10:40:57 localhost zma_m2[15535]: INF [Warming up]

Aug 29 10:41:02 localhost zma_m2[15535]: ERR [Can't make events/2/66344: Too many links]
Aug 29 10:41:02 localhost zma_m2[15535]: INF [Records: 026 - Starting new event 66344]
Aug 29 10:41:02 localhost zma_m2[15535]: ERR [Can't open events/2/66344/001-capture.jpg: No such file or directory]
Aug 29 10:41:07 localhost zmc_m2[15501]: WAR [Buffer overrun at index 4 ]
Tim Jordan
ZoneMinder 1.22
Debian Sarge
P4 1.7Ghz, 512MB, 160GB HD
(3) Panisonic KX-HCM10 Network Cameras
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Go in and check the in the events folder and follow the paths for that cam. Watch the sysmlinks and I bet you'll find one that is pointing back to another link.
You should have events/2/66344 as real folders,
and symlinks corisponding to the camera names pointing to the camera ID (eg. 2)
Once this is corrected it should work.
Regards,
Cordel
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I suspect that this problem is related to the number of files allowed in a directory. Nornal ext2 filesuystem only allow 32k odd of files in a directory. I notice you are up to event 66k. Do you still have all the old events still stored in there?

Phil
Ruler
Posts: 235
Joined: Mon Nov 08, 2004 9:02 pm
Location: Bay City, MI

Post by Ruler »

Along the same line of thought that Phil is thinking, what file system type is on this partition?
tim@pcs-alaska.com
Posts: 45
Joined: Fri May 06, 2005 7:30 pm
Location: Kenai, Alaska

Post by tim@pcs-alaska.com »

It was the file system limitation. I moved the 2 directory to a backups archive and restarted Zone Minder in Modect mode. Camera is capturing again.

I'm 99% confident I set it up with Ext3 file system. What command could I use to verify that?

Tim
Tim Jordan
ZoneMinder 1.22
Debian Sarge
P4 1.7Ghz, 512MB, 160GB HD
(3) Panisonic KX-HCM10 Network Cameras
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If you just type 'mount' it should tell you.

It's not so much the filesystem type that might be the issue, more the way the filesystem is configured. When you build an fs you can specify whether you expect it to have lots of small files, or fewer large files etc. Generally the default is fine for most circumstances but I think the limit is for about 32k files/directories in a directory. It may be possible to modify this with tune2fs but I can't remember for sure.

Phil
tim@pcs-alaska.com
Posts: 45
Joined: Fri May 06, 2005 7:30 pm
Location: Kenai, Alaska

Post by tim@pcs-alaska.com »

zoneminder wrote:If you just type 'mount' it should tell you.
#mount
/dev/hda3 on / type ext3 (rw,errors=remount-ro)
zoneminder wrote: It's not so much the filesystem type that might be the issue, more the way the filesystem is configured. When you build an fs you can specify whether you expect it to have lots of small files, or fewer large files etc. Generally the default is fine for most circumstances but I think the limit is for about 32k files/directories in a directory. It may be possible to modify this with tune2fs but I can't remember for sure.

Phil
zoneminder:/Backups/2# ls -l
total 484
drwxr-xr-x 32000 tim root 491520 2005-08-02 16:01 2

Thanks for the lesson Phil.
Tim :D
Tim Jordan
ZoneMinder 1.22
Debian Sarge
P4 1.7Ghz, 512MB, 160GB HD
(3) Panisonic KX-HCM10 Network Cameras
Locked