-
Notifications
You must be signed in to change notification settings - Fork 2k
Link Issue on volume creation #133
Comments
First of all, you shouldn't use And yes, it's a known limitation: |
Thanks, I missed the limitations bit. Opted to use /usr/local/nvidia-docker as the default volume |
I am experiencing this problem as well because I have '/var' on a separate partition from '/usr' where the nvidia drivers are located. I would like to switch the default volume location to a folder in '/usr' as the workaround suggests. However, I cannot, for the life of me, figure out how to accomplish this using I am running: and the change appears to be taking place,
but then I run this:
and I still get this error
@flx42, would you be able to point me in the right direction? or, @guilhermehartmann, how were you able to use /usr/local/nvidia-driver as your default volume? Apologies as I am new to Docker and it seems I have jumped into the deep end of the pool :-). Thanks! |
@dpatschke Look at your log after running
This is because the |
Thank you for your response, @flx42. I am running Ubuntu 16.04. I would love to be able to modify some configuration file and restart docker or the nvidia-docker-plugin or whatever, but have been scouring the web and message boards for hours and can't seem to find what I am looking for. Would you be able to point me to the correct config file to modify? Also, I have no idea how nvidia-docker-plugin is running in the first place. Is the plugin launched when the docker service is started? How do I stop the current plugin and 'restart' one with the 'd' option? Thank you very much for your help!! David |
Something like that
|
Thank you @flx42 ... unfortunately, I could not get the problem resolved. I executed the 'edit' command as you suggested and created the file with what you had listed. The 'nano' editor wanted to save it as 'override.conf' with a bunch of additional characters at the end. I ended up saving the file as /etc/systemd/system/nvidia-docker.service.d/override.conf. I then restarted the systemd service: I am still getting the old folder when I issue the command: Here is the output:
When I issue the command: Now, when I issue the following command, though: I get the following error: |
Don't try to start |
Yeah ... did a a When I do a I am also stlll getting the 'address already in use' error as well. I don't know where things went wrong but any other suggestions/recommendations would be greatly appreciated. David |
@dpatschke: give me the output of
|
Looks like I didn't have the nvidia-docker service started last time. Started it up again, but was still erroring out. Here is the output from your recommended command:
This looks good, doesn't it? Still getting this error, though, when actually trying to launch nvidia-docker: |
@dpatschke yes it looks good.
Then restart If you still have the problem after that, please file a new bug with the new output of |
OK, will do it again ... thank you so much for your help and guidance! |
Not sure if anyone will find this useful, but there was the one last step I had to do to get this working: Ensure that the directory specified by the -d in the systemd config file exists and is owned by nvidia-docker:
|
this solution help me a lot. I use centos7.2 with k40c x 4 |
While creating the volume I get this issue, seems to be caused by hard link crossing two different partitions. Is this a know issue ?
sudo nvidia-docker volume setupnvidia-docker-plugin | 2016/07/08 02:12:39 Received remove request for volume 'nvidia_driver_367.27'
nvidia-docker run --rm nvidia/cuda nvidia-sminvidia-docker-plugin | 2016/07/08 02:12:52 Received create request for volume 'nvidia_driver_367.27'
nvidia-docker-plugin | 2016/07/08 02:12:52 Error: link /usr/bin/nvidia-cuda-mps-control /var/lib/nvidia-docker/volumes/nvidia_driver/367.27/bin/nvidia-cuda-mps-control: invalid cross-device link
The text was updated successfully, but these errors were encountered: