I tested using 3 StorageGRID 5612 and 2 SG100. I want to use a UPS to safely shut down StorageGRID from a Linux server in the event of a power outage. (Log in via ssh and run a command)
Then, when power is restored, I want to check whether it will start automatically without going to the machine room.
To achieve this, I used sshpass to execute a command remotely from the Linux server, and was able to shut it down successfully.
Command execution example:
■Stop the StorageGRID (gateway node) service from a Linux machine via ssh connection.
sshpass -p bycast ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null admin@192.168.0.88 "echo bycast | sudo -S service servermanager stop“
■Shut down StorageGRID (gateway node) from a Linux machine via ssh connection.
sshpass -p bycast ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null admin@192.168.0.88 "echo bycast | sudo -S shutdown –h now“
I confirmed the shutdown using the above method and removed the power cable.
Then I plugged the power cable back in.
As for the two SG100s, one started up automatically when I connected the power cable, but the other did not start up.
Which is the correct behavior? Also, is there a setting to start it up automatically? (Is there something that can be set from the BIOS or management GUI?)
By the way, the storage node (SG5612) started up automatically when the power cable was connected, and it seemed that there was no need to operate the power switch OFF/ON in the machine room.
My desired goal is to have both SG100s set up to start up automatically when power is restored.
thank you.