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

Ephemeral volumes aren't raided in all cases #194

Closed
hannes-ucsc opened this issue Jun 29, 2016 · 2 comments
Closed

Ephemeral volumes aren't raided in all cases #194

hannes-ucsc opened this issue Jun 29, 2016 · 2 comments
Assignees
Labels

Comments

@hannes-ucsc
Copy link
Contributor

If you use an instance type with two ephemeral drives, cgcloud will install mdadm during create -IT and then take the image. So mdadm is present in the image and will not need to be installed again when running recreate from the image. But if you use an instance type with 0 or 1 ephemeral drives for create -IT, mdadm will not be needed at that time and so must be installed during recreate. If, between create and recreate an update to the mdadm package is published, apt will fail to install mdadm during recreate because the on-disk package index is stale and refers to an non-existant .deb.

The solution is to install mdadm unconditionally during the regular setup. There still is a chance that the early installation of mdadm at boot time will fail during recreate if the package index on the base image is stale, too.

@hannes-ucsc
Copy link
Contributor Author

Slight twist. CloudInitBox does actually install mdadm on every first generation at boot time. But that could fail and so we should still schedule mdadm installation at setup time, as a fallback.

hannes-ucsc added a commit that referenced this issue Jun 29, 2016
@hannes-ucsc hannes-ucsc changed the title Ephemeral volumes aren't raided in all case Ephemeral volumes aren't raided in all cases Jun 29, 2016
@hannes-ucsc
Copy link
Contributor Author

And, BTW, cloud-init will mount one of the drives later on in the boot process. At that time it's too late for The dockerbox init script to do its thing with moving /var/lib/docker to ephemeral. This timing crap is killing me.

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

No branches or pull requests

1 participant