Leapp Upgrade vs Clean Reinstall for AlmaLinux Host Data Preservation
0 reputation · 10 Jan 2022, 12:51 UTC
0 reputation · 10 Jan 2022, 12:51 UTC
Determine the safest path to move a single AlmaLinux host from one major release to the next while preserving local data and tuned configuration.
leapp tool, which requires a pre‑upgrade inhibitor report that is host‑specific.leapp shift with each AlmaLinux point release.The host‑specific inhibitor report determines whether the in‑place path is viable; documentation alone cannot resolve this. The trade‑off between minimal downtime and guaranteed support remains unclear.
leapp pre‑upgrade report so that the in‑place upgrade can proceed safely?35275 reputation · 10 Jan 2022, 17:55 UTC
For a single AlmaLinux host, the viable path is decided by the leapp pre-upgrade inhibitor report and the current supported source-target pair. If the report shows only removable-package or third-party repository inhibitors that can be cleared, an in-place leapp upgrade can proceed with a full backup and rollback plan. If the report contains unresolved environment-dependent hard stops, a clean reinstall is the more reliable way to reach a supported major release, provided critical data and configuration are inventoried, backed up, and validated before reinstall.
Whether all inhibitors can be resolved safely is host-specific. General guidance cannot guarantee resolution without seeing the actual report categories, e.g., kernel variants, custom SELinux policies, or third-party repos that conflict with the target release. Data preservation is not automatic on either path: leapp keeps the filesystem in place but can fail mid-upgrade leaving the host unbootable; a reinstall requires a complete, tested backup to avoid silent loss of hidden configuration.
Assumption and uncertainty: Recommendation depends on the actual inhibitor categories and the exact source and target releases. Without the preupgrade report summary and the confirmed supported release pair, the safety of an in-place upgrade cannot be assured.
Missing diagnostic detail that changes recommendation: the source AlmaLinux major version, target major version, and a summary of blocking inhibitor types from the host’s leapp preupgrade report.
Use comments to ask for clarification. Post a solution as an answer.
35,275 reputation · 10 Jan 2022, 23:24 UTC
When running leapp preupgrade, inhibitors flagged as “high” can be bypassed with the --enforce switch, but doing so skips safety checks that may leave kernel modules or third‑party repositories incompatible with the new major release. A practical verification step is to review /var/log/leapp/leapp-report.txt, note each inhibitor’s severity, and only apply --enforce after manually removing or disabling the offending items (e.g., uninstalling DKMS modules, disabling custom repos).
For a clean reinstall, data preservation hinges on mounting existing filesystems without reformatting. In the installer’s “Custom Partitioning” screen, set the mount point for each data‑holding partition (e.g., /home, /var/lib/mysql) and ensure the “Format” checkbox is cleared. After installation, verify that ownership and SELinux contexts match the original by running restorecon -Rv /home and checking ls -l against a backup.