SPDK绑定nvme磁盘失败报错

如下在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  -          -
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

robin5911

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值