Excessive Disk Space

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
pmele57
Posts: 4
Joined: Wed May 13, 2020 1:54 pm

Excessive Disk Space

Post 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 3342 times
Thank you in advance
Attachments
Screen Shot 2021-09-09 at 9.21.30 AM.png
Screen Shot 2021-09-09 at 9.21.30 AM.png (35.74 KiB) Viewed 3342 times
User avatar
Andyrh
Posts: 243
Joined: Sat Oct 28, 2017 3:55 am

Re: Excessive Disk Space

Post 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?
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
User avatar
kitkat
Posts: 193
Joined: Sun Jan 27, 2019 5:17 pm

Re: Excessive Disk Space

Post 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.
parky
Posts: 45
Joined: Sun Aug 28, 2011 8:41 am

Re: Excessive Disk Space

Post 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
pmele57
Posts: 4
Joined: Wed May 13, 2020 1:54 pm

Re: Excessive Disk Space

Post 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 3265 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 3265 times
parky
Posts: 45
Joined: Sun Aug 28, 2011 8:41 am

Re: Excessive Disk Space

Post 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
Post Reply