Closed JigaoLuo closed 3 weeks ago
Sorry please change the value option as below.
- nvme set-feature /dev/nvme0 -f 0x06 -v 0x01
+ nvme set-feature /dev/nvme0 -f 0x06 -V 0x01
or
+ nvme set-feature /dev/nvme0 -f 0x06 --value=0x01
Or use the long options.
nvme set-feature /dev/nvme0 -f 0x06 --value=0x01
Hi @ikegami-t @keithbusch
Thanks.
The --value=0x01
works!
(At my nvmecli version the -V
doesnot exist)
Yes, so, with the best intentions, unifying short options across sub-commands is a good idea, but that kind of change on any command line based utility code risks collisions. This is a hindsight thing: it makes sense to do for consistency, but it is an unfortunate API breakage.
I recently discovered it is possible to enable and disable the NVMe Volatile Write Cache (VWC). I successfully disabled it with the following commands:
The VWC was disabled as expected. However, when I tried to re-enable it, the command did not work, that the value still 00000000:
The VWC remains disabled. So, my question: How can I re-enable the VWC without rebooting?
Additional Information:
NVMe controller details:
Any insights or suggestions would be greatly appreciated!