Enabling ‘Use Unconfigured Good as Emergency Hot Spare (EHSP)’ can cause alarm to sound on 3945N/SJ LSISAS2108 based controllers

By default ‘Use Unconfigured Good as Emergency Hot Spare (EHSP)’ is disabled.

It can be checked/enabled/disabled with MegaCLI:

To check the current value: MegaCli -AdpGetProp enableeug -aN|-a0,1,2|-aALL (e.g MegaCli -AdpGetProp enableeug -a0)
To enable ‘Use Unconfigured Good as Emergency Hot Spare (EHSP)’: MegaCli -AdpSetProp enableeug=on -aN|-a0,1,2|-aALL (e.g MegaCli -AdpSetProp enableeug=on -a0)
To disable ‘Use Unconfigured Good as Emergency Hot Spare (EHSP)’: MegaCli -AdpSetProp enableeug=off -aN|-a0,1,2|-aALL (e.g MegaCli -AdpSetProp enableeug=off -a0)
It can be checked/enabled/disabled with StorCLI:

To check the current value: storcli /cx show enableeug (e.g storcli /c0 show enableeug)
To enable ‘Use Unconfigured Good as Emergency Hot Spare (EHSP)’: storcli /cx set enableeug=on (e.g. storcli /c0 set enableeug=on)
To disable ‘Use Unconfigured Good as Emergency Hot Spare (EHSP)’: storcli /cx set enableeug=off (e.g. storcli /c0 set enableeug=off)
If ‘Use Unconfigured Good as Emergency Hot Spare (EHSP)’ is enabled and an unconfigured good drive (or the same drive that drops from the RAID volume, then is incorporated back in later) is used to rebuild the RAID volume, then the alarm will sound continuously, even once the RAID volume is done rebuilding.

There are several ways to keep the alarm from sounding:

Disable the alarm
Clear the alarm (note: the alarm will sound again after a system restart)
Have the RAID volume copy back the drive that was used as an emergency hot spare to a different drive. Once the different drive is part of the RAID array, then the alarm will no longer sound. If desired, you can copy back that new drive back to the original drive. The alarm will then no longer sound.
You can delete the RAID volume, then recreate it. Since deleting the RAID volume will result in the loss of all data, be sure to backup any data that you want to keep before deleting the RAID volume.
If you are using LSI SAS2108 firmware v12.12.0-0139/2.130.373-2022 or newer, then this beeping will not happen.
Upgrading the firmware to v12.12.0-0139/2.130.373-2022 or newer after the beeping starts won’t resolve the issue. To stop the beeping, you must do one of the four steps described above.