Problem Description
You have pmem set to Memory Mode but get the following failure message when trying to set it back to AppDirect Mode:
ipmctl create -goal PersistentMemoryType=AppDirect Create region configuration goal failed: Error (36) - Please set device security state to 'disabled' and try again.
Explanation
When a system is already configured in "Memory Mode" it cannot simply be re-configured to "AppDirect Mode" because it will erase all the existing data. There are specific steps to achieve this, though.Solution
The allocation goal for NVDIMM can be changed using either ipmctl or via BIOS.
Configuring in BIOS should be easier:
- Change the allocation goal in the BIOS to the AppDirect (consult your hardware provider for the exact steps).
- Reboot your machine.
- Finish the pmem setup using the other command line tool ndctl.
Refer to the ipmctl-create-goal man page for details on an alternative way to achieve this.
Notes
-
Configuring the Aerospike Server Primary Index to Persistent Memory.
-
ndctl is a more generic utility for all vendors while ipmctl is open source maintained by Intel for its Optane products. Here is a Quick Start Guide.
-
More details about AppDirect Configuration.
-
To change allocation goal using ipmctl, refer to the ipmctl-create-goal man page.
-
You should be configured to use AppDirect rather than the AppDirectNotInterleaved mode. More details on the Quick Start Guide.