Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set disk size when creating a host with the plugin #12

Open
Andreas-Maier-NTT opened this issue Jul 13, 2017 · 9 comments
Open

Set disk size when creating a host with the plugin #12

Andreas-Maier-NTT opened this issue Jul 13, 2017 · 9 comments

Comments

@Andreas-Maier-NTT
Copy link

When I create new host with the dimension data machine driver I always receive a host with 10 gb disk size and there is no possibility to set the disk size when creating the machine.

@tintoy
Copy link
Contributor

tintoy commented Jul 13, 2017

Hi - the primary disk size is determined by the image. I could probably add support for resizing this disk after the initial deployment is complete, but it's hard to get the OS to recognise the changed disk size in a distro-independent manner.

Let me see if I can dig up the Terraform driver for docker-machine - it gives you much more flexibility in terms of what docker-machine creates.

@tintoy
Copy link
Contributor

tintoy commented Jul 13, 2017

I'll look into adding some sort of support to the driver for changing disk size (or at least adding a second disk) but may not get to that for a couple of days. In the meanwhile, you can probably do what you want using https://github.com/tintoy/docker-machine-driver-terraform (see the DD cloud example).

@tintoy
Copy link
Contributor

tintoy commented Jul 13, 2017

Another option is to use a custom server image that has a larger system disk (i.e. one that has already been expanded). If you'd prefer to use this option, let me know - it won't be much work to add support for custom images.

@Andreas-Maier-NTT
Copy link
Author

Hi, thank you very muchc for the mentioned possibilities. Is there already a possibility to change the server image? I only was able to use the Ubuntu 14 image. Enything else did not yet work.

@tintoy
Copy link
Contributor

tintoy commented Jul 14, 2017

Only built-in images work right now, but I could add support for customer images?

tintoy added a commit that referenced this issue Jul 17, 2017
@tintoy
Copy link
Contributor

tintoy commented Jul 17, 2017

Ok, @Andreas-Maier-NTT, I'll try to get a new release out sometime today that should support using custom images (you can expand the disk in your base image to whatever size you'd like). Or if you'd prefer to use the Terraform-based Docker Machine driver instead, I can probably help you do that too.

@Andreas-Maier-NTT
Copy link
Author

@tintoy : Thank you very much! Is is possible to use the feature from the integrated UI in Rancher?

@tintoy
Copy link
Contributor

tintoy commented Jul 17, 2017

Which feature? The custom image? Yes, the image is already exposed in the plugin UI, so once I publish a new build of the driver you should be good to go.

@tintoy
Copy link
Contributor

tintoy commented Jul 17, 2017

Ok, give v0.9.4 a try.

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

No branches or pull requests

2 participants