-
Notifications
You must be signed in to change notification settings - Fork 119
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
How to configure mdadm.conf? #429
Comments
this is not possible at the moment, but this can be made configurable via |
Do you have an example how this could be integrated into an extension? I maybe would be willing to create a PR for the mdadm extension then. |
you can take a look at nut-client extension, the mdadm extension probably needs a flag to point to a config file |
mdadm implicitly reads the config file, because it's called via udevd (rules defined in the extension) the usual place is /etc/mdadm.conf, can you also set it at this location via the ExtensionServiceConfig? |
we might have to compile mdadm to use a custom path then, extensions only allow |
I tried to just apply an ExtensionServiceConfig now, but
When are those configs applied? Do you need to run a container in the extension? Are the names supposed to be the same as the extension? |
yes, it only gets in effect when there is an extension with the same name |
I checked the executable, and looks like the path is sadly not compiled in correctly.
I have readded the mdadm extension to my cluster, but the ExtensionServiceConfig is still not applied as expected - ideas? |
ahh Also can we specify the config file here: https://github.com/siderolabs/extensions/blob/main/storage/mdadm/files/udev-md-raid-arrays.rules#L20? |
Edit: Sorry, I was wrong .. seems to be a -c option! |
|
@frezbo I added the the -c option to specify the config file in the udev rules. What I do not understand yet, is how to get a config file into that folder anyways 😃 Edit: I think the config file is rather well stored under /var/lib/mdadm/mdadm.conf but please let me know what's the correct destination, and how to actually edit that file then. |
we don't have a good way in talos now to get a config file or have a default one so that the it doesn't break existing config, let's keep a hold on to this until we have a better solution from talos/extensions side |
Hello,
I do not want mdadm to auto assemble arrays for me, how can I add:
to the mdadm.conf file?
The text was updated successfully, but these errors were encountered: