linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Sudheendra Sampath <sudheendra.sampath@gmail.com>
To: linux-nvme@lists.infradead.org
Subject: Fwd: Question about nvmetcli (tcp)
Date: Thu, 26 Dec 2019 14:50:19 -0800	[thread overview]
Message-ID: <CABnqofyB5uY2_USYyaHQOZyh6aONoa=sKX9=+REH6oivo44j2w@mail.gmail.com> (raw)
In-Reply-To: <CABnqofwdPfb=RfCDUh6kU2CUV4v0xxVaT--rfQOZMJy6DG3MTQ@mail.gmail.com>

Hi,

Apologies for flooding your inbox.

I am trying to setup a target -> initiator using nvmetcli.  Below is
my json file :

{
  "hosts": [],
  "ports": [
    {
      "addr": {
        "adrfam": "ipv4",
        "traddr": "192.168.123.32",
        "treq": "not specified",
        "trsvcid": "4420",
        "trtype": "tcp"
      },
      "portid": 1,
      "referrals": [],
      "subsystems": []
    }
  ],
  "subsystems": [
    {
      "allowed_hosts": [],
      "attr": {
        "allow_any_host": "1",
        "serial": "a33829313050f265",
        "version": "1.3"
      },
      "namespaces": [
        {
          "device": {
            "nguid": "00000000-0000-0000-0000-000000000000",
            "path": "/dev/nvme0n1",
            "uuid": "e8b0ccf0-9fce-4efc-877a-07c0f1ecc086"
          },
          "enable": 1,
          "nsid": 1
        }
      ],
      "nqn": "simnqn"
    }
  ]
}

When I run 'nvmetcli restore foo.json", I see the following in dmesg :

[Fri Dec 20 11:20:53 2019] nvmet: adding nsid 1 to subsystem simnqn
(On target system)     <<<<<

Now, from the client machine when I try to connect using 'nvme
connect', I get 'connection refused'.

root@initiator01:/home/ssgroot# nvme connect -t tcp -n simnqn -a
192.168.123.32 -s 4420
Failed to write to /dev/nvme-fabrics: Connection refused

The 'dmesg' output on the client system shows :

[Fri Dec 20 11:35:55 2019] nvme nvme0: failed to connect socket: -111
(On initiator system)   <<<<<

Any help appreciated.

-- 
Regards

Sudheendra Sampath

_______________________________________________
linux-nvme mailing list
linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

      parent reply	other threads:[~2019-12-27  7:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CABnqofwdPfb=RfCDUh6kU2CUV4v0xxVaT--rfQOZMJy6DG3MTQ@mail.gmail.com>
2019-12-20 23:42 ` Question about nvmetcli (tcp) Sagi Grimberg
     [not found]   ` <CABnqofzJybjHwLhuoC26bt7W05dc3ZjWa9OkmuD1_7-Y7ma3Xg@mail.gmail.com>
2019-12-28 17:10     ` Fwd: " Sudheendra Sampath
2019-12-26 22:50 ` Sudheendra Sampath [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABnqofyB5uY2_USYyaHQOZyh6aONoa=sKX9=+REH6oivo44j2w@mail.gmail.com' \
    --to=sudheendra.sampath@gmail.com \
    --cc=linux-nvme@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).