-
Notifications
You must be signed in to change notification settings - Fork 23
CP-54461: SWRAID Upgrade & Restore #254
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
Conversation
rosslagerwall
left a comment
There was a problem hiding this 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.
29bd393 to
d4d1333
Compare
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>
d4d1333 to
6b56afa
Compare
| 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]] |
There was a problem hiding this comment.
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]
There was a problem hiding this comment.
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
Dependent on PR #248