Skip to contentSkip to conversation

Namespaces on MZQL2960HCJR-00A07

DISCUSSION Michael Fuckner 2 participants 4 messages Oct 9, 2021 – Oct 20, 2021 NVMe

lore
Share & tools
lore
#0 lore raw

I have a system with 2x PM9A3 (FW GDC5302Q) and nvme1 shall use namespacesfor testing.

I could use nvme detach-ns, delete-ns and create-ns, but it fails at attach-ns the new namespace to make it usable:

test135:~ # nvme id-ctrl /dev/nvme1|grep -e nn -e cntlid
cntlid : 0x6
nn : 32
test135:~ # nvme attach-ns /dev/nvme1 --namespace-id=1 -controllers=0x6
NVMe status: Controller List Invalid: The controller list provided contains invalid controller ids(0x211c)

Any idea how to attach this or other namespaces back so I can use the drive?

Regards,
Michael!

_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme

maintainer
#1 lore raw
Quoted 8 lines · Michael Fuckner

I have a system with 2x PM9A3 (FW GDC5302Q) and nvme1 shall use namespacesfor testing.

I could use nvme detach-ns, delete-ns and create-ns, but it fails at attach-ns the new namespace to make it usable:

test135:~ # nvme id-ctrl /dev/nvme1|grep -e nn -e cntlid
cntlid : 0x6
nn : 32
test135:~ # nvme attach-ns /dev/nvme1 --namespace-id=1 -controllers=0x6

The long options should use "--" rather than just the single "-". I'm unsure if that changes the parsing, though.

Quoted 3 lines

NVMe status: Controller List Invalid: The controller list provided contains invalid controller ids(0x211c)

Any idea how to attach this or other namespaces back so I can use the drive?

Was the namespace attached to cntlid 0x6 prior to the detach/delete part of the test?

When you created the namespace, did the output confirm the namespace was created as nsid 1?

Is the namespace attached to any other controllers? You have to specify multi-controller enabled when creating the namespace in that case.

_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme

#2 lore raw

Hi,

Quoted 3 lines · Keith Busch

On Sat, Oct 09, 2021 at 10:53:15AM +0200, Michael Fuckner wrote:
The long options should use "--" rather than just the single "-". I'm unsure if that changes the parsing, though.

doesn't make a difference:
nvme attach-ns /dev/nvme7 -c 6 -n 1
NVMe status: Controller List Invalid: The controller list provided contains invalid controller ids(0x211c)

Quoted 2 lines
Quoted 1 line

Was the namespace attached to cntlid 0x6 prior to the detach/delete part

of the test?

this is a similar system also all drives connected directly to EPYC CPUs. This drive still has the default ns:

test220:~ # nvme id-ctrl /dev/nvme1
NVME Identify Controller:
vid : 0x144d
ssvid : 0x144d
sn : S64HNE0R902239
mn : SAMSUNG MZQL23T8HCLS-00A07
fr : GDC5302Q
rab : 2
ieee : 002538
cmic : 0
mdts : 9
cntlid : 0x6
ver : 0x10400
rtd3r : 0x7a1200
rtd3e : 0x7a1200
oaes : 0x300
ctratt : 0x80
rrls : 0
cntrltype : 1

fguid     :
crdt1     : 0
crdt2     : 0
crdt3     : 0
oacs      : 0x5f
acl       : 7
aerl      : 3
frmw      : 0x17
lpa       : 0xe
elpe      : 63
npss      : 1
avscc     : 0x1
apsta     : 0
wctemp    : 353
cctemp    : 356
mtfa      : 0
hmpre     : 0
hmmin     : 0
tnvmcap   : 3840755982336
unvmcap   : 0
rpmbs     : 0
edstt     : 35
dsto      : 1
fwug      : 0
kas       : 0
hctma     : 0
mntmt     : 0
mxtmt     : 0
sanicap   : 0x3
hmminds   : 0
hmmaxd    : 0

nsetidmax : 0
endgidmax : 0
anatt : 0
anacap : 0
anagrpmax : 0
nanagrpid : 0
pels : 0
sqes : 0x66
cqes : 0x44
maxcmd : 256
nn : 32
oncs : 0x5f
fuses : 0
fna : 0x4
vwc : 0x6
awun : 1023
awupf : 7
icsvscc : 1
nwpc : 0
acwu : 0
sgls : 0
mnan : 0
subnqn : nqn.1994-11.com.samsung:nvme:PM9A3:2.5-inch:S64HNE0R902239
ioccsz : 0
iorcsz : 0
icdoff : 0
fcatt : 0
msdbd : 0
ofcs : 0
ps 0 : mp:25.00W operational enlat:70 exlat:70 rrt:0 rrl:0

          rwt:0 rwl:0 idle_power:4.00W active_power:-
ps    1 : mp:8.00W operational enlat:70 exlat:70 rrt:1 rrl:1
          rwt:1 rwl:1 idle_power:4.00W active_power:-

test220:~ #

Quoted 3 lines

When you created the namespace, did the output confirm the namespace was created as nsid 1?

yes, I can create and delete namespaces, but I can not attach them:

test220:~ # nvme create-ns /dev/nvme7 -s 26214387 -c 26214387 -b 4096
create-ns: Success, created nsid:1
test220:~ # nvme attach-ns /dev/nvme7 -n 1 -c 0x6
NVMe status: Controller List Invalid: The controller list provided contains invalid controller ids(0x211c) test220:~ # nvme delete-ns /dev/nvme7 -n 1
delete-ns: Success, deleted nsid:1
test220:~ #

Quoted 2 lines

Is the namespace attached to any other controllers? You have to specify multi-controller enabled when creating the namespace in that case.

no, just 4 lanes from CPU to NVMe Drive.

Hope this helps,
Michael!

_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme

#3 lore raw
Quoted 10 lines · On 12/10/2021 10:28 Michael Fuckner <[email protected]> wrote:

test220:~ # nvme create-ns /dev/nvme7 -s 26214387 -c 26214387 -b 4096
create-ns: Success, created nsid:1
test220:~ # nvme attach-ns /dev/nvme7 -n 1 -c 0x6
NVMe status: Controller List Invalid: The controller list provided contains invalid controller ids(0x211c)
test220:~ # nvme delete-ns /dev/nvme7 -n 1
delete-ns: Success, deleted nsid:1

Hi,

got another drive to play with (Micron 7400) and I can use the nvme tool as expected- so I just consider Samsung Firmware broken?

ram1:~ # nvme create-ns /dev/nvme0 -s 26214387 -c 26214387 -b 4096 -dps 0 -nmic 0
create-ns: Success, created nsid:2
ram1:~ # nvme attach-ns /dev/nvme0 -n 2 -c 0
attach-ns: Success, nsid:2
ram1:~ # nvme list
Node SN Model Namespace Usage Format FW Rev
--------------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------

nvme0n2               213331B0EE15         Micron_7400_MTFDKBG3T8TDZ                2           0.00   B / 107.37  GB      4 KiB +  0 B   E1MU231W
nvme0n1               213331B0EE15         Micron_7400_MTFDKBG3T8TDZ                1           0.00   B / 107.37  GB      4 KiB +  0 B   E1MU231W

ram1:~ #

Regards,
Michael!