Delayed restart

57 views
Skip to first unread message

Crispin Proctor

unread,
Jun 29, 2023, 2:07:27 PM6/29/23
to ClusterHAT
Hi

I have a cluster hat which works really well for a few years now. 

Is there a way which I can stagger the restart? 

I have a "master" pi which has a SSD attached. The others mount a share on this. 
During unplanned reboots, I have to manually restart everything to recover.

Can I put a delay on power-up so they start in sequence?


Chris Burton

unread,
Jul 2, 2023, 8:08:35 AM7/2/23
to ClusterHAT
Hi, 
Is there a way which I can stagger the restart? 

I have a "master" pi which has a SSD attached. The others mount a share on this. 
During unplanned reboots, I have to manually restart everything to recover.

Can I put a delay on power-up so they start in sequence?

I'm not really sure what you're asking.

When you say stagger the restart do you mean after powering on, or is something being restarted (rebooted) and if so what?

The Pi Zeros don't start by default unless you've joined the POS solder jumper, is this what you've done or are you starting them some other way?

When you say "master" pi do you mean the controller Pi which has the Cluster HAT on it, or another Pi on the network?

Chris. 

Crispin Proctor

unread,
Jul 13, 2023, 6:35:36 PM7/13/23
to ClusterHAT
Hi,

Apologies for delayed reply. 

I have, from time to time, a power failure and sometimes the UPS dies on me too. 
When the stack comes back up, I want the first one, with the SSD, to start first, the other 4 should wait 20 seconds before starting. 

I am using ClusterCTRL Stack. 

Is this possible?

Chris Burton

unread,
Jul 14, 2023, 11:27:33 AM7/14/23
to ClusterHAT
Hi, 
Is this possible?

Yes, but you'd need to flash new firmware to the Controller board as that isn't an option you can change atm.

I can provide a firmware file and/or give you instructions on compiling it on a Raspberry Pi.

To write the firmware I assume your board has the 2x3 header soldered on (between the 2 fan headers and the IC1 regulator) in which case you can use either an Arduino (3.3v NOT 5v), Raspberry Pi or Raspberry Pi Pico connected with 0.1" "DuPont" style jumper wires. If you can let me know what you want to program it with I can show the wiring/setup needed.

Chris.

Crispin Proctor

unread,
Jul 15, 2023, 2:41:07 AM7/15/23
to ClusterHAT
That would be great - thanks.

I can certainly make any of the options work. Yes, the headers are there and yes, I have the cables to connect it to a pi. 

C

Chris Burton

unread,
Jul 25, 2023, 5:21:35 PM7/25/23
to ClusterHAT
Hi,
That would be great - thanks.

I can certainly make any of the options work. Yes, the headers are there and yes, I have the cables to connect it to a pi. 

Sorry for the delay, I had to shutdown one of my Stacks to test on.

I've added instructions on https://8086.support/content/23/125/en/how-do-i-write-new-firmware-to-cluster-stack.html to build/program it from a Raspberry Pi .

To increase the delay to 20 seconds edit config.h in ClusterCTRL/clusterstack-1.0/ and change the AUTOONDELAY line from 1000 to 20000 (only works with ClusterCTRL Stack currently).

I've also attached the firmware file for the ClusterCTRL Stack (v1.0 to v1.3) with a 20 second delay. To use it after saving to the Pi you should be able to follow the steps down to "You can now either build your own firmware or install prebuild firmware." and then run the following.

unzip 1.8_clusterstack-1.0-20000AUTOONDELAY.zip
sudo avrdude -c pi_1 -p atmega328pb -U flash:w:1.8_clusterstack-1.0-20000AUTOONDELAY.hex

Any questions let me know.

Chris.
1.8_clusterstack-1.0-20000AUTOONDELAY.zip

Douglas Goodall

unread,
Jul 29, 2023, 1:03:56 AM7/29/23
to clust...@googlegroups.com
I have done things like this by calling sleep in the rc.local file on one specific node, probably 0. Sometimes I need to setup nfs or mad around that time.


--
You received this message because you are subscribed to the Google Groups "ClusterHAT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clusterhat+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/clusterhat/8197933f-9da0-45dc-980a-a5f757e30032n%40googlegroups.com.
--
---
Douglas Wade Goodall
425 San Juanico
Santa Maria, CA . 93455
Reply all
Reply to author
Forward
0 new messages