Object Storage

I want the UPS to shut down StorageGRID gracefully during a power outage and automatically start it

shinichiro_s
176 Views

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.

2 REPLIES 2

Amitra
70 Views

HI @shinichiro_s ,

 

I will try to answer your queries below:

 

1. 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?)

--> SG100 models have power button but they can come online once Power cords are connected. As per document - https://docs.netapp.com/us-en/storagegrid-appliances/installconfig/connecting-power-cords-and-applying-power.html 

  1. Connect a power cord to each of the two power supply units in the appliance.

  2. Connect these two power cords to two different power distribution units (PDUs) in the cabinet or rack.

  3. If the power button on the front of the appliance is not currently illuminated blue, press the button to turn on power to the appliance.

  4. Don't press the power button again during the power-on process. 

Now it may be possible, that one node came online as soon as power cords were attached, but second one didnt and required manual intervention by pressing power button. Ideally, once power cords are attached, power button on the front of the appliance should be illuminated blue. If the node doesnt come online, you can attempt from BMC, otherwise, manual intervention is required. 

 

2. 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.

--> Sg5612 dont have power buttons and hence, as soon as power is supplied, the nodes come online. Hence, to turn them off we need to power off from power switch. 

Hi Amitra-san,

 

Thank you for your reply.

I undersood.

 

But still I have question.

 

I understand that the SG100 has a server power button on the front, and the SG5612 has a power switch on the back near the power supply, like the FAS.
In both cases, I shut down the server while it was powered on, unplugged the power cable, and then plugged the power cable back in.
So, the hardware switch state (the node itself knows the final status as ON, and the shutdown command will make it OFF, but the switch remains ON) and then the power is restored by plugging the cable back in.

There is no problem with the SG5612 (storage node), as it is operating as expected.

However, why did the behavior of the two SG100s differ even though they were performing the same operation?

Why did the SG100-01 start up automatically when power was restored, but the other one (SG100-02) did not?
The SG100-02 would not start unless I pressed the small power button on the front of the server. Why does one machine start up automatically and the other doesn't?

Which behavior is correct for the server's internal values ​​(default values)? (A. It starts up automatically when power is restored, but is this the correct behavior (specification)?)
Or (B. It doesn't start up automatically when power is restored, so do I have to press the power button on the front?)
Which is it?

Which is it, A or B?

 

Regards,

 

Public