如下在spdk 接管设备时,报错Active devices: data@nvme0n1, so not binding PCI dev
#scripts/setup.sh
0000:84:00.0 (1c5f 0540): Active devices: data@nvme0n1, so not binding PCI dev
0000:80:04.2 (8086 0e22): ioatdma -> uio_pci_generic
0000:80:04.3 (8086 0e23): ioatdma -> uio_pci_generic
0000:80:04.0 (8086 0e20): ioatdma -> uio_pci_generic
0000:80:04.1 (8086 0e21): ioatdma -> uio_pci_generic
0000:80:04.6 (8086 0e26): ioatdma -> uio_pci_generic
0000:80:04.7 (8086 0e27): ioatdma -> uio_pci_generic
0000:80:04.4 (8086 0e24): ioatdma -> uio_pci_generic
0000:80:04.5 (8086 0e25): ioatdma -> uio_pci_generic
0000:00:04.2 (8086 0e22): ioatdma -> uio_pci_generic
0000:00:04.3 (8086 0e23): ioatdma -> uio_pci_generic
0000:00:04.0 (8086 0e20): ioatdma -> uio_pci_generic
0000:00:04.1 (8086 0e21): ioatdma -> uio_pci_generic
0000:00:04.6 (8086 0e26): ioatdma -> uio_pci_generic
0000:00:04.7 (8086 0e27): ioatdma -> uio_pci_generic
0000:00:04.4 (8086 0e24): ioatdma -> uio_pci_generic
0000:00:04.5 (8086 0e25): ioatdma -> uio_pci_generic
于是查看磁盘信息, 原因是曾经被我格式化过了
# blkid /dev/nvme0n1
/dev/nvme0n1: UUID="3ea74d7b-1ee4-45c1-9a9e-6eee7c424270" BLOCK_SIZE="512" TYPE="xfs"
此时需要使用dd 将文件系统信息擦除
#dd if=/dev/zero of=/dev/nvme0n1
SPDK再次接管
# scripts/setup.sh
0000:80:04.2 (8086 0e22): Already using the uio_pci_generic driver
0000:80:04.3 (8086 0e23): Already using the uio_pci_generic driver
0000:80:04.0 (8086 0e20): Already using the uio_pci_generic driver
0000:80:04.1 (8086 0e21): Already using the uio_pci_generic driver
0000:80:04.6 (8086 0e26): Already using the uio_pci_generic driver
0000:80:04.7 (8086 0e27): Already using the uio_pci_generic driver
0000:80:04.4 (8086 0e24): Already using the uio_pci_generic driver
0000:80:04.5 (8086 0e25): Already using the uio_pci_generic driver
0000:00:04.2 (8086 0e22): Already using the uio_pci_generic driver
0000:00:04.3 (8086 0e23): Already using the uio_pci_generic driver
0000:00:04.0 (8086 0e20): Already using the uio_pci_generic driver
0000:00:04.1 (8086 0e21): Already using the uio_pci_generic driver
0000:00:04.6 (8086 0e26): Already using the uio_pci_generic driver
0000:00:04.7 (8086 0e27): Already using the uio_pci_generic driver
0000:00:04.4 (8086 0e24): Already using the uio_pci_generic driver
0000:00:04.5 (8086 0e25): Already using the uio_pci_generic driver
0000:84:00.0 (1c5f 0540): nvme -> uio_pci_generic
# scripts/setup.sh status
Hugepages
node hugesize free / total
node0 1048576kB 0 / 0
node0 2048kB 1024 / 1024
node1 1048576kB 0 / 0
node1 2048kB 0 / 0
Type BDF Vendor Device NUMA Driver Device Block devices
I/OAT 0000:00:04.0 8086 0e20 0 uio_pci_generic - -
I/OAT 0000:00:04.1 8086 0e21 0 uio_pci_generic - -
I/OAT 0000:00:04.2 8086 0e22 0 uio_pci_generic - -
I/OAT 0000:00:04.3 8086 0e23 0 uio_pci_generic - -
I/OAT 0000:00:04.4 8086 0e24 0 uio_pci_generic - -
I/OAT 0000:00:04.5 8086 0e25 0 uio_pci_generic - -
I/OAT 0000:00:04.6 8086 0e26 0 uio_pci_generic - -
I/OAT 0000:00:04.7 8086 0e27 0 uio_pci_generic - -
I/OAT 0000:80:04.0 8086 0e20 1 uio_pci_generic - -
I/OAT 0000:80:04.1 8086 0e21 1 uio_pci_generic - -
I/OAT 0000:80:04.2 8086 0e22 1 uio_pci_generic - -
I/OAT 0000:80:04.3 8086 0e23 1 uio_pci_generic - -
I/OAT 0000:80:04.4 8086 0e24 1 uio_pci_generic - -
I/OAT 0000:80:04.5 8086 0e25 1 uio_pci_generic - -
I/OAT 0000:80:04.6 8086 0e26 1 uio_pci_generic - -
I/OAT 0000:80:04.7 8086 0e27 1 uio_pci_generic - -
NVMe 0000:84:00.0 1c5f 0540 1 uio_pci_generic - -