Skip to content

Conversation

@GeraldEV
Copy link
Contributor

Dependent on PR #248

@GeraldEV GeraldEV requested a review from rosslagerwall May 29, 2025 10:31
Copy link
Contributor

@rosslagerwall rosslagerwall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed the top commit only since the others were reviewed in #248.

@GeraldEV GeraldEV force-pushed the private/geralde/CP-54461 branch from 29bd393 to d4d1333 Compare June 26, 2025 14:00
@GeraldEV GeraldEV requested a review from rosslagerwall June 26, 2025 14:00
@GeraldEV GeraldEV changed the title CP-54461: SWRAID Restore CP-54461: SWRAID Upgrade & Restore Jun 26, 2025
GeraldEV added 4 commits July 1, 2025 09:54
XS8 only supports UEFI installations
Since CH8.2 is out of support, upgrades will only be possible from UEFI
installations and therefore restore can only be between UEFI
installations.

EFI/ESP partition mounting is now always necessary.

Signed-off-by: Gerald Elder-Vass <gerald.elder-vass@cloud.com>
Gracefully handle failures to probe disks e.g. when the partitions are
not populated.
Get the physical devices for the SWRAID installation when performing an
upgrade.

Signed-off-by: Gerald Elder-Vass <gerald.elder-vass@cloud.com>
Signed-off-by: Gerald Elder-Vass <gerald.elder-vass@cloud.com>
Signed-off-by: Gerald Elder-Vass <gerald.elder-vass@cloud.com>
@GeraldEV GeraldEV force-pushed the private/geralde/CP-54461 branch from d4d1333 to 6b56afa Compare July 1, 2025 11:04
@GeraldEV GeraldEV requested a review from rosslagerwall July 1, 2025 11:04
if len(physical_disks) == 0:
raise RuntimeError("Failed to identify physical devices of SWRAID device: %s" % disk_device)

assembleCommand = ["mdadm", "--assemble", "--run", disk_device, physical_disks[0]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could simplify this to:

assembleCommand = ["mdadm", "--assemble", "--run", disk_device, *physical_disks]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could create minor issues if there are more than two disks present, but then that should be checked for too? I think we'll leave this as is for now :D

@GeraldEV GeraldEV merged commit 8a8b2e2 into release/xs8 Jul 1, 2025
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

Successfully merging this pull request may close these issues.

2 participants