Changing the events storage directory

Forum for questions and support relating to the 1.25.x releases only.
Locked
iitywygms
Posts: 123
Joined: Thu Nov 08, 2012 5:19 am

Changing the events storage directory

Post by iitywygms »

Hi All. again.

I am trying to change the storage directory for events.
I have a seperate drive I want to use. Path is /D3/events.

I have tried just changing it in the options area of zonemind but that did not work.
I read somewhere to make a symlink.
So I created a symlink from the default events directory to the new one but that did not work either.
this is the error I get.
Can't open /usr/share/zoneminder//D3/events/1/12/11/15/19/23/07/001-capture.jpg: No such file or directory

What is the correct way to change the events storage directory to a different hard drive?

Thanks to all.
Last edited by iitywygms on Fri Nov 16, 2012 4:48 am, edited 1 time in total.
gmar_87
Posts: 72
Joined: Sat Aug 13, 2011 11:38 pm
Location: Melbourne, Australia

Re: Changing the events storage directory

Post by gmar_87 »

iitywygms
Posts: 123
Joined: Thu Nov 08, 2012 5:19 am

Re: Changing the events storage directory

Post by iitywygms »

Thank you. I read that page. And tried the link method

ln -s /D3/events /usr/share/zoneminder/events

But when I do, I get these errors
socket_sendto( /tmp/zm/zms-822640s.sock ) failed: No such file or directory /usr/share/zoneminder/includes/functions.php
and
Can't open /usr/share/zoneminder//D3/events/1/12/11/15/20/29/21/001-capture.jpg: No such file or directory

The directory /D3/events does exist, and it has full read write to everyone.

I also updated the options path to /D3/events

Edit.
I wanted to add I also tried the fstab method. I still get the same errors.

Note that if I change to the /D3/events directory in options, the disk space goes from 75% to 1%. So I assume zoneminder is updating the path correctly, but I still get the errors.

Second update.

After rebooting, the errors have gone away, but zoneminder still shows the disk at 75% full. although I am now seeing files being populated in D3/events.
So, I guess it is working? Just zoneminder does not update disk space correctly?
iitywygms
Posts: 123
Joined: Thu Nov 08, 2012 5:19 am

Re: Changing the events storage directory

Post by iitywygms »

Third reboot and zoneminder updated correctly.
Now making the camera move is all that is left.
Locked