Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Can't mount volume on Photon OS #314

Closed
pdhamdhere opened this issue May 4, 2016 · 3 comments
Closed

Can't mount volume on Photon OS #314

pdhamdhere opened this issue May 4, 2016 · 3 comments
Milestone

Comments

@pdhamdhere
Copy link
Contributor

  1. Deploy Photon OVA
  2. Start docker
    a. systemctl start docker
    b. systemctl enable docker
  3. Install docker-volume-vpshere RPM
  4. docker volume ls runs fine and returns existing volume
  5. docker volume create -d vmdk --name=v1 volume created successfully.
  6. docker run --rm -it -v v1:/data busybox
    docker: Error response from daemon: VolumeDriver.Mount: Device not found for unit 0 on bus 1.
@pdhamdhere pdhamdhere added this to the TP milestone May 4, 2016
@pdhamdhere
Copy link
Contributor Author

  • Photon VM default has 1 OS disk on LSI Logic SCSI controller.
  • docker run added PVSCSI controller (**SCSI 2:**0) to attach v1.vmdk.
    So, "Device not found for unit 0 on bus 1" seems incorrect.
  • Changed default LSI Logic controller to PVSCSI. So, VM now has only one controller.
  • docker run --rm -it -v v1:/data busybox successfully mounts v1!

@kerneltime
Copy link
Contributor

I did not run into this issue.. also what is the bug here? Documentation?

@pdhamdhere
Copy link
Contributor Author

Looks like this is an issue with Photon. Filed vmware/photon#455
Tested same configuration with Ubuntu and confirmed it works.

@kerneltime

I did not run into this issue..
What type of SCSI adapter you have for base VMDK. I bet you have PVSCSI.

also what is the bug here?
See 6th bullet in description. Docker run failed to mount volume.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants