Bug 1935722
| Summary: | Selected disks have inconsistent sector sizes (anaconda part) | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Jan Stodola <jstodola> | |
| Component: | anaconda | Assignee: | Vendula Poncova <vponcova> | |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | |
| Severity: | high | Docs Contact: | Sagar Dubewar <sdubewar> | |
| Priority: | unspecified | |||
| Version: | 8.4 | CC: | bilhar, lmanasko, mdolezel, pkotvan, rvykydal, sbarcomb, sbueno, sdubewar, sjalgaon, vponcova, vslavik, vtrefny | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | anaconda-33.16.5.4-1.el8 | Doc Type: | Known Issue | |
| Doc Text: |
.Installation with `autopart` kickstart command fails with inconsistent disk sector sizes
Installing RHEL using `autopart` with multiple inconsistent disk sector sizes fails. As a workaround, use a `plain` partitioning scheme, for example `autopart --type=plain`, instead of the default `LVM` scheme. Another option is to try re-configuring sector sizes, for example by running `hdparm --set-sector-size=<SIZE> <DEVICE>`.
As a workaround for kickstart installations:
* Restrict the disks used for the partitioning by specifying `ignoredisk --drives=..` OR `--only-use=..`.
* Specify disks to be used for each created LVM Physical Volume: `partition pv.1 --ondisk=..`.
As a workaround for manual installations:
* Select only the disks with the same sector size during manual installation in graphical or text mode.
* When disks with inconsistent sector size are selected for the installation, restrict each created LVM Volume Group to use Physical Volumes with the same sector size. This can only be done in graphical mode in the Custom partitioning spoke.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1955514 1955516 (view as bug list) | Environment: | ||
| Last Closed: | 2021-11-09 18:42:11 UTC | Type: | Bug | |
| 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: | ||||
| Bug Blocks: | 1879091, 1955516 | |||
|
Description
Jan Stodola
2021-03-05 13:00:46 UTC
(In reply to Jan Stodola from comment #0) > * Keep the current behavior, but the installer should suggest possible > workarounds. We decided to go with this option and make the error message more useful. Just a note, this error message comes from Blivet. It can be changed in Blivet, or the error has to be raised as something else than ValueError, so Anaconda can catch it and extend it. Honza, do you have a suggestion how the new error message could look like? Proposed blivet part of the fix: https://github.com/storaged-project/blivet/pull/951 We'll reword the error and add list of disks/PVs with sector sizes and also raise a special exception for this case so Anaconda can add more information like possible workarounds in kickstart. New error message will be ------ The volume group rhel cannot be created. Selected disks have inconsistent sector sizes. Following sector sizes have been detected: 512: vda5 4096: vdg1 ------ (In reply to Vendula Poncova from comment #4) > Honza, do you have a suggestion how the new error message could look like? Since the same message will be displayed for kickstart and manual installations, it should cover both cases. The text could display the following workarounds in addition to the message from blivet: Workarounds for manual installations: * Select only the disks with the same sector size during manual installation in graphical or text mode. * When disks with inconsistent sector size are selected for the installation, restrict each created LVM Volume Group to use Physical Volumes with the same sector size. This can only be done in graphical mode in the Custom partitioning spoke. Workarounds for kickstart installations: * Restrict what disks are used for the partitioning by specifying "ignoredisk --drives=.. OR --only-use=..". * Specify what disks should be used for each created LVM Physical Volume: "partition pv.1 --ondisk=..". General workarounds: * Plain partitioning scheme can be used instead of LVM. * Some drives support re-configuration of sector sizes, for example by running "hdparm --set-sector-size=<SIZE> <DEVICE>". (Add more workarounds if you can think of any) Using compose RHEL-8.5.0-20210812.n.0 with anaconda-33.16.5.4-1.el8, anaconda stops and offers more explanations and workarounds in the error message. This appears to be as comment 2 asked. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:4254 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days |