Page 1 of 1

Add a drive to store the images?

Posted: Tue Dec 19, 2006 3:08 am
by jjleprikon
Hi, I am using the ZoneMinder FC3 Distro v1.21.3. I. I would like to add another hard drive to the machine. I want to keep everything as is except save the images on the new drive. I have found instructions in these threads

http://www.zoneminder.com/forums/viewtopic.php?t=7108
http://www.zoneminder.com/forums/viewtopic.php?t=7123

I have run the yum update command, but got this error - Cannot find a valid baseurl for repo: ctu-updates-released - So if there was an update that affects the solution, I don't have it (there was a note in one of the threads that said there may be such an update).

This is the line I added to /etc/fstab, and the drive contains the directories /zm/events

Code: Select all

/dev/hdc1               /mnt/data               ext3    defaults        0 0:

So the question I guess is: do I add this to the zm-httpd.conf

Code: Select all

Alias /zm/events "/mnt/data/zm/events/" 
<Directory "/mnt/data/zm/events"> 
    Options MultiViews FollowSymLinks Indexes
    AllowOverride All 
    Order allow,deny 
    Allow from all 
</Directory>

or do I follow these instructions
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
Or do I do both?

Thanks in advance!

Posted: Tue Dec 19, 2006 4:13 am
by cordel
You should be able to do either one. The easiest would be to move the events and symlink it.
You might have to go into /etc/httpd/conf.d/zm.conf and make sure apache has permision to follow symlinks.

Posted: Tue Dec 19, 2006 6:16 am
by Sika