Are these the needed changes to set up a new drive for ZM?
Posted: Mon Apr 24, 2006 7:11 pm
Hi!
As the events can need huge storage sizes, to modify the ZM setting to use a dedicated and bigger drive. I looked in the forum for a howto on the needed changes but I did not find it. So here is my partially successfull experience. It may be useful for other newbies like me.
I use ZM over Suse10.0 installed following the howto posted in the forum.
And I have installed a serial hard drive, mounted and poing to a folder. In my case to /SATA1
1) Setting the folders:
I copied all the folder /srv to the new drive under /SATA1, and renamed it as ZM_data.
2) Updating the permissions:
I modified all the folders, subfolders and files permissions following those from the original /srv folder. Most of them as user 'wwwrun' and group 'www'.
3) Updating the web and cgi path, using the linux console:
su -
edit /usr/local/etc/zm.conf
# pressing <insert> you will be able to edit the file
# changed the web and cgi path to:
ZM_PATH_WEB:/SATA1/ZM_data/www/htdocs/
ZM_PATH_WEB:/SATA1/ZM_data/www/cgi-bin/
# press <ESC> then enter the code
:wq
4) Updating the event/images/sounds parth:
in the zoneminder console, selecting 'options', then 'path', I modified the values for ZM_DIR_EVENTS, ZM_DIR_IMAGES, ZM_DIR_SOUNDS to:
/SATA1/ZM_data/www/htdocs/events
/SATA1/ZM_data/www/htdocs/images
/SATA1/ZM_data/www/htdocs/sounds
RESULTS: After saving the changes and restarting zoneminder, the monitors are fine (I can see the caneras's images), the disk % in the zm console is describing correctly the used space of the new drive, motion events are recorded on the new drive perfectly. The information in th database is the same one of the folders in the new drive, where I can open manually the stored jpeg files. But....
PROBLEMS to FIX:
- zones do not show the image, but a blank frame.
- the replay or play does not work. There is a blank frame instead.
It seems like there is another path to be changed to allow the browser to present the streaming but if I change the value for ZM_PATH_ZMS in the options of the ZM console, by /SATA1/ZM_data/www/cgi-bin/ I loose the monitors and there is no more recorded events....
Please, what else I should change to make ZM to store the files in the new drive but without loosing the services?
Maybe I did not used the best way to get this done. Finally I am just a pre-newbie. Is there a better way?
Many thanks for any help on this...
As the events can need huge storage sizes, to modify the ZM setting to use a dedicated and bigger drive. I looked in the forum for a howto on the needed changes but I did not find it. So here is my partially successfull experience. It may be useful for other newbies like me.
I use ZM over Suse10.0 installed following the howto posted in the forum.
And I have installed a serial hard drive, mounted and poing to a folder. In my case to /SATA1
1) Setting the folders:
I copied all the folder /srv to the new drive under /SATA1, and renamed it as ZM_data.
2) Updating the permissions:
I modified all the folders, subfolders and files permissions following those from the original /srv folder. Most of them as user 'wwwrun' and group 'www'.
3) Updating the web and cgi path, using the linux console:
su -
edit /usr/local/etc/zm.conf
# pressing <insert> you will be able to edit the file
# changed the web and cgi path to:
ZM_PATH_WEB:/SATA1/ZM_data/www/htdocs/
ZM_PATH_WEB:/SATA1/ZM_data/www/cgi-bin/
# press <ESC> then enter the code
:wq
4) Updating the event/images/sounds parth:
in the zoneminder console, selecting 'options', then 'path', I modified the values for ZM_DIR_EVENTS, ZM_DIR_IMAGES, ZM_DIR_SOUNDS to:
/SATA1/ZM_data/www/htdocs/events
/SATA1/ZM_data/www/htdocs/images
/SATA1/ZM_data/www/htdocs/sounds
RESULTS: After saving the changes and restarting zoneminder, the monitors are fine (I can see the caneras's images), the disk % in the zm console is describing correctly the used space of the new drive, motion events are recorded on the new drive perfectly. The information in th database is the same one of the folders in the new drive, where I can open manually the stored jpeg files. But....
PROBLEMS to FIX:
- zones do not show the image, but a blank frame.
- the replay or play does not work. There is a blank frame instead.
It seems like there is another path to be changed to allow the browser to present the streaming but if I change the value for ZM_PATH_ZMS in the options of the ZM console, by /SATA1/ZM_data/www/cgi-bin/ I loose the monitors and there is no more recorded events....
Please, what else I should change to make ZM to store the files in the new drive but without loosing the services?
Maybe I did not used the best way to get this done. Finally I am just a pre-newbie. Is there a better way?
Many thanks for any help on this...