Unmount an NVMe Storage Drive

  1. Log in to Oracle Solaris that is running on the server.
  2. To find the NVMe drive slot number, type:

    # hotplug list -lc

    This command produces output similar to the following for each of the NVMe drives installed in the server:

    hotplug list -lc
    Connection           State           Description Path
    ________________________________________________________________________________
    Slot0                EMPTY           PCIe-Native /pci@0,0/pci8086,a190@1c
    /SYS/DBP/HDD1/NVME   EMPTY           PCIe-Native /pci@4,0/pci8086,347a@2
    /SYS/DBP/HDD5/NVME   EMPTY           PCIe-Native /pci@4,0/pci8086,347b@3
    /SYS/DBP/HDD0/NVME   ENABLED         PCIe-Native /pci@4,0/pci8086,347c@4
    /SYS/DBP/HDD4/NVME   EMPTY           PCIe-Native /pci@4,0/pci8086,347d@5
    /SYS/DBP/HDD3/NVME   EMPTY           PCIe-Native /pci@b,0/pci8086,347a@2
    /SYS/DBP/HDD7/NVME   EMPTY           PCIe-Native /pci@b,0/pci8086,347b@3
    /SYS/DBP/HDD2/NVME   EMPTY           PCIe-Native /pci@b,0/pci8086,347c@4
    /SYS/DBP/HDD6/NVME   EMPTY           PCIe-Native /pci@b,0/pci8086,347d@5
    
  3. To prepare the NVMe drive for removal, that is, to detach the device driver and power off the drive slot, type the following commands:

    # hotplug poweroff /SYS/DBP/HDD0/NVME

    # hotplug list -lc

    The following output appears for the NVMe drive that has been unmounted:

    # 
    # hotplug list -lc
    Connection           State           Description Path
    ________________________________________________________________________________
    Slot0                EMPTY           PCIe-Native /pci@0,0/pci8086,a190@1c
    /SYS/DBP/HDD1/NVME   EMPTY           PCIe-Native /pci@4,0/pci8086,347a@2
    /SYS/DBP/HDD5/NVME   EMPTY           PCIe-Native /pci@4,0/pci8086,347b@3
    /SYS/DBP/HDD0/NVME   PRESENT         PCIe-Native /pci@4,0/pci8086,347c@4
    /SYS/DBP/HDD4/NVME   EMPTY           PCIe-Native /pci@4,0/pci8086,347d@5
    /SYS/DBP/HDD3/NVME   EMPTY           PCIe-Native /pci@b,0/pci8086,347a@2
    /SYS/DBP/HDD7/NVME   EMPTY           PCIe-Native /pci@b,0/pci8086,347b@3
    /SYS/DBP/HDD2/NVME   EMPTY           PCIe-Native /pci@b,0/pci8086,347c@4
    /SYS/DBP/HDD6/NVME   EMPTY           PCIe-Native /pci@b,0/pci8086,347d@5
  4. Verify that the OK to Remove indicator (LED) on the NVMe storage drive is lit.