-
Notifications
You must be signed in to change notification settings - Fork 128
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
Document automated reprovisioning for bare metal #299
Comments
We should also document how to preserve data volumes when reprovisioning. The traditional model is to do this with Ignition, but there are some quirks and they're not documented in one place:
This procedure assumes the partition layout in the new Ignition config matches the old one. If not, Ignition may clobber the data volumes. It also assumes that the original layout left at least the documented 8 GiB for the root filesystem; if not, reprovisioning with a newer OS version may clobber the first data volume on the boot disk due to coreos/fedora-coreos-tracker#586. For additional safety, coreos-installer provides a partition-saving mechanism ( |
We are currently working on a POC of using FCOS for IIoT in industrial automation. The device provisioning is currently done via iso images with embedded ignition config and we are quite happy with this, as this is much easier to setup than a working PXE environment. This is doubly true for reprovisioning devices in the field where we don't control the network at all and rather (a) interactively reprovision a machine by executing some flavor of From what I gather this is already possible using |
@stereobutter There's some POC work happening in coreos/coreos-installer#712. For the "magic USB stick" case, you may also be interested in the new coreos-installer iso customize command, which should make such images easier to create. |
It doesn't preserve data if a disk has been replaced, I tested. |
We want to encourage users to reprovision their bare-metal nodes when their config changes, but we don't document how to do it. In the long run, coreos/fedora-coreos-tracker#399 might be the right approach, but in the short term, other mechanisms are required. This is arguably part of #117, but I'm filing it separately to distinguish the higher-level workflow issue from the nuts-and-bolts topics in #117.
There are a few possible reprovisioning flows:
efibootmgr --bootnext
to switch the machine into netboot mode just long enough to reinstall the node. (I haven't actually tried this.)coreos-installer iso kargs embed
to setcoreos.inst.install_dev=
and related kargs, then push the ISO to the system with IPMI.Whichever flows we decide to recommend, we should provide step-by-step instructions.
The text was updated successfully, but these errors were encountered: