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

need more fine-grained control of the creation of the "extraPartition" used by varlibcontainers #676

Open
xphyr opened this issue Oct 17, 2024 · 0 comments

Comments

@xphyr
Copy link

xphyr commented Oct 17, 2024

When applying "ImageBasedInstallationConfig" to a server, we need additional control over the creation of the varlibcontainers partition.

Currently functionality only allows for defining an "ExtraPartitionStart" and then consume the remainder of the disk, or you can set "ExtraPartionStart" to a negative number and it works backwards from the end of the disk consuming a fixed amount of space, and leaving the rest for the root partition.

The problem with this is that it does not allow for reserving any extra space on the device for other uses (such as LVM for local storage).

By adding an extra configuration option "ExtraPartitionSize" we can add additional controls around the creation of the varlibcontainers partition, and allow for additional partitions to be defined later via MachineConfigs.

NOTE: adding the additional partition will need to be configured with some form of post config script, or manually via the console until the MCO is updated to allow for changes to the partition configuration (https://github.com/openshift/machine-config-operator/blob/master/docs/FAQ.md#q-can-i-use-the-mco-to-re-partition-or-re-install).

I will be submitting a PR with these changes shortly.

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

1 participant