I would like to run this command from within a docker-compose container:
nvme smart-log /dev/nvme0n1p1
Unfortunately I get this error:
/dev/nvme1n1p1: No such file or directory
How do I map this to the Docker environment?
Thanks!
I would like to run this command from within a docker-compose container:
nvme smart-log /dev/nvme0n1p1
Unfortunately I get this error:
/dev/nvme1n1p1: No such file or directory
How do I map this to the Docker environment?
Thanks!
Here's a partial answer, but still wishing for something better!
we were able to make this work by adding this flag:
--privileged -v /dev/nvme0n1p1:/dev/nvme0n1p1 \
Interestingly enough, there are two NVME drives, and adding this flag for one drive allowed us to check both in the container.
We would prefer not to give the container "privileged" access, however, read-only would be acceptable.
as to why we are doing this: we are running SAMSUNG NVME SSDs on our dev servers and (not surprisingly) we've had a few SSD failures :) - but like any potent drug, we refuse to give up the gains from these drives! Our goal is to actively monitor them for potential failure, by running daily managed scripts to check on their health. It's much easier for deployment to have them run within out docker environment(s), as it would fit nicely into the codebase. Thanks!