Add a drive to store the images?

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
jjleprikon
Posts: 13
Joined: Sat Sep 02, 2006 8:54 pm
Location: CA, USA

Add a drive to store the images?

Post 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!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
Sika
Posts: 29
Joined: Mon Feb 06, 2006 8:21 am
Location: New Zealand

Post by Sika »

Post Reply