Memory or RamDrive Buffer?
Posted: Sun Jul 15, 2012 4:07 pm
My zoneminder system is also my data storage system for the whole house. I use a raid-1 drive setup and cycle out a thrid drive about every two weeks to ensure my data is safe and secure.
However, after having two drives fail a couple weeks ago (not exactly at the same time, so no data was lost). Also, since they are all seagate and only two years old, the replacement is under warranty (one already replaced). I was thinking about how zoneminder causes my drives to be written to 24/7 constantly. This is extreme wear and tear on drives.
Would it be possible to make an option for a "buffer" drive. The idea would be that all live images are written either to memory or to a ram drive (the latter seems it would be easier to implement). Then when the buffer gets to ~80%, all the images would be transferred to your normal recording hard drive. This way instead of having continuous tiny writes to the drive, you only have an occasional long write to the drive.
I would try to write something for this, but I am only a very lightweight programmer by hobby. But it seems that the biggest challenge would be keeping the database in sync with where the images are located as they will move from the ram drive and later be on the hard drive.
Any thoughts?
However, after having two drives fail a couple weeks ago (not exactly at the same time, so no data was lost). Also, since they are all seagate and only two years old, the replacement is under warranty (one already replaced). I was thinking about how zoneminder causes my drives to be written to 24/7 constantly. This is extreme wear and tear on drives.
Would it be possible to make an option for a "buffer" drive. The idea would be that all live images are written either to memory or to a ram drive (the latter seems it would be easier to implement). Then when the buffer gets to ~80%, all the images would be transferred to your normal recording hard drive. This way instead of having continuous tiny writes to the drive, you only have an occasional long write to the drive.
I would try to write something for this, but I am only a very lightweight programmer by hobby. But it seems that the biggest challenge would be keeping the database in sync with where the images are located as they will move from the ram drive and later be on the hard drive.
Any thoughts?