Good evening,
Can someone experienced in ZoneMinder walk me through the steps of pointing all my storage points to a secondary drive I've installed for this purpose? I'd appreciate any step-by-step you could provide.
I currently have ZoneMinder installed and running on Ubuntu Server 16.04, but have no cameras as yet. I can access the interface from its IP address so it's running properly. It's running on a 1 TB drive, but I installed a 3 TB specifically for storage. The idea is that the system can run on the 1 TB, and anything saved can be stored on the 3 TB.
Just learning right now, so I need the step-by-step newbie version.
Thanks!
Steven
Adding Storage Drive, Help Please
Re: Adding Storage Drive, Help Please
I did it the 'easy' way...
Stop ZM
Mount the new drive somewhere... mount /dev/sdb1 /mnt/
Copy the existing data to the new drive... cp -pR /var/lib/zoneminder /mnt/
Mount the new folder over the old one... mount --bind /mnt/zoneminder /var/lib/zoneminder
Restart ZM
Make it all remount automatically at boot time by editing fstab...
echo "/dev/sda1 /mnt auto defaults 0 0" >> /etc/fstab
echo "/mnt/zoneminder /var/lib/zoneminder auto bind,defaults 0 0" >> /etc/fstab
Stop ZM
Mount the new drive somewhere... mount /dev/sdb1 /mnt/
Copy the existing data to the new drive... cp -pR /var/lib/zoneminder /mnt/
Mount the new folder over the old one... mount --bind /mnt/zoneminder /var/lib/zoneminder
Restart ZM
Make it all remount automatically at boot time by editing fstab...
echo "/dev/sda1 /mnt auto defaults 0 0" >> /etc/fstab
echo "/mnt/zoneminder /var/lib/zoneminder auto bind,defaults 0 0" >> /etc/fstab
Re: Adding Storage Drive, Help Please
The guide for 1.30.4 and earlier is on the wiki.
https://wiki.zoneminder.com/Helpful_use ... _Procedure
1.31+ has management built into the website, so no need for the above.
https://wiki.zoneminder.com/Helpful_use ... _Procedure
1.31+ has management built into the website, so no need for the above.