The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.
Change pmem to use AppDirect mode
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.
Keywords
PMEM NVDIMM IPMCTL NDCTL BIOS
Timestamp
August 2019