Skip to content

Instantly share code, notes, and snippets.

@Smithx10
Created April 7, 2021 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Smithx10/bd3fa6c39f61aff9f6a44935e2c5c752 to your computer and use it in GitHub Desktop.
Save Smithx10/bd3fa6c39f61aff9f6a44935e2c5c752 to your computer and use it in GitHub Desktop.
[root@ac-1f-6b-bb-d2-23 (us-east-2) /zones/cloudops]# nvmeadm -v load-firmware nvme0 ./vdv10170.bin
1536000 bytes downloaded.
[root@ac-1f-6b-bb-d2-23 (us-east-2) /zones/cloudops]# nvmeadm -v commit-firmware nvme0 2
Firmware committed to slot 2.
[root@ac-1f-6b-bb-d2-23 (us-east-2) /zones/cloudops]# nvmeadm -v activiate-firmware nvme0 2
usage:
nvmeadm -h [<command>]
nvmeadm [-dv] <command> <ctl>[/<ns>][,...] [<args>]
Manage NVMe controllers and namespaces.
commands:
list - list controllers and namespaces
identify - identify controllers and/or namespaces
get-logpage - get a log page from controllers and/or namespaces
get-features - get features from controllers and/or namespaces
format - format namespace(s) of a controller
secure-erase - secure erase namespace(s) of a controller
detach - detach blkdev(7d) from namespace(s) of a controller
attach - attach blkdev(7d) to namespace(s) of a controller
load-firmware - load firmware to a controller
commit-firmware - commit downloaded firmware to a slot of a controller
activate-firmware - activate a firmware slot of a controller
flags:
-h print usage information
-d print information useful for debugging nvmeadm
-v print verbose information
[root@ac-1f-6b-bb-d2-23 (us-east-2) /zones/cloudops]# nvmeadm -v activate-firmware nvme0 2
nvmeadm: Failed to activate slot 2: Success
[root@ac-1f-6b-bb-d2-23 (us-east-2) /zones/cloudops]#
[root@ac-1f-6b-bb-d2-23 (us-east-2) /zones/cloudops]# nvmeadm get-logpage nvme0 firmware
nvmeadm: nvme0: no such controller or namespace
[root@ac-1f-6b-bb-d2-23 (us-east-2) /zones/cloudops]# diskinfo
TYPE DISK VID PID SIZE RMV SSD
NVME c1t5CD2E491BD290100d0 INTEL SSDPE2KE032T8 2980.82 GiB no yes
NVME c2t5CD2E48CBD290100d0 INTEL SSDPE2KE032T8 2980.82 GiB no yes
NVME c3t5CD2E433B8290100d0 INTEL SSDPE2KE032T8 0.00 GiB no yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment