From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2IdzMdNPlmT9YQEASxT56A (envelope-from ) for ; Sat, 24 Jun 2023 04:07:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AP/oMNNPlmSncAAAG6o9tA (envelope-from ) for ; Sat, 24 Jun 2023 04:07:15 +0200 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 259ADE792 for ; Sat, 24 Jun 2023 04:07:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCsg6-0003yq-B9; Fri, 23 Jun 2023 22:07:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCsg3-0003yg-2t for guix-patches@gnu.org; Fri, 23 Jun 2023 22:07:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCsg2-0006Ec-OM for guix-patches@gnu.org; Fri, 23 Jun 2023 22:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCsg2-0002kQ-8U for guix-patches@gnu.org; Fri, 23 Jun 2023 22:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64259] [PATCH 0/2] Allow booting of degraded software RAID/MD arrays Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Jun 2023 02:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64259 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64259@debbugs.gnu.org Cc: Felix Lechner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168757237110502 (code B ref -1); Sat, 24 Jun 2023 02:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jun 2023 02:06:11 +0000 Received: from localhost ([127.0.0.1]:39721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCsf9-0002jG-IJ for submit@debbugs.gnu.org; Fri, 23 Jun 2023 22:06:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:41472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCsf4-0002j3-Et for submit@debbugs.gnu.org; Fri, 23 Jun 2023 22:06:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCsf4-0003uK-1T for guix-patches@gnu.org; Fri, 23 Jun 2023 22:06:02 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qCsex-0005CU-Hg for guix-patches@gnu.org; Fri, 23 Jun 2023 22:06:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=+Q0fSFAc2n9Xwqz oDcd9xmTY+SCnzwnSbAfyGmuaThU=; h=date:subject:cc:to:from; d=lease-up.com; b=n4LZPxbxRP85d4yMzMEGuFKBM44SX1Vx0ZLXrwu73jO343t83xwJ E5bdMJGJqg3fsnUXMfI/rxU9XGlm2NusxgdomohLjqsv+NX3t5MJGeuQSiXMr4wdCXJuRi V+RkpNrgRReyl7lNl35MF3EDooimVoismwstJUUbYaQKTctrc= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 902e5a4a (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sat, 24 Jun 2023 02:05:49 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 25e225ad; Sat, 24 Jun 2023 02:05:48 +0000 (UTC) Date: Fri, 23 Jun 2023 19:05:36 -0700 Message-Id: X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@us-core.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches From: Felix Lechner via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687572435; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=OMLlJ0ozowwIoi4Gbe1/KWfhgtE6/U73AaqUVyLQ0QU=; b=D5MLKtgLmSVcIvfqghsf1y1fiK/Wjus1grR+CGeaF8/6IiMQENam/LH4zjUiHRAQwrmvou IcQIQ2P5bBWveB2v22lKgF1akNcHLoXo9W7dEwwz421c81suHJWsAVB2ktVCP141iYTyGk AxlDxLKFyjYaidsoPnW5CM2HRjvDWp5UJHB0rNo5LXbr/b/jave2E0A+ZJzWNcdNaUFOR7 E1yLBrYqv2sh9bVzOglD2CYQa/tO09RexpxelCaVP4299yJwAlvJvZyD17NMvAnKThz76W DK/DkCu35+z1oHM+QTh311Q/RjLLWpFjwdoT22wHFEZ9eIbYjrwTNaydL7/wDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=n4LZPxbx; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687572435; a=rsa-sha256; cv=none; b=DCWr2PEg6FDT7iRTVZaEyDFD+1YxGapvqGrL4aNkU58nxx/X1ytBUFLQ0CPFahKpt4suNE G0UfZ0QozG5B6vvnq6uOB/luH2AhAZoKbf5ag7WCtD9TC19fGQ7tVX0++PYvo+1Z9fnhoR w2TaaITziFRW1rcvNRSOHrKzx6P6ge17mmAExfFrmaixPNfHh023XnT1dsxODaQTQYjo/O SBYWXELprwPGd17JLGVT9H+rxwOKC15IjdUmrg4XPY3Ng9L/GPJKJ5fbCC36EVdva5HAbD aYzFnSlEzr7wRxqzT9yqskvjHiuncdmTeowCfE8Fy69IdKvBY48AtounPuWPMw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=n4LZPxbx; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 259ADE792 X-Spam-Score: -3.45 X-TUID: 6nWWZmDvZW5q This commit series cures a dangerous condition for users of MD arrays in GNU Guix. Such arrays are presently unlikely to boot after a drive failure. Instead the user is dropped into an early boot Guile shell. That behaviour contradicts the expectations of many users of such arrays. These commits were tested over several months on two production machines. The changes also includes a system test of the new facility. Please feel free to make any edits to this series as needed, without checking with the author. Thanks! Felix Lechner (2): Offer an mdadm variant of uuids. Provide md-array-device-mapping to start MD arrays via UUID or name. doc/guix.texi | 28 +++++++++++---------- gnu/system/mapped-devices.scm | 38 ++++++++++++++++++++++++++++- gnu/system/uuid.scm | 46 ++++++++++++++++++++++++++++++++--- gnu/tests/install.scm | 32 ++++++++++++------------ 4 files changed, 110 insertions(+), 34 deletions(-) base-commit: d6dc82e8cdb2d6114a12b06d449ce7f1150c7f70 -- 2.40.1