NVMe namespace creation or format fails with INVALID_OPCODE

Solution Verified - Updated -

Issue

  • Unable to create NVMe namespace:
[root@host]# nvme create-ns /dev/nvme0n1 --nsze=4096 --ncap=4096 --flbas=0 --dps=0
NVMe Status:INVALID_OPCODE: The associated command opcode field is not valid(1)
  • Unable to format NVMe device:
[root@host]# nvme format /dev/nvme0n1
NVME Admin command error:INVALID_OPCODE: The associated command opcode field is not valid(4001)

Environment

  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content