Closed nkukard closed 4 months ago
Not sure if this will help, but in case you did delete namespace without first detaching could be the issue. I have noticed similar things in past. Simple controller reset helps in this case.
Don't you need to specify the size and capacity? Giving just the block size isn't enough; you have to say how many blocks you want. The parameters are "--nsze
" and "--ncap
". Newer versions have support for "-si
" versions for SI units too.
Note, the parameters are aligned to the hardware protocol specification, which are not necessarily intuitive, so check the help or manpage for a description of the units.
Don't you need to specify the size and capacity? Giving just the block size isn't enough; you have to say how many blocks you want. The parameters are "
--nsze
" and "--ncap
". Newer versions have support for "-si
" versions for SI units too.Note, the parameters are aligned to the hardware protocol specification, which are not necessarily intuitive, so check the help or manpage for a description of the units.
Thanks for the info :)
Note, the parameters are aligned to the hardware protocol specification, which are not necessarily intuitive, so check the help or manpage for a description of the units.
Ha, that was a bit optimistic: none the documentation is very clear on how these fields work. Anyway, you generally want "ncap" and "nsze" to be the same for most devices unless you're doing thin provisioning. They are in units of the "--block-size" value (so nsze=100 with 4096 block size is not the same as nsze=100 with 512 block size), and the number represents the largest block address (0 is a valid address), and some controllers want the value to be aligned on a particular granularity or require a minimum size or they won't succeed with the command.
Hi there, maybe someone can share some light on what I'm doing wrong.
I removed /dev/nvme0n1 which had a 512 block size and wanted to create the namespace with a 4096 block size.
Sadly after removing it, I was unable to create another one.
Here is the output I'm stuck on...
I'm using Arch..
Here is the output of id-ctrl....
I have 5 of these disks and I only tried this on the one, so I have others I can check...
Here is what another disk shows....