nvme-cli fail to discover
by AniruddhaSonawane from LinuxQuestions.org on (#5JQRJ)
I am trying to use nvme-cli inside my docker container.
I have provided my container root privilege and along with all the dependencies, I also installed nvme-cli to use nvme commands inside my docker container to connect to nvme devices.
Host OS: RHEL 8.1
Docker version: 20.10.6
Docker Image Details: fedora:33 as a base OS
Extra flags I use to run my container: --net=host --ipc host --privileged --cap-add SYS_ADMIN
nvme version 1.11.1
Although I am able to achieve my purpose by using 'nvme connect' command, which is working absolutely fine but for some reason 'nvme discover' is throwing me error.
This is the errors I receive for each command:
Code:$ nvme discover -t tcp -a <ip address> -s 4420
Failed to open /dev/nvme1: No such file or directory
Get discovery log page failed: -2Code:$ nvme discover -t tcp -a <ip address>
Failed to write to /dev/nvme-fabrics: Connection refusedSo, I am a bit curious about why it is showing me this behavior. I tried searching for this particular error but there is no article or forum as such where I found the solution.
It would be really nice if someone can please explain it. Or at least help me out figuring what is happening exactly and how can I solve this error.
I have provided my container root privilege and along with all the dependencies, I also installed nvme-cli to use nvme commands inside my docker container to connect to nvme devices.
Host OS: RHEL 8.1
Docker version: 20.10.6
Docker Image Details: fedora:33 as a base OS
Extra flags I use to run my container: --net=host --ipc host --privileged --cap-add SYS_ADMIN
nvme version 1.11.1
Although I am able to achieve my purpose by using 'nvme connect' command, which is working absolutely fine but for some reason 'nvme discover' is throwing me error.
This is the errors I receive for each command:
Code:$ nvme discover -t tcp -a <ip address> -s 4420
Failed to open /dev/nvme1: No such file or directory
Get discovery log page failed: -2Code:$ nvme discover -t tcp -a <ip address>
Failed to write to /dev/nvme-fabrics: Connection refusedSo, I am a bit curious about why it is showing me this behavior. I tried searching for this particular error but there is no article or forum as such where I found the solution.
It would be really nice if someone can please explain it. Or at least help me out figuring what is happening exactly and how can I solve this error.