Sanitize operation for NVMe drives
The sanitize operation for Non-Volatile Memory Express (NVMe) drives deletes all the namespaces on the specified NVMe drive. The sanitize operation alters all user data in the NVM subsystem in such a way that the previous user data from any cache or nonvolatile media cannot be recovered.
To run the sanitize operation from the command line, use the following fastpath command:
diag [-c] -d device_name -T “nvme_sanitize -f”
- Flags
-
Table 1. Flags Flags Description -c Runs in the no-console mode without requiring any user interaction. Note: The sanitize operation for NVMe self-encrypting drives (SED) does not support the -c option.-d device_name Specifies the NVMe device on which to to run the sanitize operation. The device_name variable specifies the NVMe resource where the sanitize operation for NVMe drive must be performed. The device_name must be in the nvmX
format.-f Specifies the force option. To run the sanitize operation, you must specify the -f flag. -T Specifies the fastpath task to run on the NVMe device. To run the sanitize operation, use the nvme_sanitize task.