{"action":"created","issue":{"url":"https://api.github.com/repos/emccode/rexray/issues/425","repository_url":"https://api.github.com/repos/emccode/rexray","labels_url":"https://api.github.com/repos/emccode/rexray/issues/425/labels{/name}","comments_url":"https://api.github.com/repos/emccode/rexray/issues/425/comments","events_url":"https://api.github.com/repos/emccode/rexray/issues/425/events","html_url":"https://github.com/emccode/rexray/issues/425","id":154141829,"number":425,"title":"Invalid value \"/dev/xvdb\" for unix device. Attachment point /dev/xvdb is already in use","user":{"login":"feniix","id":91633,"avatar_url":"https://avatars.githubusercontent.com/u/91633?v=3","gravatar_id":"","url":"https://api.github.com/users/feniix","html_url":"https://github.com/feniix","followers_url":"https://api.github.com/users/feniix/followers","following_url":"https://api.github.com/users/feniix/following{/other_user}","gists_url":"https://api.github.com/users/feniix/gists{/gist_id}","starred_url":"https://api.github.com/users/feniix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feniix/subscriptions","organizations_url":"https://api.github.com/users/feniix/orgs","repos_url":"https://api.github.com/users/feniix/repos","events_url":"https://api.github.com/users/feniix/events{/privacy}","received_events_url":"https://api.github.com/users/feniix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/emccode/rexray/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/emccode/rexray/labels/sdm/ec2","name":"sdm/ec2","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-11T01:31:11Z","updated_at":"2016-06-03T16:42:20Z","closed_at":null,"body":"I am getting this error which is weird because I do not think the device is in use:\r\n\r\n**rexray volume create --size 10 --volumename=test --volumetype=gp2**\r\n```\r\nINFO[0000] [linux]\r\nINFO[0000] [docker]\r\nINFO[0000] [ec2]\r\nINFO[0000] os driver initialized                         moduleName= provider=linux\r\nINFO[0000] docker volume driver initialized              availabilityZone= iops= moduleName= provider=docker size=5 volumeRootPath=/data volumeType=gp2\r\nINFO[0000] storage driver initialized                    accessKey= moduleName= provider=ec2 secretKey=\r\nINFO[0000] sdm.CreateVolume                              IOPS=0 availabilityZone= driverName=ec2 moduleName= runAsync=false size=10 snapshotID= volumeID= volumeName=test volumeType=gp2\r\nINFO[0000] waiting for volume creation to complete       driverName=ec2 moduleName= resp.VolumeId=0xc820551b08 runAsync=false snapshotID= volumeID=\r\nname: test\r\nvolumeid: vol-ecad1947\r\navailabilityzone: us-east-1b\r\nstatus: available\r\nvolumetype: gp2\r\niops: 30\r\nsize: \"10\"\r\nnetworkname: \"\"\r\nattachments: []\r\n```\r\n\r\n**docker run -it --volume-driver=rexray -v test:/test busybox sh**\r\n```\r\ndocker: Error response from daemon: VolumeDriver.Mount: {\"Error\":\"InvalidParameterValue: Invalid value '/dev/xvdb' for unixDevice. Attachment point /dev/xvdb is already in use\r\n\tstatus code: 400, request id: 93b1312e-417f-4afc-94a2-2bda63efc679\"}.\r\n```\r\n\r\n**lsblk**\r\n```\r\nNAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT\r\nxvda    202:0    0    8G  0 disk\r\n|-xvda1 202:1    0  128M  0 part /boot\r\n|-xvda2 202:2    0    2M  0 part\r\n|-xvda3 202:3    0    1G  0 part /usr\r\n|-xvda4 202:4    0    1G  0 part\r\n|-xvda6 202:6    0  128M  0 part /usr/share/oem\r\n|-xvda7 202:7    0   64M  0 part\r\n`-xvda9 202:9    0  5.7G  0 part /\r\nxvdf    202:80   0  200G  0 disk /var/lib/docker\r\n```\r\n\r\nHere is the rexray config\r\n**cat /etc/rexray/config.yml**\r\n```\r\nrexray:\r\n  logLevel: info\r\n  storageDrivers:\r\n  - ec2\r\n  volumeDrivers:\r\n  - docker\r\ndocker:\r\n  size: 5\r\n  volumeType: gp2\r\naws:\r\n  rexrayTag: rexraydemo\r\n```\r\n\r\n**uname -a && docker version && rexray version**\r\n```\r\nLinux ip-10-1-10-233.ec2.internal 4.5.0-coreos-r1 #2 SMP Thu May 5 07:27:26 UTC 2016 x86_64 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz GenuineIntel GNU/Linux\r\nClient:\r\n Version:      1.10.3\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   8acee1b\r\n Built:\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.10.3\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   8acee1b\r\n Built:\r\n OS/Arch:      linux/amd64\r\nBinary: /opt/bin/rexray\r\nSemVer: 0.3.3\r\nOsArch: Linux-x86_64\r\nBranch: v0.3.3\r\nCommit: b30fb870b5b94cd8368824460ad020bfcf20be3a\r\nFormed: Thu, 21 Apr 2016 19:41:36 UTC\r\n```"},"comment":{"url":"https://api.github.com/repos/emccode/rexray/issues/comments/223630227","html_url":"https://github.com/emccode/rexray/issues/425#issuecomment-223630227","issue_url":"https://api.github.com/repos/emccode/rexray/issues/425","id":223630227,"user":{"login":"feniix","id":91633,"avatar_url":"https://avatars.githubusercontent.com/u/91633?v=3","gravatar_id":"","url":"https://api.github.com/users/feniix","html_url":"https://github.com/feniix","followers_url":"https://api.github.com/users/feniix/followers","following_url":"https://api.github.com/users/feniix/following{/other_user}","gists_url":"https://api.github.com/users/feniix/gists{/gist_id}","starred_url":"https://api.github.com/users/feniix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feniix/subscriptions","organizations_url":"https://api.github.com/users/feniix/orgs","repos_url":"https://api.github.com/users/feniix/repos","events_url":"https://api.github.com/users/feniix/events{/privacy}","received_events_url":"https://api.github.com/users/feniix/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T16:42:20Z","updated_at":"2016-06-03T16:42:20Z","body":"@clintonskitson the workaround for now is to actually use the mount point, in this case is an m4.xlarge instance which has a _ghost_ volume xvdb, by adding an ebs volume (even if it is not used, it can be a tiny volume) rexray is not broken anymore."}}
{"actor":{"display_login":"feniix"}}