[SPDK] Re: nvmf_tgt does not start with -L flag though SPDK configured with --enable-debug option

Liu, Xiaodong <xiaodong.liu at intel.com>
Newsgroups dev.linux.lists.spdk
Message-ID <BY5PR11MB4276534E15F8DEFBD55715B28C5A0@BY5PR11MB4276.namprd11.prod.outlook.com>
Hi, Wenhua

I guess you were using a stale nvmf_tgt, not the newly built nvmf_tgt.
From v20.07, applications will be built at build/bin/*.
So just try:  build/bin/nvmf_tgt -m 0x3f -e 0x20 -L nvme -L nvmf -L nvmf_tcp

 --Thanks
From Xiaodong

-----Original Message-----
From: Wenhua Liu <liuw(a)vmware.com> 
Sent: Thursday, August 20, 2020 9:04 AM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: [SPDK] nvmf_tgt does not start with -L flag though SPDK configured with --enable-debug option

Hi,

I just had my SPDK system updated to v20.07.

While testing my NVMe-oF initiator, I wanted to check target side log, so I configured the SPDK with the –enable-debug option and ran make.

  1.  make clean
  2.  ./configure –enable-debug
  3.  Make

I then tried to start NVMe-oF target with -L flag but nvmf_tgt could not start.

~/spdk/spdk$ sudo app/nvmf_tgt/nvmf_tgt -m 0x3f -e 0x20 -L nvme -L nvmf -L nvmf_tcp
2020-08-20 00:50:38.757781 [0x7f55b3d75980] app.c: 943:spdk_app_parse_args: *ERROR*: app/nvmf_tgt/nvmf_tgt must be configured with --enable-debug for -L flag app/nvmf_tgt/nvmf_tgt [options]
options:
-c, --config <config>     config file (default none)
     --json <config>       JSON config file (default none)
     --json-ignore-init-errors
                           don't exit on invalid config entry ….

This used to work with v20.01 (or v20.04).

What could be wrong here?

Thanks,
-Wenhua Liu
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.