I has a computer running zoneminder in a place that is in a far away location. This computer is connected to Internet. Sometimes i can not access it due to booting problems, database corruption and others. So, i have to travel a few hundred miles to service it.
If the hard drive does not boot, i boot from cdrom and chroot to the ZM to try to fix it.
This computer reboots thru cron twice a day. What if i always boot from cd and after a few minutes, automatically chroot to the hard disk and run zoneminder?
This way i would have time to ssh to the cdrom boot and take control to try to fix if not all, at least a few problems i can not fix now if i do not go there.
Any idea on how to deal with this problem?
Remote computer with booting problems
Re: Remote computer with booting problems
Why? This is not Windows. The machine doesn't need to be rebooted.gola10 wrote:This computer reboots thru cron twice a day.
v1.25.0 + Ubuntu Linux 12.04 Server
You are right, Linux does not need to be rebooted frequently as winblows.
The reason is that i have two setting, day and night. I have set my cameras for day time "record" "640x480" "color" and during night "Mocord" "320x240" "B&W".
With a script i do a Mysqldump of files "Monitors" and Zones. for day and night setting.
With cron i load day settings in the morning and night settings at 8:30 PM. After that, i reboot. I have done that without reboots and it works but in this particular site that is far away, i thought that rebooting was safer.
The reason is that i have two setting, day and night. I have set my cameras for day time "record" "640x480" "color" and during night "Mocord" "320x240" "B&W".
With a script i do a Mysqldump of files "Monitors" and Zones. for day and night setting.
With cron i load day settings in the morning and night settings at 8:30 PM. After that, i reboot. I have done that without reboots and it works but in this particular site that is far away, i thought that rebooting was safer.
You need to write safer shutdownscript with checking mechanisms (do process checks before doiing full shutdown).
Also work with hardwaretools enabling to do proper remote control (even before OS) => network KVM switch !
example : http://www.freedom9.com/products/product.php?p=9
Warning : Those don't come cheap. But it is always cheaper then you hitting a tree on the way driving to the server.And very handy when you're in the testing phase and don't feel spending most of your time in the car.
Also lik Lee told you ,get a good UPS. What you can do even more is to connect the UPS with USB to your system and let it do automatic stuff : shutdown ,send SMS ,etc ... : see my post over here : http://www.zoneminder.com/forums/viewto ... highlight=
Also work with hardwaretools enabling to do proper remote control (even before OS) => network KVM switch !
example : http://www.freedom9.com/products/product.php?p=9
Warning : Those don't come cheap. But it is always cheaper then you hitting a tree on the way driving to the server.And very handy when you're in the testing phase and don't feel spending most of your time in the car.
Also lik Lee told you ,get a good UPS. What you can do even more is to connect the UPS with USB to your system and let it do automatic stuff : shutdown ,send SMS ,etc ... : see my post over here : http://www.zoneminder.com/forums/viewto ... highlight=