Adding secondary hard drive
Adding secondary hard drive
I would like to add a secondary drive to my zoneminder machine. Althought I'm a bit of a linux novice I'm sure I will have no problem seeing the drive in FC 4, however, I am bit lost as to what to do after that. What FS will I need on it, partitions etc... I want to have ZM store all of it's images and recordings on the new larger drive, the mysql DB can stay on the original system drive. Is this even possible??
TIA!
TIA!
Yeah it's easy.
As far as FS for the new HD it's your choice. I use RieserFS my self.
You can partition it how ever you want, if yo want to use the whole drive then just one.
After you add it to fstab create a directory structure where you want the events stored.
for example I named my partition /data and put the zm events in /data/zm/events/
Then see this post http://www.zoneminder.com/forums/viewtopic.php?t=7108
Regards,
Corey
As far as FS for the new HD it's your choice. I use RieserFS my self.
You can partition it how ever you want, if yo want to use the whole drive then just one.
After you add it to fstab create a directory structure where you want the events stored.
for example I named my partition /data and put the zm events in /data/zm/events/
Then see this post http://www.zoneminder.com/forums/viewtopic.php?t=7108
Regards,
Corey
Have you checked the error logs?
Check and make sure your web user and group have permissions.
Make sure you didn't change the path in zm path settings (It should be just events) as it wants a path relative to the web root and not the drive path. the conf file you created makes the directory relative to web root.
Regards,
Corey
Check and make sure your web user and group have permissions.
Make sure you didn't change the path in zm path settings (It should be just events) as it wants a path relative to the web root and not the drive path. the conf file you created makes the directory relative to web root.
Regards,
Corey
Just in case here is my zm-http.conf:
Corey
Code: Select all
Alias /zm/events "/data/zm/events/"
<Directory "/data/zm/events">
Options MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
My Bad,
You can't do that with the events directory.
you'll have to move the files to the new directory then link to it.
mv /var/www/html/zm/events /data/zm/events
ln -s /var/www/html/zm/events /data/zm/events
I forgot that I had added a mod in mine so that I could put the events path separate
so it's a bit more involved. I might add it to the rpm later down the road.
Sorry,
Corey
[edit]
Fix above paths
You can't do that with the events directory.
you'll have to move the files to the new directory then link to it.
mv /var/www/html/zm/events /data/zm/events
ln -s /var/www/html/zm/events /data/zm/events
I forgot that I had added a mod in mine so that I could put the events path separate
so it's a bit more involved. I might add it to the rpm later down the road.
Sorry,
Corey
[edit]
Fix above paths
Last edited by cordel on Sat Nov 04, 2006 8:21 am, edited 1 time in total.