So… what’s the “right” way to change the configuration of a node? I ask because I’ve seen some things saying the answer is to re-provision it. Here’s my use case for context:
I have a 3 node K3s cluster
For initial setup I did not configure raid but the intention was to have everything on a mirrored pair of disks (the only ones in each boxes)
I also didn’t setup one of the network interfaces in the original ignition, but it is now needed
My question is this: what’s the recommended way to get from where I am to the desired destination of an additional network interface between configured and everything being on a raid mirror?
I think for RAID it depends on the initial disk configuration i.e. whether /var is a separate partition, etc. What is the current layout of your disks?
I think some of this is “it depends” and you’ve provided two great examples that we can use to illustrate that.
For network config you can easily just change the configuration on the nodes in place (make sure to make it persistent so it sticks around after reboot), but you’ll want to also attempt to update your Ignition config so that if you ever lose your cluster (for whatever reason) you’ll be able to spin up the exact same config again.
The RAID config on the other hand. It’s pretty hard to migrate an existing OS install to RAID. That’s one that would clearly to me be better if you just reprovisioned with the correct configuration.
@hricky Here is what I have in my butane config for partitions and such:
storage:
disks:
- device: /dev/disk/by-id/coreos-boot-disk
wipe_table: false
partitions:
- number: 4
label: root
size_mib: 8192
resize: true
- label: var # not specifying "number", so this will go after the root partition
size_mib: 0 # means "use the rest of the space on the disk"
filesystems:
- path: /var
device: /dev/disk/by-partlabel/var
format: xfs
wipe_filesystem: false # preserve /var on reinstall (this is the default, but be explicit)
with_mount_unit: true # mount this filesystem in the real root
I’ve done a similar RAID1 setup, so if you’re not sure how to do it, I can try to replicate your disk layout and test some Butane configs for reprovisioning.