Enabling and Verifying SED Encryption on UFM Enterprise Appliances
Use the /usr/bin/ufm_sed_enable.sh tool to enable PERC RAID Self-Encrypting Drive (SED) disk encryption on UFM Enterprise appliances. The tool runs inside a privileged Docker container that includes the iDRAC management tools. It configures the PERC controller, the virtual disk, and both physical disks.
Prerequisites
Before you run the tool, make sure that:
-
You are logged in as
root. -
The target is a Dell UFM 3 or 3.1 appliance. The tool verifies this by checking the DMI OEM strings.
-
Docker is available on the host.
-
The tool is installed at
/usr/bin/ufm_sed_enable.sh. -
The following files are present in
/var/ufm-hw-tools/:-
ufm3-hw-mgmt-tools.tgz(Docker image) -
_ufm_sed_enable.sh(in-container script)
-
-
You have a keyphrase to use as the SED encryption key.
Keyphrase Requirements
The SED encryption key is set through iDRAC Local Key Management. The keyphrase must meet the following requirements:
-
Length: 8 to 32 characters.
-
Contains at least one uppercase letter.
-
Contains at least one lowercase letter.
-
Contains at least one digit.
-
Contains at least one special character, for example
!@#$%^&*. -
Contains no spaces.
Syntax
/usr/bin/ufm_sed_enable.sh --state
/usr/bin/ufm_sed_enable.sh --force --keyphrase=<PASSPHRASE>
/usr/bin/ufm_sed_enable.sh --help
Parameters
|
Parameter |
Description |
|---|---|
|
|
Reports the current SED state. This mode is read-only. |
|
|
Runs the SED enable procedure. |
|
|
Sets the passphrase for SED enablement. This parameter is required with |
|
|
Shows the usage and exits. |
Parameter Rules
-
You must specify exactly one mode:
--forceor--state. -
You must specify
--keyphrasewith--force. -
You cannot specify
--keyphrasewith--state.
Examples
To check the current encryption state, run:
/usr/bin/ufm_sed_enable.sh --state
To enable SED encryption, run:
/usr/bin/ufm_sed_enable.sh --force --keyphrase='YourSecurePassphrase'
Enabling and Verifying SED Encryption
-
Check the current SED state:
/usr/bin/ufm_sed_enable.sh --state
If SED is not enabled, the output reports the following:
-
The PERC controller (
RAID.SL.3-1) has no security key assigned. -
The virtual disk is not secured (
Secured=No). -
Not all physical disks are secured.
-
SED disk encryption is NOT set
-
Enable SED:
/usr/bin/ufm_sed_enable.sh --force --keyphrase=<PASSPHRASE>
The tool performs the following actions:
-
Loads the hardware management Docker image, if it is not already loaded.
-
Creates the PERC security key and encrypts the virtual disk.
-
Polls the iDRAC job until it completes. This can take up to about 10 minutes.
-
Verifies the encryption after the job completes.
If SED is already enabled, the tool reports the current state, prints SED is already enabled; nothing to do, and exits without making changes.
If the operation succeeds, the output contains the following:
-
A job message that contains
Job completed successfully. -
PERC RAID SED encryption completed successfully. A server reboot is recommended...
The post-encryption verification reports the following:
-
The controller has a security key assigned.
-
The virtual disk is secured (
Secured=Yes). -
Both physical disks report Secured (2/2).
-
SED disk encryption is enabled on the system
-
Check the SED state again:
/usr/bin/ufm_sed_enable.sh --state
Confirm that the controller, the virtual disk, and the physical disks all report secured, and that the final line of the output is SED disk encryption is enabled on the system.
-
(Recommended) Reboot the server so that the operating system recognizes the secured volumes correctly.
Logging
Each run writes a timestamped log file to /var/ufm-hw-tools/ufm_sed_enable_YYYYMMDD_HHMM.log. If the tool exits with an error, use this log to find the cause.
Error Conditions
|
Condition |
Expected Behavior |
|---|---|
|
You do not run the tool as |
The tool prints |
|
You run the tool on a system that is not a Dell UFM 3 appliance. |
The tool prints |
|
You specify |
The tool prints |
|
You specify |
The tool prints an error. |
|
You specify both |
The tool prints |
|
The hardware management tools or the SED script files are missing. |
The tool prints an error that includes the file path. |
|
The iDRAC job fails or times out. |
The tool exits with a non-zero exit code and writes a failure message to the log. |
Factory Resetting SED on UFM Enterprise Appliance
This procedure permanently erases both operating-system disks and removes the PERC security key. After the procedure finishes, the appliance does not boot and you must reinstall it.
Applicability
This procedure applies only to UFM Appliance 3. The two disks are behind the PERC controller RAID.SL.3-1 and form one RAID 1 volume.
How the Reset Works
-
A cryptographic erase destroys the encryption key on the drive. You cannot recover the data. The erase does not unlock the drive.
-
The controller does not erase a disk that is still a member of a RAID volume. For this reason, the procedure deletes the volume first.
-
Steps 1 through 4 only queue the changes. A single realtime job in step 5 applies the whole sequence.
-
The job removes the controller key and creates an empty RAID 1 volume, so the installer has a disk to use.
Prerequisites
Before you start, make sure that:
-
You have the iDRAC address.
-
You have an iDRAC account that can change storage settings.
-
Lockdown mode is disabled on your instance.
-
You run the commands from a host that can reach the iDRAC, and not from the appliance you are resetting.
Defining the racadm Function
To run the procedure from another UFM appliance, define the following function once in the same shell. The function runs racadm inside the ufm3-hw-mgmt-tools container, which keeps the commands in the steps short.
racadm() {
docker run --rm --privileged -v /dev:/dev -v /sys:/sys ufm3-hw-mgmt-tools racadm "$@"
}
If racadm is installed on another host, skip this function. The steps are the same, and racadm is the installed utility. The srvadmin-idracadm8 package is available from the Dell OpenManage repository.
Setting the Connection Variables
Set the connection variables once. The password is visible in the shell history.
export IDRAC=<idrac-address-or-hostname>
export USER=<idrac-username>
export PASSWORD='<idrac-password>'
If racadm rejects the iDRAC certificate, add --nocertwarn after racadm on every command in this procedure.
Confirming the Controller and Disk Names
Before you erase anything, list the controllers and the physical disks:
racadm -r "$IDRAC" -u "$USER" -p "$PASSWORD" storage get controllers
racadm -r "$IDRAC" -u "$USER" -p "$PASSWORD" storage get pdisks
Continue only if the output lists the controller RAID.SL.3-1 and the following two disks:
-
Disk.Bay.0:Enclosure.Internal.0-1:RAID.SL.3-1 -
Disk.Bay.1:Enclosure.Internal.0-1:RAID.SL.3-1
If the enclosure ID is not Enclosure.Internal.0-1, stop. Use the disk names that storage get pdisks prints in the commands in this procedure.
Resetting SED
-
Delete the virtual disk. This removes the RAID volume that holds the operating system.
racadm -r "$IDRAC" -u "$USER" -p "$PASSWORD" \
storage deletevd:Disk.Virtual.0:RAID.SL.3-1
-
Queue a cryptographic erase for each physical disk. The commands do not commit anything until step 5.
racadm -r "$IDRAC" -u "$USER" -p "$PASSWORD" \
storage cryptographicerase:Disk.Bay.0:Enclosure.Internal.0-1:RAID.SL.3-1
racadm -r "$IDRAC" -u "$USER" -p "$PASSWORD" \
storage cryptographicerase:Disk.Bay.1:Enclosure.Internal.0-1:RAID.SL.3-1
-
Delete the controller security key. This removes the SED key stored on the PERC.
racadm -r "$IDRAC" -u "$USER" -p "$PASSWORD" \
storage deletesecuritykey:RAID.SL.3-1
-
Create an empty RAID 1 volume. The new volume uses the same two disks.
racadm -r "$IDRAC" -u "$USER" -p "$PASSWORD" \
storage createvd:RAID.SL.3-1 -rl r1 \
-pdkey:Disk.Bay.0:Enclosure.Internal.0-1:RAID.SL.3-1,Disk.Bay.1:Enclosure.Internal.0-1:RAID.SL.3-1
-
Apply the queued storage changes. The
--realtimeoption runs the job without waiting for a later reboot. Copy the job ID from theCommit JID=JID_...line.
racadm -r "$IDRAC" -u "$USER" -p "$PASSWORD" \
jobqueue create RAID.SL.3-1 --realtime
-
Wait until the job finishes. To check the job, replace
JID_...with the job ID from step 5, and run the following command. Repeat the command every few seconds until the job finishes.
racadm -r "$IDRAC" -u "$USER" -p "$PASSWORD" jobqueue view -i JID_...
The job succeeded when it shows Status=Completed and a message that contains Job completed successfully. If the job shows Status=Completed with any other message, the reset failed.
-
Reboot the appliance.
-
Reinstall the appliance. The installer uses the empty RAID 1 volume.
Last updated: