BIOS configuration via OS tools
Intro
It’s possible to configure BIOS options from the OS on SuperMicro, Dell, and HP platforms. This removes the need for IPMI access and for entering the BIOS setup screen. The host still reboots once before the new values apply.
All options that are needed by StorPool are described in the relevant installation guides. Some examples are given below, but those are not exhaustive.
SuperMicro
The changes are done via the SuperMicro Update Manager (SUM) tool, available at Supermicro Update Manager.
Warning
The BIOS reconfiguration is currently known not to work on SuperMicro EPYC2 nodes. Configure those nodes from the BIOS setup screen, using the SuperMicro heading in BIOS and OS tuning for AMD EPYC processors.
Note
The tool requires a license from SuperMicro to work. Having the license is highly recommended for all StorPool installations on SuperMicro servers from 2019-01 onward.
./sum expects the binary in the current directory and reads the local
BMC. The license note above is what allows that session.
Read the current BIOS into cbios.cfg:
./sum --file cbios.cfg -c GetCurrentBiosCfg
Edit every intended setting in that file before loading it. The comments in
cbios.cfg list the legal values for each key.
Load the file once:
./sum --file cbios.cfg -c ChangeBiosCfg
Loading the file stages the change. Reboot the host once to apply it.
SR-IOV
The key is called “SR-IOV Support”. Set it to the enabled value shown in
that key’s comment in cbios.cfg.
NUMA nodes per socket
On generations where SUM works, the key to search for in cbios.cfg is
“NUMA Nodes Per Socket”. The BIOS setup screen calls the same option
“NUMA Layout”. Set it to NPS1 on single-socket and dual-socket hosts.
Determinism, cTDP, and the preferred I/O bus are set from the SuperMicro
heading in BIOS and OS tuning for AMD EPYC processors.
DELL
The changes are done via the racadm tool, available at Dell’s web site.
Recommended settings
On most Dell servers, set the system profile to Custom, apply the performance
options below, and enable SR-IOV globally. Each racadm set stays pending
until a configuration job is created and the host is rebooted. Create the BIOS
job here and the NIC jobs in the next section, then reboot once. That reboot
applies both.
The settings do the following:
Set the system profile to Custom, so the individual options are applied instead of a preset.
Run the CPU and memory at maximum performance, with turbo on all cores and the energy bias toward performance.
Leave C1E and C-states enabled so the OS can idle cores.
Keep memory patrol scrub at Standard, the refresh rate at 1x, and write-data CRC off.
Turn off CPU interconnect link power management and PCIe ASPM L1, to avoid link power-saving latency.
Enable SR-IOV globally. NIC virtualization mode is set in the next section.
Set the system profile to Custom before the other profile options.
# Custom profile, so the options below are applied instead of a preset
racadm set BIOS.SysProfileSettings.SysProfile Custom
# CPU and memory performance, turbo on all cores
racadm set BIOS.SysProfileSettings.ProcPwrPerf MaxPerf
racadm set BIOS.SysProfileSettings.MemFrequency MaxPerf
racadm set BIOS.SysProfileSettings.ProcTurboMode Enabled
racadm set BIOS.SysProfileSettings.Proc1TurboCoreNum All
racadm set BIOS.SysProfileSettings.Proc2TurboCoreNum All
racadm set BIOS.SysProfileSettings.UncoreFrequency MaxUFS
racadm set BIOS.SysProfileSettings.EnergyPerformanceBias MaxPower
# C-states stay enabled so the OS can idle cores
racadm set BIOS.SysProfileSettings.ProcC1E Enabled
racadm set BIOS.SysProfileSettings.ProcCStates Enabled
# Memory
racadm set BIOS.SysProfileSettings.MemPatrolScrub Standard
racadm set BIOS.SysProfileSettings.MemRefreshRate 1x
racadm set BIOS.SysProfileSettings.WriteDataCrc Disabled
# Avoid link power-saving latency
racadm set BIOS.SysProfileSettings.CpuInterconnectBusLinkPower Disabled
racadm set BIOS.SysProfileSettings.PcieAspmL1 Disabled
# Global SR-IOV
racadm set BIOS.IntegratedDevices.SriovGlobalEnable Enabled
# Queue all pending BIOS changes. Reboot after the NIC jobs below.
racadm jobqueue create BIOS.Setup.1-1
Note
Proc2TurboCoreNum is for the second socket. On a single-socket
server, skip that line.
Note
If racadm set reports that an attribute does not exist on this
BIOS generation, skip that line and continue. Create the BIOS job
only after the sets you intend have succeeded.
Confirm the pending profile and the BIOS job. Create the NIC jobs in the next section before rebooting:
racadm get BIOS.SysProfileSettings
racadm jobqueue view
SR-IOV on the NICs
Global SR-IOV is already set in the block above. The following enables SR-IOV
on the first two NICs. Change 1 2 when the server has more NICs. Each NIC
gets its own configuration job. Create these jobs before rebooting, so the
same reboot applies them together with BIOS.Setup.1-1.
for i in 1 2 ; do racadm set NIC.DeviceLevelConfig.${i}.VirtualizationMode SRIOV ; sleep 2 ; done
for i in 1 2 ; do racadm get NIC.DeviceLevelConfig.${i}.VirtualizationMode ; sleep 2 ; done
for i in 1 2 ; do racadm jobqueue create NIC.Integrated.1-${i}-1 ; sleep 2 ; done
Confirm that the BIOS job and the NIC jobs are queued, then reboot the host:
racadm jobqueue view
Browsing options
racadm uses a hierarchy of objects. The session below shows how to find
NIC.DeviceLevelConfig, and that a set stays pending until
jobqueue create.
root@node9 ~ # racadm get
iDRAC
System
LifeCycleController
BIOS
NIC
STORAGE
FC
root@node9 ~ # racadm get NIC
DeviceLevelConfig
FCoEConfiguration
FCoEGenParams
FrmwImgMenu
IscsiFirstTgtParams
IscsiGenParams
IscsiInitiatorParams
IscsiSecondTgtParams
IscsiSecondaryDeviceParams
NICConfig
NICPartitioningConfig
VndrConfigPage
root@node9 ~ # racadm get NIC.DeviceLevelConfig
NIC.DeviceLevelConfig.1 [Key=NIC.Integrated.1-1-1#DeviceLevelConfig]
NIC.DeviceLevelConfig.2 [Key=NIC.Integrated.1-2-1#DeviceLevelConfig]
NIC.DeviceLevelConfig.3 [Key=NIC.Integrated.1-3-1#DeviceLevelConfig]
NIC.DeviceLevelConfig.4 [Key=NIC.Integrated.1-4-1#DeviceLevelConfig]
root@node9 ~ # racadm get NIC.DeviceLevelConfig.1
[Key=NIC.Integrated.1-1-1#DeviceLevelConfig]
#SRIOVSupport=Available
VirtualizationMode=SRIOV
root@node9 ~ # racadm set NIC.DeviceLevelConfig.1.VirtualizationMode SRIOV
[Key=NIC.Integrated.1-1-1#VirtualizationMode]
RAC1017: Successfully modified the object value and the change is in
pending state.
To apply modified value, create a configuration job and reboot
the system. To create the commit and reboot jobs, use "jobqueue"
command. For more information about the "jobqueue" command, see RACADM
help.
To apply the pending change for that NIC, create a job for it:
racadm jobqueue create NIC.Integrated.1-1-1
That job commits the pending settings for NIC.Integrated.1-1-1 on the next
reboot. BIOS attributes use BIOS.Setup.1-1, as in the recipe above. Reboot
once after every job you intend to apply is queued.
HP
BIOS changes from the OS use ilorest, the HPE RESTful Interface Tool.
Each set stays pending until commit, and the new values apply on the
next reboot. This section covers iLO 5 and later (Gen10 and later). Install
and the full command set are in the HPE iLOrest user guide.
hponcfg writes iLO configuration. ssacli configures Smart Array
controllers. BIOS attributes go through ilorest.
Log in from the host
ilorest login opens a session to the local iLO. On iLO 5 and iLO 6 that
session uses the channel-interface driver:
ilorest login
On iLO 7, create an application account once. -u and -p are an iLO
user that is allowed to create it. Later logins from this host take no
password on the command line:
ilorest appaccount create -u ilo-user -p password --self
ilorest login
Logging in with an iLO address, a user, and a password reaches iLO over the network. The commands below use the in-band login.
Find the attribute name
Copy the Redfish attribute name from this server. Those names differ from the labels in the BIOS setup screen. The HPE menu steps for EPYC servers are under the HPE heading in BIOS and OS tuning for AMD EPYC processors.
ilorest get --select Bios --json
For each option in that HPE section, find the same option in the get
output from this server. Use the name printed there in ilorest set.
Set and commit
Put every set for this batch before one commit. ilorest pending
shows what is staged. AdminName below only shows the shape of a set.
Substitute the name and value from the get output.
ilorest select Bios
ilorest set AdminName=Value
ilorest commit
ilorest pending
ilorest logout
Reboot the host once after pending lists the changes you intend. That
reboot applies them.
File dump
When many values change, save the BIOS settings, edit the file, and load it
back. This is the current form of the older CONREP conrep.dat files.
Read-only values in the file are ignored.
ilorest login
ilorest save --selector=Bios --json -f bios.json
ilorest load -f bios.json
Edit bios.json between save and load. Reboot the host once after
load.
SR-IOV
SR-IOV is a global BIOS option. Find its name with ilorest get on this
server, then set and commit it. Also check the NICs on this server
for their own SR-IOV setting. When one is present, set and commit it
too, then reboot once.