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 » Tue Jun 30, 2020 9:42 pm

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 » Thu Jul 02, 2020 3:05 pm

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 :)

burger
Posts: 62
Joined: Mon May 11, 2020 4:32 pm

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

Post by burger » Fri Jul 03, 2020 4:44 am

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://<ipaddress>:554/path output.mp4
from terminal, and run through paths on ispydb or in zm hcl

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 » Fri Jul 03, 2020 2:21 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest