Update installation from 12.1 to 12.2 with RAID, DM_CRYPT LUKS, LVM2 failed

tl;dr
upgrading LVM( CRYPT( RAID ) ) system 12.1 to 12.2 failed or is unsafe.
upgrade software should be improved for the mentioned case.

I file this bug to ping the developers to scrutinize system upgrade behaviour in the case like reported, for systems similar to the article Root filesystem over LVM2, DM-Crypt and RAID - Gentoo Linux Wiki ( Root filesystem over LVM2, DM-Crypt and RAID - Gentoo Linux Wiki ) .

Some time ago I already reported a problem for upgrading from 11.4 to 12.1 with RAID, DM_CRYPT LUKS, LVM2, which failed
( http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/469333-update-installation-11-4-12-1-raid-dm_crypt-luks-lvm2-not-failed-partially.html ) but could be fixed with some manual changes.

Now I upgraded from 12.1 to 12.2. and did not succeed in getting the system up and running an.

After having changed (hd0) to (hd0,0) in the grub settings, and entering the password for the encrypted system volume when being prompted,

the loader starts but loops with

“No volume groups found.
Partial mode. Incomplete logical volumes will be processed.
Volume group “vg-myserver” not found
Could not find /dev/vg-myserver/lv-myserver
Want me to fall back to /dev/vg-kea/lv-system ? (Y/n)”

but stops then. No reaction.

I file this bug to ping the developers to scrutinize system upgrade behaviour in the case like reported, for systems similar to the article Root filesystem over LVM2, DM-Crypt and RAID - Gentoo Linux Wiki ( Root filesystem over LVM2, DM-Crypt and RAID - Gentoo Linux Wiki ) .

i.e.
2x 160 MB sda1,sdb1 RAID1 with non-encrypted /boot
2x 1 TB sda2, sdb2 RAID1 with LUKS encryption and LVM2 with / and /swap

addition:

When I start a rescue system from DVD,

I can

  • cat /proc/mdstat
  • cryptsetup luksOpen /dev/md127 cr_md127
  • cryptsetup status cr_md127
  • pvscan
  • vgchange -a y
  • pvdisplay
  • lvdisplay

and can successfully manually mount my old system

  • mount /dev/vg-myserver/lv-myserver /mnt/

What are the necessary steps to finally and permanently repair the grub loader to boot this correctly ?

system response is regardless of the entered password. Is the Password prompt function causing the problem ?

(I do know the correct password, and manually mounting does work, as explained above.)

GRUB failure during the upgrade installation was

http://i.imgur.com/nOtvU.jpg

This is annoying, because you have - during the installation procedure - no chance to change something here.
Regarded as a bug in the installer.

Forum post is not bug report. You have to file it on bugzilla.

On 10/29/2012 02:36 PM, Wikinaut wrote:
> upgrading LVM( CRYPT( RAID ) ) system 12.1 to 12.2 failed or is unsafe.
> upgrade software should be improved for the mentioned case.

how did you upgrade exactly? that is to say, there are only three
supported and recommended upgrade paths:

http://tinyurl.com/35p966c
http://tinyurl.com/93uemsr
http://tinyurl.com/7l4m2td

and all of them say about the same thing about success vs failure:

  • …Be aware that in principle, this upgrade process is considered
    “best effort” only. This means that due to some third-party packages and
    the myriad of possible configurations, it is possible for some
    combinations to cause failure upon upgrade…

  • …Depending on your customizations, some steps (or the entire upgrade
    procedure) may fail and you must resort to copying back your backup data…

  • …it is to be considered a “best effort”: it should work, but it can
    also fail. It is strongly recommended to make a full backup previous to
    the undertaking. If the upgrade fails, you can then restore and try
    again, changing whatever is needed to avoid the previous problem,
    install fresh, or attempt a live upgrade…

> I file this bug to ping the developers to scrutinize system upgrade
> behaviour in the case like reported

this is not a place to file bugs…this is a help forum…bugzilla is
here: http://tinyurl.com/nzhq7j but i don’t think any of the developers
will be terribly surprised that you probably just need to restore your
system from backup and either change the way you did the upgrade (and
very closely follow one of the supported/recommended paths) or do a
fresh install and then join your data in from the backup…

personally i just start with full fresh install and rejoin data–for me
that is faster than spending days trying to figure out what when wrong
and filing bug reports (when everyone knows: “the myriad of possible
configurations, it is possible for some combinations to cause failure”

all that said, did you elect to use grub2 or 1?

and, can you please show us both the old and new /boot/grub/menu.lst and
whatever it is that replaced that in grub2 between code tags like
explained here: http://goo.gl/i3wnr

or whatever you are using–i’m not grub2 conversant, yet…


dd http://tinyurl.com/DD-Caveat

On 2012-10-29 14:36, Wikinaut wrote:
> I file this bug to ping the developers to scrutinize system upgrade

No, you are not filing anything. This is a forum of users help other users. For bug reports you go
to bugzilla.

If you want help from us, please rephrase your post - as questions :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))