From: Guixin Liu <kanie@linux.alibaba.com>
To: Christoph Hellwig <hch@lst.de>
Cc: kbusch@kernel.org, axboe@kernel.dk, sagi@grimberg.me,
linux-nvme@lists.infradead.org
Subject: Re: [PATCH v2] nvme: check at least one ns identification reported
Date: Thu, 7 Nov 2024 14:18:26 +0800 [thread overview]
Message-ID: <81fa2aef-9ada-4cea-8731-476883ba2f6d@linux.alibaba.com> (raw)
In-Reply-To: <20241107052836.GA1947@lst.de>
在 2024/11/7 13:28, Christoph Hellwig 写道:
> On Wed, Nov 06, 2024 at 06:47:43PM +0800, Guixin Liu wrote:
>> I assume that the dm-multipath
> dm-multipath is not supported with nvme..
Dm-multipath can be configured to support nvme,
/etc/multipath.conf:
devices {
device {
vendor "NVME"
product ".*"
path_grouping_policy group_by_prio
}
}
Here is the result of "multipath -l":
uuid.a2c24be7-ed8e-4033-9f26-5b9f230265fb dm-0NVME,Linux
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=0 status=active
|- 0:1:2:1 nvme0n2 259:0 active undef running
`- 1:2:2:1 nvme1n2 259:3 active undef running
If the target haven't report any indentification, the dm-multipath
will use wwid which generated by nvme host driver to recognize
which namespaces should be merged.
Here is the result of "multipath -l", if we dont report any identification:
nvme.0000-6135363837366563633830646133663261643034-4c696e7578-00000001
dm-0 NVME,Linux
size=1.0G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=0 status=active
|- 0:1:1:1 nvme0n1 259:0 active undef running
`- 1:2:1:1 nvme1n1 259:3 active undef running
>> will not recognize nvme device if nothing to
>> return,
> But more importantly the user of the sysfs files is the right place
> the just check for these values being non-present. As said before
> it's perfectly valid for 1.0 devices so they have to cope with it
> anyway. I don't think a message in the kernel log that is very to
> process algorithmically is not very useful.
>
> (I really with we'd have useful and required identifiers from the
> start, but that's a separate discussion)
Agree, I just worry about that some components denpend on this, currently,
no problem.
Best Regards,
Guixin Liu
prev parent reply other threads:[~2024-11-07 6:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-04 3:14 [PATCH v2] nvme: check at least one ns identification reported Guixin Liu
2024-11-04 13:15 ` Christoph Hellwig
2024-11-06 10:47 ` Guixin Liu
2024-11-07 5:28 ` Christoph Hellwig
2024-11-07 6:18 ` Guixin Liu [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=81fa2aef-9ada-4cea-8731-476883ba2f6d@linux.alibaba.com \
--to=kanie@linux.alibaba.com \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/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