Preparing NVMe devices
After some preparation steps on the host, NVMe devices can be used as virtio block devices
on virtual servers.
Before you begin
- You need to know the function address of the NVMe device.
Procedure
The following steps describe a setup on the host that does not persist across host reboots. For a persistent setup, see your host
administration documentation.
Example
00000017 is offline, but assigned to the LPAR with
function address 1003:00:00.0.- Set the NVMe device
online.
# echo 1 > /sys/bus/pci/slots/00000017/power 1 - The lspci output now includes the
device.
# lspci ...
1003:00:00.0 Non-Volatile memory controller: ...... - Find a device node. There might be multiple nodes for this device. This example uses a
udev-created node that includes the function
address.
# ls /dev/** ... /dev/disk/by-path/pci-1003:00:00.0-nvme-1