Tuesday, August 1, 2017

ZoneMinder and Multiple OS's

As I'm working through my ZoneMinder setup (and more posts are coming), I ran into a capacity issue.  I thought it'd be a good time to do a bake-off between ZoneMinder on Ubuntu/Linux vs FreeBSD.  This wasn't as easy as I thought...

To perform what I thought would be a quick test, I configured an additional Ubuntu ZoneMinder server and setup the multi-server feature.  Worked like a charm (again, I'll do a full write-up on this in the future).  This all went sideways when I tried adding a FreeBSD server into the mix.

I was working through the differences in the install defaults in terms of paths, which was solvable using symlinks in most cases, I found one that wasn't fixable.  Many/most of the paths are defined in the database, so all nodes share the same configuration detail.  The problem with this is the shared memory mapper/manager.  /dev/shm is in the database for memory management, which is fine for Ubuntu, but FreeBSD doesn't use /dev/shm and does something different.  So without doing evil things in the /dev tree, this appears to be an insurmountable hurdle.  After 2 days of beating on this over a weekend, I gave up and put Ubuntu on the 3rd node and moved on.

End result is, if you want to run a multi-server ZoneMinder setup all of the systems should really run the same OS.  This is somewhat obvious, but also somewhat sad since it makes migrations to a new OS very challenging, if not impossible.

No comments:

Post a Comment

IT Accountability: Avoiding Murphy

Amongst technology experts, Murphy is someone we all try to avoid.  Murphy's Law states "Anything that can go wrong, will".  E...