How specify max disk space used in terms of bytes

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
bughound
Posts: 2
Joined: Tue Jun 30, 2020 9:35 pm

How specify max disk space used in terms of bytes

Post by bughound »

Forgive me if this has already been answered, but I searched high and low and couldn't find it.

I'd like to tell ZM to only use a max of, say 25 GB of disk space for my aggregate unarchived recordings (I am aware of how to do this using disk % filter, but that's not what I am looking for here).

How can I do this?
Roduss
Posts: 5
Joined: Fri Jun 26, 2020 4:14 pm

Re: How specify max disk space used in terms of bytes

Post by Roduss »

Hi !

I've been trying to do this for a few days, what you can do is mount a file and set the size limit of 25 GB : https://askubuntu.com/questions/841282/ ... -directory

Then you have to automatically mount it editing fstab file (look answer from navigaid, it worked for me !)
https://askubuntu.com/questions/54970/h ... -boot-time

When you have this file mounted you can use the % filter more accurately because you will only store your ZM files in it.

Let me know if it solved your problem :)
User avatar
burger
Posts: 390
Joined: Mon May 11, 2020 4:32 pm

Re: How specify max disk space used in terms of bytes

Post by burger »

The only issue would be if the file is in contiguous space (i.e. one big block on the HDD), which would not be ideal if you have a lot of such files.

I think this has been discussed on the forum previously.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
bughound
Posts: 2
Joined: Tue Jun 30, 2020 9:35 pm

Re: How specify max disk space used in terms of bytes

Post by bughound »

Thanks for the replies, greatly appreciated.

Having to manually mount a file of a fixed size seems like more of a workaround to me instead of a feature (currently not provided by ZM).

Time for me to drop a note in the suggestion box :)
Post Reply