Skip to content

Conversation

@dongsupark
Copy link
Member

Set the new kernel module parameter for raid0 default_layout=2 in grub.cfg, to make kernel >= 5.4 (and stable kernels) properly load raid0.ko. Without the change, raid0 arrays cannot be created at all.
The issue started to appear since torvalds/linux@c84a137, which is meant to fix a kernel bug that may cause data corruption.

The value for default_layout can be 1 (original) or 2 (alternate). 1 is the orignal layout kernel < 3.14, while 2 is the new layout kernel 3.14. Since kernel 3.14 is already 5 years old, we can probably assume that we do not have to care about migration from raid0 devices that were created by Kernel < 3.14. So simply set it to 2.

Set the new kernel module parameter for raid0 `default_layout=2`
in `grub.cfg`, to make kernel >= 5.4 (and stable kernels) properly
load `raid0.ko`. Without the change, raid0 arrays cannot be created
at all. The issue started to appear since
torvalds/linux@c84a137,
which is meant to fix a kernel bug that may cause data corruption.

The value for `default_layout` can be 1 (original) or 2 (alternate).
1 is the orignal layout kernel < 3.14, while 2 is the new layout kernel
3.14. Since kernel 3.14 is already 5 years old, we can probably assume
that we do not have to care about migration from raid0 devices that were
created by Kernel < 3.14. So simply set it to 2.
@dongsupark dongsupark added alpha bug Something isn't working labels Dec 12, 2019
@dongsupark
Copy link
Member Author

Since flatcar/baselayout#2 was merged, this PR is not needed any more.

@dongsupark dongsupark closed this Dec 16, 2019
@dongsupark dongsupark deleted the dongsu/grub-md-config-2345 branch December 16, 2019 12:42
sayanchowdhury added a commit that referenced this pull request Jan 11, 2022
build_library/check_root: ignore dangling &#39;*egg-info&#39; symlink
pothos added a commit that referenced this pull request Sep 26, 2022
ci-automation: Don&#39;t skip nightly build when the previous one failed
pothos added a commit that referenced this pull request Sep 26, 2022
ci-automation: Don&#39;t skip nightly build when the previous one failed
pothos added a commit that referenced this pull request Sep 26, 2022
ci-automation: Don&#39;t skip nightly build when the previous one failed
pothos added a commit that referenced this pull request Sep 26, 2022
ci-automation: Don&#39;t skip nightly build when the previous one failed
pothos added a commit that referenced this pull request Sep 26, 2022
ci-automation: Don&#39;t skip nightly build when the previous one failed
t-lo pushed a commit that referenced this pull request Apr 13, 2023
coreos-base/coreos-init: Exclude K8s&#39; special interfaces
t-lo pushed a commit that referenced this pull request Apr 13, 2023
Move mantle&#39;s dnsmasq dependency to the SDK dependencies
pothos added a commit that referenced this pull request Jun 20, 2023
coreos-base/coreos-cloudinit: Don&#39;t use configdrive on DigitalOcean
pothos added a commit that referenced this pull request Oct 29, 2025
minimal-initrd: Use kmod&#39;s modprobe also for simple module loading
pothos added a commit that referenced this pull request Nov 7, 2025
ci-automation/release.sh: &#39;the input device is not a TTY&#39;
pothos added a commit that referenced this pull request Nov 7, 2025
ci-automation/release.sh: &#39;the input device is not a TTY&#39;
pothos added a commit that referenced this pull request Nov 7, 2025
ci-automation/release.sh: &#39;the input device is not a TTY&#39;
pothos added a commit that referenced this pull request Nov 7, 2025
ci-automation/release.sh: &#39;the input device is not a TTY&#39;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

alpha bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants