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

raid1 boot_device mirroring with partitions > 2TB breaks install #1194

Open
stephankoelle opened this issue May 12, 2022 · 2 comments
Open
Labels

Comments

@stephankoelle
Copy link

stephankoelle commented May 12, 2022

Describe the bug
When using raid1 boot_device mirroring together with partition sizes > 2TB there is file corruption.

Reproduction steps
Steps to reproduce the behavior:

  1. using a host with two NVMEs > 2 TB
variant: fcos
version: 1.4.0
boot_device:
  mirror:
    devices:
      - /dev/nvme0n1
      - /dev/nvme1n1
  1. /usr/bin/rpm-ostree install --apply-live --allow-inactive --idempotent htop
  2. error: Running tmpfiles for /run and /var: Running systemd worker: exit status: 127

After that system is broker, no further ssh login possible (everything gives "invalid ELF header")

Expected behavior
boot_device mirroring should work with "arbitrary" sizes partition

Actual behavior
System is completely broker, needs re-install where partition is bigger then "size_mib: 2097000". Have not tested the exact value, OK: size_mib: 2097000 , failure: size_mib: 2621000

System details

  • Bare Metal & QEMU (with mounted NVMEs)
  • Fedora CoreOS 35.20220424.3.0"

Ignition config

variant: fcos
version: 1.4.0
boot_device:
  mirror:
    devices:
      - /dev/sda
      - /dev/sdb

Additional information
Work around, reduce size of root partition

storage:
  disks:
    - device: /dev/nvme0n1
      partitions:
        - label: root-1
          #defect 2621000 => error: Running tmpfiles for /run and /var: Running systemd worker: exit status: 127
          #ok 2097000
          size_mib: 2097000
    - device: /dev/nvme1n1
      partitions:
        - label: root-2
          size_mib: 2097000

Forum link with more information: https://discussion.fedoraproject.org/t/fedora-coreos-installation-works-preparing-etc-invalid-byte-sequence-in-conversion-input-on-rpm-ostree-install-afterwards/38772/14

@travier
Copy link
Member

travier commented Apr 12, 2023

See #1183 as it might be related.

@bgilbert
Copy link
Contributor

boot_device directives recreate the root filesystem, so #1183 is unlikely to be related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants