{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/4036","labels_url":"https://api.github.com/repos/docker/docker/issues/4036/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/4036/comments","events_url":"https://api.github.com/repos/docker/docker/issues/4036/events","html_url":"https://github.com/docker/docker/issues/4036","id":27256520,"number":4036,"title":"docker fails to mount the block device for the container on devicemapper","user":{"login":"unclejack","id":1409668,"avatar_url":"https://avatars.githubusercontent.com/u/1409668?v=3","gravatar_id":"","url":"https://api.github.com/users/unclejack","html_url":"https://github.com/unclejack","followers_url":"https://api.github.com/users/unclejack/followers","following_url":"https://api.github.com/users/unclejack/following{/other_user}","gists_url":"https://api.github.com/users/unclejack/gists{/gist_id}","starred_url":"https://api.github.com/users/unclejack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unclejack/subscriptions","organizations_url":"https://api.github.com/users/unclejack/orgs","repos_url":"https://api.github.com/users/unclejack/repos","events_url":"https://api.github.com/users/unclejack/events{/privacy}","received_events_url":"https://api.github.com/users/unclejack/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/%2Fos%2Flinux%2Fubuntu","name":"/os/linux/ubuntu","color":"fbca04"},{"url":"https://api.github.com/repos/docker/docker/labels/%2Fsystem%2Fdevicemapper","name":"/system/devicemapper","color":"FBCA04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":141,"created_at":"2014-02-10T11:01:55Z","updated_at":"2015-01-20T19:02:17Z","closed_at":null,"body":"When running something like `for i in {0..100}; do docker run busybox echo test; done` with Docker running on devicemapper, errors are thrown and containers fail to run:\r\n\r\n```\r\n2014/02/10 9:48:42 Error: start: Cannot start container 56bee8c4da5bd5641fc42405c742083b418ca14ddfb4a3e632955e236e23c284: Error getting container 56bee8c4da5bd5641fc42405c742083b418ca14ddfb4a3e632955e236e23c284 from driver devicemapper: Error mounting '/dev/mapper/docker-8:1-4980769-56bee8c4da5bd5641fc42405c742083b418ca14ddfb4a3e632955e236e23c284' on '/var/lib/docker/devicemapper/mnt/56bee8c4da5bd5641fc42405c742083b418ca14ddfb4a3e632955e236e23c284': no such file or directory\r\n2014/02/10 9:48:42 Error: start: Cannot start container b90b4385778142aab5251846460008e5c4eb9fe1e7ec82f07d06f1de823bd914: Error getting container b90b4385778142aab5251846460008e5c4eb9fe1e7ec82f07d06f1de823bd914 from driver devicemapper: Error mounting '/dev/mapper/docker-8:1-4980769-b90b4385778142aab5251846460008e5c4eb9fe1e7ec82f07d06f1de823bd914' on '/var/lib/docker/devicemapper/mnt/b90b4385778142aab5251846460008e5c4eb9fe1e7ec82f07d06f1de823bd914': no such file or directory\r\n2014/02/10 9:48:43 Error: start: Cannot start container ca53b3b21c92ffb17ad15c1088be293260ea240abdf25db7e5aadc11517cf93c: Error getting container ca53b3b21c92ffb17ad15c1088be293260ea240abdf25db7e5aadc11517cf93c from driver devicemapper: Error mounting '/dev/mapper/docker-8:1-4980769-ca53b3b21c92ffb17ad15c1088be293260ea240abdf25db7e5aadc11517cf93c' on '/var/lib/docker/devicemapper/mnt/ca53b3b21c92ffb17ad15c1088be293260ea240abdf25db7e5aadc11517cf93c': no such file or directory\r\ntest\r\n2014/02/10 9:48:43 Error: start: Cannot start container 1e1e06044711e73cede8ede10547de7e270c33fac7ad5e60a8cb23246950adf3: Error getting container 1e1e06044711e73cede8ede10547de7e270c33fac7ad5e60a8cb23246950adf3 from driver devicemapper: Error mounting '/dev/mapper/docker-8:1-4980769-1e1e06044711e73cede8ede10547de7e270c33fac7ad5e60a8cb23246950adf3' on '/var/lib/docker/devicemapper/mnt/1e1e06044711e73cede8ede10547de7e270c33fac7ad5e60a8cb23246950adf3': no such file or directory\r\n```\r\nFedora 20 with kernel 3.12.9 doesn't seem to be affected.\r\n\r\n\r\nkernel version, distribution, docker info and docker version:\r\n```\r\n3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64\r\nUbuntu 12.04.4\r\n docker info\r\nContainers: 101\r\nImages: 44\r\nDriver: devicemapper\r\n Pool Name: docker-8:1-4980769-pool\r\n Data file: /var/lib/docker/devicemapper/devicemapper/data\r\n Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata\r\n Data Space Used: 3234.9 Mb\r\n Data Space Total: 102400.0 Mb\r\n Metadata Space Used: 6.9 Mb\r\n Metadata Space Total: 2048.0 Mb\r\n\r\nClient version: 0.8.0-dev\r\nGo version (client): go1.2\r\nGit commit (client): 695719b\r\nServer version: 0.8.0-dev\r\nGit commit (server): 695719b\r\nGo version (server): go1.2\r\nLast stable version: 0.8.0\r\n```\r\n\r\nThe Docker binary is actually master with PR #4017 merged.\r\n\r\n/cc @alexlarsson"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/70711419","html_url":"https://github.com/docker/docker/issues/4036#issuecomment-70711419","issue_url":"https://api.github.com/repos/docker/docker/issues/4036","id":70711419,"user":{"login":"coopernurse","id":244690,"avatar_url":"https://avatars.githubusercontent.com/u/244690?v=3","gravatar_id":"","url":"https://api.github.com/users/coopernurse","html_url":"https://github.com/coopernurse","followers_url":"https://api.github.com/users/coopernurse/followers","following_url":"https://api.github.com/users/coopernurse/following{/other_user}","gists_url":"https://api.github.com/users/coopernurse/gists{/gist_id}","starred_url":"https://api.github.com/users/coopernurse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopernurse/subscriptions","organizations_url":"https://api.github.com/users/coopernurse/orgs","repos_url":"https://api.github.com/users/coopernurse/repos","events_url":"https://api.github.com/users/coopernurse/events{/privacy}","received_events_url":"https://api.github.com/users/coopernurse/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T19:02:17Z","updated_at":"2015-01-20T19:02:17Z","body":"More details on what I'm seeing with a dynamically linked docker binary.  The devicemapper mounts never unmount, so they stack up and presumably cause the \"device or resource busy\" errors.\r\n\r\n```\r\n[root@dockerci.office:~]# mount | grep devicema\r\n/dev/mapper/centos-root on /var/lib/docker/devicemapper type xfs (rw,relatime,attr2,inode64,noquota)\r\n/dev/mapper/docker-253:1-138296215-539edfb898771f833a3f3ed7788920b79712b38b2f776217ef01e9225e946088 on /var/lib/docker/devicemapper/mnt/539edfb898771f833a3f3ed7788920b79712b38b2f776217ef01e9225e946088 type ext4 (rw,relatime,discard,stripe=16,data=ordered)\r\n/dev/mapper/docker-253:1-138296215-def61c0c019e66fb2e5c7da0895e29db1b87e1e0b4cda70422374f79c65e23e8 on /var/lib/docker/devicemapper/mnt/def61c0c019e66fb2e5c7da0895e29db1b87e1e0b4cda70422374f79c65e23e8 type ext4 (rw,relatime,discard,stripe=16,data=ordered)\r\n```\r\n\r\nThings go back to normal if I shut down docker, restore the static binary, and reboot the VM.\r\n\r\n"}}