3

Using nvme-create-ns, we can assign namespace size and namespace capacity; what's the difference?

Is it necessary to do this before using a NVMe SSD?

2

A namespace can have a different size and capacity thanks to thin provisioning. The namespace’s size is the total size of the namespace (in logical blocks). The namespace’s capacity is the maximum number of logical blocks which can really be allocated in the namespace. So you can create a namespace which is larger than your real capacity.

This isn’t useful on a single NVMe SSD; it’s the sort of feature which only makes sense in SAN-style deployments. See the NVMe specifications for details.

For a typical SSD I wouldn’t expect you to need to do anything related to namespaces. It should come with a pre-existing namespace, and you should be able to use that directly, without even being aware that NVMe supports namespaces.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.