Adding Storage Drive, Help Please

Forum for questions and support relating to the 1.30.x releases only.
Locked
swormuth
Posts: 4
Joined: Sun Apr 01, 2018 11:04 pm

Adding Storage Drive, Help Please

Post 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
User avatar
kitkat
Posts: 193
Joined: Sun Jan 27, 2019 5:17 pm

Re: Adding Storage Drive, Help Please

Post 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
User avatar
snake
Posts: 337
Joined: Sat May 21, 2016 2:20 am

Re: Adding Storage Drive, Help Please

Post 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.
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Adding Storage Drive, Help Please

Post by bbunge »

Locked