Powerdown parameter for Solaris boxes.
I came across one unique parameter which I would like to share on our gurkulindia, specially for small business organisations where we dont have seperate power backups for DC.
Has anyone noticed while working on Solaris boxes if you will power down (init 5 or poweroff from LOM/ALOM/ILOM) the Solaris boxes, they wont come up automatically after physical power on (only LOM boots but No OS). Which is a serious concern if any power outage occur or any power unit failure occurs etc etc…
Ex: Suppose a power outage occurred in any DC and 100 Solaris boxes went down. Now after power restoration, you wont be able to see any Solaris Box up and running. Manual intervention is required and SA need to power on the boxes manually from LOM prompt. Practically this situation is highly unacceptable in any organisation and this is the default feature of Solaris.
After a long investigation and googling and PDF’s I safely landed on earth :-) and the landmark is below. There is a parameter on LOM/ALOM (for Sparc arch.) and ILOM (for intel arch.) which you wont find in help. The default value for that parameter is FALSE which wont allow your OS instance to boot up and hence it just stuck and wait for manual intervention at LOM level only.
I have tested the same in large scaled Solaris environment while performing hardware replacements & upgrades, when the value is FALSE the server stuck at LOM and OS wont come up, on the other hand if the value is changed to TRUE and power restored the Box comes up.
Below is the PARAMETER explanation with possible options:
ALOM runs as soon as power is applied to the host server, even if the server is powered off. When you first apply power to the host server, ALOM starts to run, but the server does not start up until you power it on.
The sc_powerstatememory variable allows you to specify the state of the host server as false (keep the host server off) or true (return the server to the state it was in when the power was removed). This is useful in the event of a power failure, or if you physically move the server to a different location.
For example, if the host server is running when power is lost and the sc_powerstatememory variable is set to false, the host server remains off when power is restored. If the sc_powerstatememory variable is set to true, the host server restarts when the power is restored.
The values for this variable are as follows.
true — “Remembers” the state of the host server when power was removed and returns the server to that state when power is reapplied.
false — Keeps the server off when power is applied
I think one change this value to TRUE on Solaris servers so that in case if any unintentional power outage occurs (when NO power backup is there) the server restoration time would be minimum.
Below is the procedure to check and set this parameter is below:
sc> showsc sc_powerstatememory
sc> setsc sc_powerstatememory true
sc> showsc sc_powerstatememory
Note: 1.) AIX and Linux are having this feature by default i.e both will boot up after power restoration by default.
2.) Dont get confused with auto-boot, auto-boot is to restrict your OS to OK prompt.