[SPDK] nvme_bdev_add_ns: *ERROR*: Namespaces are not identical.
lullajd at yahoo.com Sun, 21 Nov 2021 23:06:46 +0000
| Newsgroups | dev.linux.lists.spdk |
|---|---|
| Message-ID | <[email protected]> |
Hi,
This is with v21.10-rc1-122-g64fa301f6
When I try to configure multipath and run bdevperf, I see that nvme_bdev_add_ns() is complaining that "Namespaces are not identical". Could anybody please suggest what is wrong in the conf file ?
Here is my nvme discover o/p at initiator:
root(a)myVM:~/user/spdk# nvme discover -t tcp -a 10.1.109.152 -q nqn.2015-09.com.Xyz:15.4.7.3
Discovery Log Number of Records 2, Generation counter 1
=====Discovery Log Entry 0======
trtype: tcp
adrfam: ipv4
subtype: nvme subsystem
treq: not specified
portid: 0
trsvcid: 4420
subnqn: nqn.2015-09.com.xyz:93111e6e-663a-4ad0-9028-a3d75d90e5d3
traddr: 15.161.1.2
sectype: none
=====Discovery Log Entry 1======
trtype: tcp
adrfam: ipv4
subtype: nvme subsystem
treq: not specified
portid: 0
trsvcid: 4420
subnqn: nqn.2015-09.com.xyz:93111e6e-663a-4ad0-9028-a3d75d90e5d3
traddr: 15.162.2.2
sectype: none
here is my dev_new.conf
root(a)myVM:~/user/spdk# cat ../bdev_new.conf
{
"subsystems": [
{
"subsystem": "bdev",
"config": [
{
"method": "bdev_nvme_set_options", "params": {
"timeout_us": 255000000,
"bdev_retry_count": -1,
"action_on_timeout": "none"
}
},
{
"method": "bdev_nvme_attach_controller", "params": {
"name": "Nvme0",
"trtype": "tcp",
"traddr": "15.161.1.2",
"trsvcid": "4420",
"subnqn": "nqn.2015-09.com.xyz:93111e6e-663a-4ad0-9028-a3d75d90e5d3",
"adrfam": "IPv4",
"hostnqn": "nqn.2015-09.com.Xyz:15.4.7.3",
"multipath": "multipath"
}
},
{
"method": "bdev_nvme_attach_controller", "params": {
"name": "Nvme0",
"trtype": "tcp",
"traddr": "15.162.2.2",
"trsvcid": "4420",
"subnqn": "nqn.2015-09.com.xyz:93111e6e-663a-4ad0-9028-a3d75d90e5d3",
"adrfam": "IPv4",
"multipath": "multipath",
"hostnqn": "nqn.2015-09.com.Xyz:15.4.7.3"
}
}
]
}
]
}
here is the bdevperf run showing "Namespaces are not identical".
root(a)myVM:~/user/spdk# ./test/bdev/bdevperf/bdevperf -q 1 -o 4096 -w randwrite -c /home/localadmin/user/bdev_new.conf -t 60 -k 9999999
[2021-11-21 22:56:23.465497] Starting SPDK v22.01-pre git sha1 64fa301f6 / DPDK 21.08.0 initialization...
[2021-11-21 22:56:23.465680] [ DPDK EAL parameters: [2021-11-21 22:56:23.466282] bdevperf [2021-11-21 22:56:23.466548] --no-shconf [2021-11-21 22:56:23.466602] -c 0x1 [2021-11-21 22:56:23.467107] --log-level=lib.eal:6 [2021-11-21 22:56:23.467165] --log-level=lib.cryptodev:5 [2021-11-21 22:56:23.467690] --log-level=user1:6 [2021-11-21 22:56:23.467745] --iova-mode=pa [2021-11-21 22:56:23.467994] --base-virtaddr=0x200000000000 [2021-11-21 22:56:23.468136] --match-allocations [2021-11-21 22:56:23.468172] --file-prefix=spdk_pid12913 [2021-11-21 22:56:23.468262] ]
TELEMETRY: No legacy callbacks, legacy socket not created
[2021-11-21 22:56:23.600199] app.c: 543:spdk_app_start: *NOTICE*: Total cores available: 1
[2021-11-21 22:56:23.877499] reactor.c: 943:reactor_run: *NOTICE*: Reactor started on core 0
[2021-11-21 22:56:23.886093] accel_engine.c:1012:spdk_accel_engine_initialize: *NOTICE*: Accel engine initialized to use software engine.
[2021-11-21 22:56:24.102809] bdev_nvme.c:2555:nvme_bdev_add_ns: *ERROR*: Namespaces are not identical.
Running I/O for 60 seconds...
Job: Nvme0n1 (Core Mask 0x1)
Nvme0n1 : 14367.88 IOPS 56.12 MiB/s
=============================================================
Total : 14367.88 IOPS 56.12 MiB/s
root(a)myVM:~/user/spdk#