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

multiple disks support? #152

Open
anarcat opened this issue Feb 20, 2020 · 6 comments
Open

multiple disks support? #152

anarcat opened this issue Feb 20, 2020 · 6 comments

Comments

@anarcat
Copy link
Contributor

anarcat commented Feb 20, 2020

one thing i keep doing after grml-debootstrap is remount the target to install grub on other primary disks... is that something that could be added on the commandline or should i just do that as a hook?

thanks!

@mika
Copy link
Member

mika commented Feb 24, 2020

@anarcat what do you mean with other primary disks? I'm not sure about the use case yet. :)

@anarcat
Copy link
Contributor Author

anarcat commented Feb 24, 2020

I have a server with two disks, in RAID-1. I want to install grub on both in case one disk entirely fails.

"Primary disks" in this case, would be "disks that are configured in the BIOS boot order", but maybe it could also simply be "all non-removable physical disks".

@mika
Copy link
Member

mika commented Feb 25, 2020

Ah I see, makes sense. We have some code regarding SW-RAID in grml-debootstrap, but it's been a long time since I last used that (and am not sure how well that works and if it's enough, probably not :)), and at $orkplace we're using custom scripts to handle SW-RAID.

Do you have some command line interface in mind to handle this?

@anarcat
Copy link
Contributor Author

anarcat commented Feb 25, 2020

Ah I see, makes sense. We have some code regarding SW-RAID in grml-debootstrap, but it's been a long time since I last used that (and am not sure how well that works and if it's enough, probably not :)), and at $orkplace we're using custom scripts to handle SW-RAID.

that's what i suspected. :) i imagine that everyone has their own little implementation of what i did here, my thinking is it should be shipped with grml...

Do you have some command line interface in mind to handle this?

i don't have a great / clear interface just yet. maybe something like [ --boot-disks device [...] ] or something like that?

for now i wrote a post-script that:

  1. bind mounts "everything" (/sys, /dev, /proc, /run, etc)
  2. regenerates the mdadm.conf (because somehow that was wrong too)
  3. rebuild the initramfs and grub config
  4. installs grub on the second (hardcoded) disk device

what does your hack look like? :)

@mika
Copy link
Member

mika commented Feb 25, 2020

my thinking is it should be shipped with grml...

The hard part usually is to make it work in general and ensure it has a usable interface. :-/

what does your hack look like? :)

One script that's in production usage is e.g. https://github.com/sipwise/deployment-iso/blob/1b1e54b822b8af6b6c691993eae9d6589ed8b483/templates/scripts/includes/deployment.sh#L2175

@anarcat
Copy link
Contributor Author

anarcat commented Feb 25, 2020

One script that's in production usage is...

looks like you're doing a hack similar to ours... surely there must be a better way! :)

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

2 participants