Code Monkey home page Code Monkey logo

Comments (5)

ableischwitz avatar ableischwitz commented on July 1, 2024 3

I added a pull request: #56 which should provide support for either /dev/disk/by-id/<id> or /dev/disk/by-id/wwn-<xx>.
Without this addition, a automated installation by using the autoconfig feature is a gamble when intending to make use of two out of 3 disk - as the names may change between different reboots.
It only handles the device names used for software raid though - so there is no improvement when using plain disks,

from installimage.

briancolecoinmetrics avatar briancolecoinmetrics commented on July 1, 2024 2

I'm aware that the kernel adds devices in a nondeterministic order; that's why I'm asking for a way to use WWNs. Installing a bootloader on every disk won't help when installimage gives us a system fstab that refers to devices by their non-deterministic names, e.g. /dev/sdb2 none swap sw 0 0.

from installimage.

asciiprod avatar asciiprod commented on July 1, 2024 1

The kernel does not guarantee the order in which devices are detected. Hence even if you manage to get this working the way you want it, the next kernel upgrade or even after a reboot, the order might change again.
The proper way to deal with this scenario is to also install the bootloader also the data drives. This can be done via a post-install skript, e.g

#!/bin/bash
for i in sdb sdc sdd; do
  sgdisk -Z /dev/$i
  sgdisk --new 1:2048:+1M -t 1:EF02 /dev/$i
  grub-install /dev/$i
done

This will create a 1M bios_grub partition on each drive and installs grub in the MBR and the partition

from installimage.

func0der avatar func0der commented on July 1, 2024

For me the experience was that everything worked out fine, BUT the software raid. @ableischwitz PRs seemed to have the fix in the place that was broken for me.

mkswap is failing for me, but I do not know why:

[22:30:32] :   mkswap: cannot open /dev/disk/by-id/ata-SAMSUNG_XXXX-part1: Device or resource busy

I think it might be the software raid sync blocking the formatting, which is kinda weird.
The order should be create partitions -> create raid, shouldn't it?

I copied the whole installimage into my home folder in the rescue system to apply the patch from @ableischwitz . Maybe that confuses the script somehow 🤷

from installimage.

func0der avatar func0der commented on July 1, 2024

Found the error. The script could not replace the fstab entries and therefore tried to format the underlying drive instead of the raid arrays.

#92 should hit all the right points.

I copied the whole installimage into my home folder in the rescue system to apply the patch from @ableischwitz . Maybe that confuses the script somehow 🤷

About this. It does not. Just be sure to call installimage with an absolute path. Else it WILL get confused, because the script will switch into a temporary directory for most of its work. :)

from installimage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.