Hi,
I am trying to move my image and events folder to my new hdd. But nothing that i have read tells me anything about the links over in usr/share/zoneminder/www It appears ZM cannot work without them. I can change the paths under options>paths but ZM only sees the drive and does not function as it should. Not recording events and changing the color of the ip to red.
I am using Fedora 16 my hdd is mounted under /var/lib/zoneminder/zm_1tb.
The links are over in /usr/share/zoneminder/www
The files events and images are in /var/lib/zoneminder
Any help would be appriceated
Thanks!
Adding new hdd not so simple.
Adding new hdd not so simple.
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
N4ZPO (ham Radio)
Re: Adding new hdd not so simple.
Hi,
I have been wrestling with this problem for a week or so and am no further along than i was at the beginning. I with the help of others have changed links, modified the fstab file and other related things. Bit still no results.
Can someone tell me how ZM on Fedora 16 determins disk size and if anyone has experience how to move the files events and Images to a HDD mounted at /var/lib/zoneminder/zm_1tb
Thanks for any help.
I have been wrestling with this problem for a week or so and am no further along than i was at the beginning. I with the help of others have changed links, modified the fstab file and other related things. Bit still no results.
Can someone tell me how ZM on Fedora 16 determins disk size and if anyone has experience how to move the files events and Images to a HDD mounted at /var/lib/zoneminder/zm_1tb
Thanks for any help.
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
N4ZPO (ham Radio)
Re: Adding new hdd not so simple.
This is what I did for debian (no events yet, I moved the directories before set the modect mode!)
* mount external drive to store events
mkdir /zmdisk
mount /dev/sdc1 /zmdisk
mkdir /zmdisk/events /zmdisk/images /zmdisk/temp
rm -rf /usr/share/zoneminder/events
rm -rf /usr/share/zoneminder/images
rm -rf /usr/share/zoneminder/temp
ln -s /zmdisk/events /usr/share/zoneminder/events
ln -s /zmdisk/images /usr/share/zoneminder/images
ln -s /zmdisk/temp /usr/share/zoneminder/temp
* mount external drive to store events
mkdir /zmdisk
mount /dev/sdc1 /zmdisk
mkdir /zmdisk/events /zmdisk/images /zmdisk/temp
rm -rf /usr/share/zoneminder/events
rm -rf /usr/share/zoneminder/images
rm -rf /usr/share/zoneminder/temp
ln -s /zmdisk/events /usr/share/zoneminder/events
ln -s /zmdisk/images /usr/share/zoneminder/images
ln -s /zmdisk/temp /usr/share/zoneminder/temp
After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Re: Adding new hdd not so simple.
i think when you update in ubuntu it'll remove your symlinks and recreate the directories
i think you need to edit fstab and use bind mounts
http://www.zoneminder.com/wiki/index.ph ... Hard_Drive
i think you need to edit fstab and use bind mounts
http://www.zoneminder.com/wiki/index.ph ... Hard_Drive
Re: Adding new hdd not so simple.
Hi, Thanks for the info.
I have mounted the disk via fstab in the zoneminder directory /var/lib/zoneminder/zm_1tb. When i visit events and images via root they report the full 1tb of free space. However when i login as george they report the 30gb on my main drive. Strange, the files are stored on the 1tb drive and the system works as advertised, with the exception of free space. if i change the paths /var/lib/zoneminder/zm_1tb under options, zoneminder reports the full size but zoneminder doesn't work.
I am not sure where i am at this point. it seems to be a zoneminder problem but i cannot rule out the Fedora 16 install.
Thanks! george....
I have mounted the disk via fstab in the zoneminder directory /var/lib/zoneminder/zm_1tb. When i visit events and images via root they report the full 1tb of free space. However when i login as george they report the 30gb on my main drive. Strange, the files are stored on the 1tb drive and the system works as advertised, with the exception of free space. if i change the paths /var/lib/zoneminder/zm_1tb under options, zoneminder reports the full size but zoneminder doesn't work.
I am not sure where i am at this point. it seems to be a zoneminder problem but i cannot rule out the Fedora 16 install.
Thanks! george....
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
N4ZPO (ham Radio)
Re: Adding new hdd not so simple.
I think this has to do with user permissions
In ubuntu, I think I had to chown www-data:www-data -R /events and /images
In ubuntu, I think I had to chown www-data:www-data -R /events and /images
Re: Adding new hdd not so simple.
Hi, Thanks for the help!
I have not been moving the temp file along with events and images. Maybe that has something to do with it. I will move it too and hope that helps.
Who is the origional owner of those files? I think the permissions may be key also. I will address this too.
Thanks for the input!
I have not been moving the temp file along with events and images. Maybe that has something to do with it. I will move it too and hope that helps.
Who is the origional owner of those files? I think the permissions may be key also. I will address this too.
Thanks for the input!
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
N4ZPO (ham Radio)