hi guys the problem i have is i am requred to have my new zm system store 3yrs worth of footage and i have 4 cameras recording on motion they capture about 70 hours a week i have worked 8 tb will store it but im thinking of having rolling storage as in only having say one of the four 2 tb disks onsight at a time just how would be the best way to implement this obiously i can caddy the drives but as to changing and reading back past disks how would i go about this
many thanks
john
storage
here is what I would do.
setup zoneminder and mysql on a small 80gb or less
do not start zm or mysql
now your 1tb drive format as one big partition.
mount the drive under /storage
now create 2 folders /storage/mysql and /storage/events
copy the /var/lib/mysql to the /storage/mysql
same goes for zm events folder copy /var/lib/zm/events /storage/events
now sym link you /var/lib/mysql to /storage/mysql
and /var/lib/zm/events to /storage/events
turn mysql on check for errors
make sure you still have zm off and there are no events
setup your cameras.
now go into filters and in the "purge when full" filter instead of deleting have it send you a email at say 90%
Now turn off mysql and unmount the partition.
Now install partimage and make a image of the 1tb drive.
now remove 1tb drive insert new 1tb drive
next use partimage to restore the image you took
repeat last 3 steps for more drives.
Now when you get the full drive email.
Shutdown remove 1tb drive insert one of the formatted ones.
And your ready to go.
and when the drives need to be reused just restore the image file to them.
Now the trick to reading them back.
2 solutions
get a pc to view.
or
On the same zm server install Sun virtualbox (not the OpenSourse version).
make a copy of the 80g drive and use that as the image in Sun virtualbox
next go buy a usb to sata adaptor.
now setup the sun vm to always use that usb adaptor.
so when you need the old eventsplug in the usb drive.
and start the virtual machine
setup zoneminder and mysql on a small 80gb or less
do not start zm or mysql
now your 1tb drive format as one big partition.
mount the drive under /storage
now create 2 folders /storage/mysql and /storage/events
copy the /var/lib/mysql to the /storage/mysql
same goes for zm events folder copy /var/lib/zm/events /storage/events
now sym link you /var/lib/mysql to /storage/mysql
and /var/lib/zm/events to /storage/events
turn mysql on check for errors
make sure you still have zm off and there are no events
setup your cameras.
now go into filters and in the "purge when full" filter instead of deleting have it send you a email at say 90%
Now turn off mysql and unmount the partition.
Now install partimage and make a image of the 1tb drive.
now remove 1tb drive insert new 1tb drive
next use partimage to restore the image you took
repeat last 3 steps for more drives.
Now when you get the full drive email.
Shutdown remove 1tb drive insert one of the formatted ones.
And your ready to go.
and when the drives need to be reused just restore the image file to them.
Now the trick to reading them back.
2 solutions
get a pc to view.
or
On the same zm server install Sun virtualbox (not the OpenSourse version).
make a copy of the 80g drive and use that as the image in Sun virtualbox
next go buy a usb to sata adaptor.
now setup the sun vm to always use that usb adaptor.
so when you need the old eventsplug in the usb drive.
and start the virtual machine