Bug 2355346
Summary: | SW RAID on top of disks fails to boot (when partitioning layout specified manually inside cockpit-storage) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Katerina Koukiou <kkoukiou> |
Component: | anaconda-webui | Assignee: | Katerina Koukiou <kkoukiou> |
Status: | NEW --- | QA Contact: | |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 42 | CC: | jkonecny, kkoukiou, mkolman, mpitt, mvollmer, rvykydal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | --- | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | --- | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 2355323 | ||
Bug Blocks: |
Description
Katerina Koukiou
2025-03-27 14:25:10 UTC
I sent https://github.com/cockpit-project/cockpit/pull/21793 to revert the previous "fix" for bug 2352953, as asked by Katerina. The problem here is that parted is run with a mdraid member. This should not be done. blkid/udev can correctly distinguish between mdraid on gpt vs gpt on mdraid, and consequently neither UDisks2 nor Cockpit get confused about this. Whatever code is calling parted on a mdraid member should be fixed. Check this out. mdraid on bare disks with GPT inside the raid: # mdadm --create bare --run --level=1 --metadata=1.0 --raid-devices=2 /dev/sda /dev/sdb mdadm: array /dev/md/bare started. # parted /dev/md/bare -s mktable gpt # blkid -p /dev/sda /dev/sda: UUID="280bac09-2eed-f646-75ca-be09d1268b36" UUID_SUB="1b635ad0-b889-4d26-1c60-3344a98f1aa4" LABEL="dev:bare" VERSION="1.0" TYPE="linux_raid_member" USAGE="raid" # blkid -p /dev/md/bare /dev/md/bare: PTUUID="b193ae51-35ac-4d00-8937-91110cfe84a2" PTTYPE="gpt" Now mdraid on partitions: # parted /dev/sdc -s mktable gpt # parted /dev/sdc -s mkpart primary ext2 1M 2G # parted /dev/sdd -s mktable gpt # parted /dev/sdd -s mkpart primary ext2 1M 2G # mdadm --create parts --run --level=1 --metadata=1.0 --raid-devices=2 /dev/sdc1 /dev/sdd1 mdadm: array /dev/md/parts started. # blkid -p /dev/sdc /dev/sdc: PTUUID="0b64a21c-a125-4637-ab10-16c0736575b2" PTTYPE="gpt" Running parted on /dev/sda would be a mistake since it has TYPE="linux_raid_member" and because we know how tricky mdraid metadata 1.0 is. |