Page 1 of 1

Update Diskspace for events

Posted: Fri Sep 25, 2020 4:44 pm
by Cramac1
Hello.
there are three servers, updated to the latest version. And on one server it stopped updating the size of the recording file.
Where to look?
events.png
events.png (241.45 KiB) Viewed 10596 times

Re: Update Diskspace for events

Posted: Fri Sep 25, 2020 7:30 pm
by iconnor
The logs?

Re: Update Diskspace for events

Posted: Fri Sep 25, 2020 7:43 pm
by Cramac1
the log is empty. Tell me who is responsible for this, otherwise they made edits to the zmaudit and zmfilter

Re: Update Diskspace for events

Posted: Fri Sep 25, 2020 8:41 pm
by Cramac1
update to 1.35.6~20200925151411-bionic

everything is back

Re: Update Diskspace for events

Posted: Thu Oct 01, 2020 1:06 pm
by goatman64
I had a similar problem and updated to the most current 1.35.6 without resolution. I updated to 1.35.7 and still have the same issue. What am I missing here? There are two filters in the standard build ... PurgeWhenFull and UpdateDiskSpace. Why is there a filter to update disk space?
zm-filter-sql.PNG
zm-filter-sql.PNG (4.89 KiB) Viewed 10453 times
From the sql error you can see the where clause isn't correct.

(E.Archived = '0' and >= '95')

It is missing the Diskspace reference

??

Re: Update Diskspace for events

Posted: Fri Oct 02, 2020 1:42 pm
by iconnor
I thought I fixed that several days ago. We are up to 1.35.8 now...

Re: Update Diskspace for events

Posted: Fri Oct 02, 2020 1:54 pm
by goatman64
Will apply 1.35.8 and test.

Thanks

Re: Update Diskspace for events

Posted: Fri Oct 02, 2020 2:02 pm
by goatman64
One more thing .. can you explain the relationship between the disk space metric and the UpdateDiskSpace filter?

Thanks

Re: Update Diskspace for events

Posted: Fri Oct 02, 2020 8:13 pm
by iconnor
The Update Disk Space filter updates the db entry....

It is too resource intensive to constantly query the fs for this, so we do it once in the background.

Re: Update Diskspace for events

Posted: Mon Oct 05, 2020 3:18 am
by goatman64
I jumped to 1.35.9 but continue to see no function from the purge filter. I enabled debug and ran the exposed sql. The events diskspace column is null.

Is it the diskspace filter that is supposed to update this column?

Any help appreciated

Re: Update Diskspace for events

Posted: Wed Oct 07, 2020 2:37 pm
by goatman64
I'm going to jump to Ubuntu 20.04 and redo my zoneminder install. Something is jacked in my filters.

Re: Update Diskspace for events

Posted: Thu Mar 18, 2021 5:36 pm
by martinvandiest
Related?

v1.34.23

I have just resized my storage partition and it is reflected in fdisk but I need to tell zoneminder that the disk space has increased. Zoneminder still shows the pre-rezize value.

How do I get ZM to refresh that value?

Re: Update Diskspace for events

Posted: Mon Mar 22, 2021 8:19 am
by dougmccrary
Rebooting seems to work here.

Re: Update Diskspace for events

Posted: Mon Mar 22, 2021 10:18 pm
by martinvandiest
The partition change wasn't reflected with df, I neglected to resize2fs after rezizepart... that fixed it.