Page 1 of 1

Adding Storage Drive, Help Please

Posted: Thu Jun 27, 2019 1:24 am
by swormuth
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

Re: Adding Storage Drive, Help Please

Posted: Thu Jun 27, 2019 10:43 am
by kitkat
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

Re: Adding Storage Drive, Help Please

Posted: Fri Jun 28, 2019 1:21 am
by snake
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.

Re: Adding Storage Drive, Help Please

Posted: Sat Jun 29, 2019 12:06 am
by bbunge