-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add command for disabling Hotspare PSU #4
base: master
Are you sure you want to change the base?
Conversation
@@ -174,6 +176,9 @@ while [ $# -ne 0 ]; do | |||
"enableipmi") | |||
sh $libdir/ipmi.sh | |||
;; | |||
"disablehotspare") | |||
sh $libdir/psu_redundancy.sh | |||
;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better if this function was part of the "base" setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's added to the base profile and as a separate command :)
|
||
case "$model" in | ||
iDRAC[789]) | ||
$racadm set System.Power.Hotspare.Enable 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure this will work with the latest firmwares. I've seen iDRACs demanding that the new style XML configuration is used. Also the functionality is duplicated into e66243f , we should keep just one.
This PR adds the disablehotspare command to cause both PSUs to be used as well as add it to the base profile, since this is something we want in every server.