Reformatting NVMe devices manually

You can modify the sector size of NVMe devices by removing the device from VxVM and reformatting it.

To reformat NVMe devices manually

  1. Take the disk offline.
    # vxdisk offline r720xd-114217_intel_nvme0_0
  2. Remove the device from VxVM.
    # vxdisk rm r720xd-114217_intel_nvme0_0
  3. Removing the NVMe device from the operating system.
    # echo 1 > /sys/block/nvme0n1/device/device/remove
  4. Refresh the VxVM device tree.
    # vxdisk scandisks
  5. Verify that device is not present.
    # vxdisk list | grep nvme
  6. Rescan the NVMe PCI device to add it to the operating system device tree.
    # echo 1 > /sys/bus/pci/rescan 
    # echo 1 > /sys/bus/pci/drivers/nvme/0000\:05\:00.0/rescan 
  7. Format the NVMe device to the required sector size using the Intel® SSD Data Center Tool (ISDCT).
    # isdct start -intelssd 0 -nvmeformat LBAFormat=3 SecureEraseSetting=0 \
    ProtectionInformation=0 MetadataSettings=0
    WARNING! You have selected to format the drive! 
    Proceed with the format? (Y|N): y
    Formatting...
    
    - Intel SSD DC P3700 Series CVFT5456000V2P0EGN -
    
    Status : NVMeFormat successful.
  8. Refresh the VxVM device tree.
    # vxdisk scandisks
  9. Verify the device.
    # vxdisk list | grep nvme
    r720xd-114217_intel_nvme0_0 auto:none  -   - online invalid