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
Comments
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. |
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. |
Always install mdadm (fixes #194)
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 runningrecreate
from the image. But if you use an instance type with 0 or 1 ephemeral drives forcreate -IT
, mdadm will not be needed at that time and so must be installed duringrecreate
. If, betweencreate
andrecreate
an update to the mdadm package is published, apt will fail to install mdadm duringrecreate
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.
The text was updated successfully, but these errors were encountered: