Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

lamaral
Copy link
Contributor

@lamaral lamaral commented Sep 25, 2020

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.

@@ -174,6 +176,9 @@ while [ $# -ne 0 ]; do
"enableipmi")
sh $libdir/ipmi.sh
;;
"disablehotspare")
sh $libdir/psu_redundancy.sh
;;
Copy link
Collaborator

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.

Copy link
Contributor Author

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants