Page 1 of 1

Action in case of Raspberry PI failure

Posted: Sunday 09 September 2018 12:03
by Hein73
Hi,

new to this forum and not sure where to post this.

My main question is how to make sure all automated components (in particular switches) go to a fial safe state in case of Raspberry PI failure (for example corrupt SD card).

In my case because of particular construction issues with my Somfy blinds I have installed a hard switch which I use to block power to the blinds in case the door is not fully open or fully close. This is to prevent the door from damaging the blinds because during construction of our home extension the blinds were fixed to close to the door. Now when the door is halfway open I run the risk of the blinds jamming into the door when operated.

Now, suppose the Raspberry fails when the power to the blinds is blocked. I wont be able to operate them untill the PI comes back on.

Any suggestions? Thanks

kind regards,
Hein

Re: Action in case of Raspberry PI failure

Posted: Sunday 09 September 2018 12:11
by Antori91
In my environment, I've installed two Domocticz servers (cluster). If the main one fails, the Domoticz instance backup is assumed to deliver the service replacing the main server.

I've to say my Main server is Domoticz V3.5877 running in Synology platform. This main Domoticz instance (running of course 24/7) failed only one time in about two years.

Re: Action in case of Raspberry PI failure

Posted: Sunday 09 September 2018 12:27
by EddyG
I use a UPS for 2 Raspberry's (Main and Slave) and for the blinds I have for doors and windows.
This way I always have a limited time for normal operation.
For SD-card failure I use industrial grade SD-cards, make sure that almost all write actions go to tmpfs (/var/log) and a USB-stick.
On the USB-stick is Domoticz running. And that USB-stick is mirrored to a NAS every hours.

Re: Action in case of Raspberry PI failure

Posted: Sunday 09 September 2018 15:10
by Hein73
Antori91 wrote: Sunday 09 September 2018 12:11 In my environment, I've installed two Domocticz servers (cluster). If the main one fails, the Domoticz instance backup is assumed to deliver the service replacing the main server.

I've to say my Main server is Domoticz V3.5877 running in Synology platform. This main Domoticz instance (running of course 24/7) failed only one time in about two years.
Thanks for the reply. Isnt that supposed to mean you need two zwave sticks / two rfx modules?

regards,
Hein

Re: Action in case of Raspberry PI failure

Posted: Sunday 09 September 2018 15:11
by Hein73
EddyG wrote: Sunday 09 September 2018 12:27 I use a UPS for 2 Raspberry's (Main and Slave) and for the blinds I have for doors and windows.
This way I always have a limited time for normal operation.
For SD-card failure I use industrial grade SD-cards, make sure that almost all write actions go to tmpfs (/var/log) and a USB-stick.
On the USB-stick is Domoticz running. And that USB-stick is mirrored to a NAS every hours.
Thanks for the reply. Isnt that supposed to mean you need two zwave sticks / two rfx modules?

Is there a topic on how to create this setup?

kind regards,

Hein

Re: Action in case of Raspberry PI failure

Posted: Sunday 09 September 2018 17:57
by Antori91
Hein73 wrote: Sunday 09 September 2018 15:10
Antori91 wrote: Sunday 09 September 2018 12:11 In my environment, I've installed two Domocticz servers (cluster). If the main one fails, the Domoticz instance backup is assumed to deliver the service replacing the main server.

I've to say my Main server is Domoticz V3.5877 running in Synology platform. This main Domoticz instance (running of course 24/7) failed only one time in about two years.
Thanks for the reply. Isnt that supposed to mean you need two zwave sticks / two rfx modules?

regards,
Hein

http://www.domoticz.com/forum/viewtopic ... 38&t=24088

Re: Action in case of Raspberry PI failure

Posted: Sunday 09 September 2018 21:50
by EddyG
Hein73 wrote: Sunday 09 September 2018 15:11
EddyG wrote: Sunday 09 September 2018 12:27 I use a UPS for 2 Raspberry's (Main and Slave) and for the blinds I have for doors and windows.
This way I always have a limited time for normal operation.
For SD-card failure I use industrial grade SD-cards, make sure that almost all write actions go to tmpfs (/var/log) and a USB-stick.
On the USB-stick is Domoticz running. And that USB-stick is mirrored to a NAS every hours.
Thanks for the reply. Isnt that supposed to mean you need two zwave sticks / two rfx modules?

Is there a topic on how to create this setup?

kind regards,

Hein
My slave has just e few (not important) devices and can be used in case the master hardware fails.
Installation is close to the same on both so switching is easy.
The most important part is: use an industrial SD-card and write mostly to tmpfs.
This way your SD-card will survive for many years.
I use an 16 Gb industrial SD-card from Sandisk which can be bought at amazon.de