From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2CAWMjfaImKTtwAAgWs5BA (envelope-from ) for ; Sat, 05 Mar 2022 04:34:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kI5rLzfaImJKDQAA9RJhRA (envelope-from ) for ; Sat, 05 Mar 2022 04:34:15 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 56D5E25E9C for ; Sat, 5 Mar 2022 04:34:15 +0100 (CET) Received: from localhost ([::1]:50708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQLBO-0006qo-5p for larch@yhetil.org; Fri, 04 Mar 2022 22:34:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQLBD-0006qe-8I for bug-guix@gnu.org; Fri, 04 Mar 2022 22:34:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53168) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQLBC-0003nm-Vi for bug-guix@gnu.org; Fri, 04 Mar 2022 22:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQLBC-0006mA-Hs for bug-guix@gnu.org; Fri, 04 Mar 2022 22:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#40999: GRUB prevents booting a degraded RAID1 array atop LUKS Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 05 Mar 2022 03:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40999 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Giovanni Biscuolo Received: via spool by 40999-submit@debbugs.gnu.org id=B40999.164645123926035 (code B ref 40999); Sat, 05 Mar 2022 03:34:02 +0000 Received: (at 40999) by debbugs.gnu.org; 5 Mar 2022 03:33:59 +0000 Received: from localhost ([127.0.0.1]:47065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQLB9-0006lq-Kj for submit@debbugs.gnu.org; Fri, 04 Mar 2022 22:33:59 -0500 Received: from mail-qt1-f172.google.com ([209.85.160.172]:37849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQLB7-0006ld-Sp for 40999@debbugs.gnu.org; Fri, 04 Mar 2022 22:33:58 -0500 Received: by mail-qt1-f172.google.com with SMTP id s6so5728360qtc.4 for <40999@debbugs.gnu.org>; Fri, 04 Mar 2022 19:33:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=OE3Yyz25O1E4D4xBqLtzOMQf+7JqxeXmla/7c7FJj74=; b=U5yHk7vgaH9KhOaVzocoUz289K1gPBVdBz6GXw8L5T3X7h98yNrQ2BOrSEiXT1rbxB a6d92HhkSinG95B5ubxPBJK6p/6jK6sskATz6FnPOpLFw7Mv66h+jUE/7HYU6UnsCoJc OC8Lnio3kNpb+4s1JRuq4kGScqAvQk2sUJZzT/T3+MXEZSLSCIzp7UPBtFNuzICatg6K PYWAoP1zQvTL6zKDCT3tQL85Gx3jUfCTz1lL8oS6XKkgY+N8ivoLv5zVLY2TSbbEIjpI 2ShIx9/H9V1zoqMPRT5qIaVUM+kXLt7NCwjsDGxeR3jMARCsL2FAjq8ql0u7YkIVenjf TfeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=OE3Yyz25O1E4D4xBqLtzOMQf+7JqxeXmla/7c7FJj74=; b=ukSQuptI9mLKe+8wYvNexzVgjkvfyGRd/UmrvDN3cKH0QLzTQgo4qq/NffHsqjPfe9 Vguji+DKrPCaczW9HyEJGnegPezNawOwJx95a2rpl5M/aLqp1lLxpHiLbXanFfxJuR2c 2Fcf8SkdgSiYyhDIvziHU36DFKHg8W3XKh+vhxd/fTOiKS2ljccepyfkFiKMizjVEFNx 4L+StT6p5vLPXumAScscyjxRfkAqm9/oHVsW6DnwWvwYv0HHIvT6/nVhH9xdbmsAgHV1 ilG4CI+/xXshyIIReLo4otxZDbfnYBwZNSdyNpWc8urZW89rEAbHq+yB/wXp2tftgp6C 5arA== X-Gm-Message-State: AOAM533vMRXkuT/x2y0wcWaYL8giquEH6KjlBxRlKNCxwRVb3EodiNjK quYeUavI38pPdCgJn48SrKoc8JCNalM= X-Google-Smtp-Source: ABdhPJy0hhGGJ7L+x0KSHI2AdDopnLvdtwPFn86/81nCgrYqWzbHLy9Cxv+SF3oSXpKyCw3ST+DWXw== X-Received: by 2002:a05:622a:14ca:b0:2de:904f:c1b2 with SMTP id u10-20020a05622a14ca00b002de904fc1b2mr1535570qtx.433.1646451231705; Fri, 04 Mar 2022 19:33:51 -0800 (PST) Received: from hurd (dsl-141-39.b2b2c.ca. [66.158.141.39]) by smtp.gmail.com with ESMTPSA id g19-20020ac87f53000000b002dd45d67a8esm4752572qtk.59.2022.03.04.19.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 19:33:50 -0800 (PST) From: Maxim Cournoyer References: <87o8r7kbbz.fsf@hurd.i-did-not-set--mail-host-address--so-tickle-me> <874kc14zd9.fsf@gmail.com> <87mtpof3bk.fsf@xelera.eu> <87fsvfz9eb.fsf@gmail.com> <877dgpfkrb.fsf@xelera.eu> <87wno4u3km.fsf@gmail.com> Date: Fri, 04 Mar 2022 22:33:49 -0500 In-Reply-To: <87wno4u3km.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 29 Aug 2021 02:15:20 -0400") Message-ID: <87ilst13aa.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 40999@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646451255; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=OE3Yyz25O1E4D4xBqLtzOMQf+7JqxeXmla/7c7FJj74=; b=MM7ikvmQJQzKhC20XWX/JL81WjpS54cQtFTZiTETbPRku0RWD3FxNSgfxdBOPd/cc9DNMA dH4FujAYNreDvqdgPvwSd+Pk/K/sqpNFWWgKbjO6Ou9vLLjqL/4sG1D+S2GoH3DwqIVKWN 1PCmWptvOOAOGOQb94ncQ+vg+WqyKNQ4eSHmFV8hcpJ9I0JM8ZzR+3EqKFo7l7NfKKRBVX w5wOrFdvsUY7IZd954XUaTtYtUUb4ZOofs4m/A8QyEJUUkpKgyI/4dUe7GO44y7gvHWBS6 0F6mvBgzL4TOw3wS8EZYIOldqRIbyYbCwNewDLdSep7rvqhLuwsqehYnSvOMhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646451255; a=rsa-sha256; cv=none; b=NqWVoJYLDac9uLc59kZkj9xscU7b/emYirBzNvOxoCoXl+d1Zi4BBKFTx6a6BeYpIsFp97 fDNau0n6sVCKdSFm+KPgawlHLiljVaSMwlMJGwdIJPk+QZDP3+LSRK+2kBzo1UGU+BAtEH P4FYwPrtnArcwxQtvQMdK4bWc72i612gXeMAvlookKzZqsBYjQAjPQ3pssAmodcj3EgOhS 8USncd0qQ/Xk+52hep2uCprzWHhP0dByrwLozgL71jD36My3o+BMGTj69gtRd2ivchlUQt SZShTzF2IugyIYQbF6mRxktZcBMSpu5jxtKdCe86oyfHnY4qe9CaPPXtazILeA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=U5yHk7vg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=U5yHk7vg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 56D5E25E9C X-Spam-Score: 4.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: grtw/o4OKzXp Hi, I'm writing here because I just found a much easier way to trigger this than by opening the case of my desktop and pulling a drive out with this QEMU script: --8<---------------cut here---------------start------------->8--- #!/usr/bin/env bash devices=(sda sdb sdc) args=(-enable-kvm -snapshot -m 2G) i=0 for d in "${devices[@]}"; do args+=(-drive file=/dev/$d,index=$i,media=disk) let i++ done qemu-system-x86_64 "${args[@]}" "$@" --8<---------------cut here---------------end--------------->8--- This attempts to boot the drives of the *live* system in QEMU; don't fret, it's not dangerous as the '-snapshot' option ensure no actual writes reach the drives. It seems to fail at the mount command in our initrd, but it at least allow testing GRUB easily. With the above script and my Btrfs RAIDc3 array on drives /dev/sda, /dev/sdb and /dev/sdc, after removing 'sdb' from the devices list for example I get: --8<---------------cut here---------------start------------->8--- Booting from Hard Disk... GRUB loading... Welcome to GRUB! Attempting to decrypt master key... Enter passphrase for hd0,gpt2 (0792432c78d84dcc87c530200c3d02db): Slot 0 opened error: failure reading sector 0x0 from `fd0'. error: no such cryptodisk found. Attempting to decrypt master key... Enter passphrase for hd1,gpt2 (f0afd5c9da7046a79c6f5d22913638bf): Slot 0 opened error: failure reading sector 0x80 from `fd0'. error: failure reading sector 0x80 from `fd0'. error: failure reading sector 0x80 from `fd0'. error: failure reading sector 0x80 from `fd0'. error: failure reading sector 0x80 from `fd0'. error: failure reading sector 0x80 from `fd0'. error: failure reading sector 0x80 from `fd0'. error: failure reading sector 0x80 from `fd0'. error: failure reading sector 0x80 from `fd0'. error: failure reading sector 0x80 from `fd0'. --8<---------------cut here---------------end--------------->8--- Dropping just sdc instead, I get: --8<---------------cut here---------------start------------->8--- Booting from Hard Disk... GRUB loading... Welcome to GRUB! Attempting to decrypt master key... Enter passphrase for hd0,gpt2 (0792432c78d84dcc87c530200c3d02db): Slot 0 opened Attempting to decrypt master key... Enter passphrase for hd1,gpt2 (a9aead409d014f7abb83be70dd192b7b): Slot 0 opened error: failure reading sector 0x0 from `fd0'. error: no such cryptodisk found. error: failure reading sector 0x80 from `fd0'. error: unknown filesystem. Entering rescue mode... --8<---------------cut here---------------end--------------->8--- This should make a future fix cheaper to try (but a system test will be best anyway :-)). Thanks, Maxim