Page 1 of 1

Excessive Disk Space

Posted: Thu Sep 09, 2021 1:23 pm
by pmele57
I am using Zoneminder 1.34.25. I have 6 cameras recording continuously using Record function.

My storage disk is 3TB:

Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 2.7T 2.3T 294G 89% /media/zm

Each camera is using about 360GB in space holding only 3 hours of video.

Can someone help me figure out why so much space is being used for such a small time frame?
How can I get at least a weeks worth of video for each camera? At this rate I would require more than 20TB.
Screen Shot 2021-09-09 at 9.18.53 AM.png
Screen Shot 2021-09-09 at 9.18.53 AM.png (48.74 KiB) Viewed 3430 times
Thank you in advance

Re: Excessive Disk Space

Posted: Thu Sep 09, 2021 1:52 pm
by Andyrh
Your screenshot does not agree with your statement. The screenshot shows more events for the month than the week indicating you have more than 1 week of events.
Are you saving analysis frames with the video? That does take up more space. (not sure if you can with record)
What is the resolution of the cameras?

Re: Excessive Disk Space

Posted: Thu Sep 09, 2021 2:42 pm
by kitkat
pmele57 wrote: Thu Sep 09, 2021 1:23 pm Can someone help me figure out why so much space is being used for such a small time frame?
135 GB of it may be the OS-reserved space.

By default, ext2/3/4 file systems allocate 5% of the total available blocks as Reserved Blocks. You can find out exactly how many are reserved with

Code: Select all

dumpe2fs -h /dev/sdb1
And you can change the value (in this example to 0.5%) with

Code: Select all

tune2fs -m 0.5 /dev/sb1
Curious... Does the total size on the ZM console page add up correctly (627 GB or so)?

If none of that helps then you may be able to track down where the space is being used with

Code: Select all

du -sh /media/zm/*
and then repeating it with longer paths to narrow things down.

Re: Excessive Disk Space

Posted: Thu Sep 09, 2021 4:23 pm
by parky
At 1.5GB for an hour makes it 250mb per individual video. My setup is recording at 1080p @ 6fps and writes a file of 60mb every 10 minutes

This sounds like you are running your resolution harder than you need to. Most people here say 6-10fps will get you enough detail if it is needed

Re: Excessive Disk Space

Posted: Thu Sep 09, 2021 10:24 pm
by pmele57
I see now that the events were being filtered. You are right, the month events range from 8/29 thru today. Almost 2 weeks worth. Multiplied by 6 cameras and I guess it makes sense now. :oops:

On the console the numbers seem to add up correctly:
Screen Shot 2021-09-09 at 5.50.24 PM.png
Screen Shot 2021-09-09 at 5.50.24 PM.png (60.3 KiB) Viewed 3353 times
Except for one all cameras are under 10 fps.

Resolution runs 640 x 480 except for one at 1280 x 720, 24 bit color, 720p

Saving frames only.
Screen Shot 2021-09-09 at 5.53.13 PM.png
Screen Shot 2021-09-09 at 5.53.13 PM.png (29.69 KiB) Viewed 3353 times

Re: Excessive Disk Space

Posted: Fri Sep 10, 2021 1:17 am
by parky
Resolutions and frame rate looks fine and shouldn't be giving you this issue

On your console view you look to have one monitor that has stopped responding and below it one recording 3gb in an hour

How much is each of those events as that looks like your problem