-
Notifications
You must be signed in to change notification settings - Fork 99
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
🌱 Be able to specify multiple installation target disk #391
Comments
What is the status on this being picked up? |
I find this feature a bit strange. Apparently, the idea is to use the same config on different hardware, otherwise we could simply use the correct device name directly. Given there is the "auto" option that selects the largest disk, I assume this feature is needed when "auto" won't do the right thing. For example, if a smaller disk should be used. And this is what I find strange. We will be using the config on more than one machines with no predicable device names (first point above) but yet, we will know of a specific list of device names that will guarantee that the largest disk won't be selected (point 2 above). Maybe this is true in some rare cases but I don't see this being a generally useful feature. Am I missing something? |
It is common for fleet devices to be identical and ordered in bulk from manufacturers. It is stated the largest disk is used which I find interesting as typically the OS level disk is smaller and the larger disk is used for storage. Additionally, users may deploy 2 different types of nodes 1 for CP and one for workers that have different disks (CP may have an OS disk of /dev/nvme4n1, whereas workers might be /dev/nvme1n1) These would be all identical across thousands of nodes. I want to create an image for my devices, not manage a bunch of images. The use case for this type of list is pretty straightforward. I want to use a common image across different node types and specify the device I want to install. I do not want to leave it up to "auto" which is unpredictable. |
We discussed this in the sprint planning and we think the use case if perfectly valid but the solution should be more generic. E.g. what happens if the user wants to select the smallest disk always and there are machines that have a smaller What about other cases with more complex disk schemas. E.g. would we ever want to allow the user to create some partitions on one disk and some others on another one? We should better think about it now before we implement a solution. @mudler thoughts? |
I think in that case is perfectly valid to specify the expected device for installation. Especially if we are talking about bulk hosts - the HW layout should be the same across machines.
Maybe we can just support a regex matching the device name. For instance - if you expect NVMe's , it's safe to assume the device is |
The installer can already skip partitioning altogether. It's also possible to run arbitrary commands using cloud-init. This allows someone to do custom partitioning (and labeling). If that works, we simply have to document how this works. Let's do a spike on this and write down docs. Then we decide if we need something more. |
Here is my test config.yaml for reference:
As described in the comments, the above plan requires jumping through some hoops to make it work, because elemental doesn't respect the stages passed to the kairos-agent. We are thinking solutions to make this simpler. |
Use cases:
Possible solutions:
Although we can implement simpler solutions for some of the issues, the one feature that solves them all is the fully custom partitioning. We'll implement custom partitioning on #209 and keep this open (and blocked) to decide if we prefer a better solution for this use case only. |
After a sync call we agreed: We were blocked because we were trying to netboot, and the Solution:
- download it, save it, say to /oem/ [LiveCD and netboot] - chainload with forloop Line 193 in f8999c1
Trying locally: Let's keep this issue as a tracker, until we fix all the pieces to get there. |
Is your feature request related to a problem? Please describe.
A system might have a different mappings of device names, depending on the HW
Describe the solution you'd like
A way to give the installer a list of devices, try that out and find the one available and install it from there.
For instance:
First match wins, and the first found becomes the install target
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: