Moving Events To New Storage Kills The Event
Posted: Mon Jun 17, 2019 7:18 pm
So I have 1TB NFS mount that my 2 ZM servers use to store their events into. I then setup a GDrive mount that I'm using mergerfs to setup so that I can have things written to the local disk then I have a cron at night that moves the files off to the cloud. The mergerfs just makes this bit seamless to anything that is currently accessing the files.
The problem I'm having right now is this. I setup a filter that will move anything that I mark as archived. So right now the cloud bit isn't even a thought this is all taking place locally. So I have my 2 storage areas setup:
/srv/zoneminder/events (NFS)
/srv/longterm (this is the mergerfs)
So I go into ZM and mark an event as archived. Then I have a filter that moves all archived events from the current storage area to the new one.
Once the filter runs and moves these events to the /srv/longterm storage location and I can confirm that they are moved there because they show up with their events. I can no longer view the event in zm. I don't see anything logged in the logs about it, other than some entries talking about the file was already moved by someone else. The event then shows up in ZM with a 0B disk size and then my filter that removes those events runs and deletes it forever from the system. I'm trying to understand why when the event is moved it fails. I have everything mounted and running under apache so I know its not a permissions issue.
My 2 systems are both CentOS 7 VMs with identical configurations.
Thank you all for your assistance with this in advance.
The problem I'm having right now is this. I setup a filter that will move anything that I mark as archived. So right now the cloud bit isn't even a thought this is all taking place locally. So I have my 2 storage areas setup:
/srv/zoneminder/events (NFS)
/srv/longterm (this is the mergerfs)
So I go into ZM and mark an event as archived. Then I have a filter that moves all archived events from the current storage area to the new one.
Once the filter runs and moves these events to the /srv/longterm storage location and I can confirm that they are moved there because they show up with their events. I can no longer view the event in zm. I don't see anything logged in the logs about it, other than some entries talking about the file was already moved by someone else. The event then shows up in ZM with a 0B disk size and then my filter that removes those events runs and deletes it forever from the system. I'm trying to understand why when the event is moved it fails. I have everything mounted and running under apache so I know its not a permissions issue.
My 2 systems are both CentOS 7 VMs with identical configurations.
Thank you all for your assistance with this in advance.