From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 04 22:33:59 2022 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 To: Giovanni Biscuolo Subject: Re: bug#40999: GRUB prevents booting a degraded RAID1 array atop LUKS 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 40999 Cc: 40999@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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