Message ID | cover.1740312673.git.roman@burningswell.com |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3AA9627BBEA; Sun, 23 Feb 2025 12:16:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BAC0C27BBE9 for <patchwork@mira.cbaines.net>; Sun, 23 Feb 2025 12:16:44 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1tmAu1-0008KX-H5; Sun, 23 Feb 2025 07:16:09 -0500 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 <Debian-debbugs@debbugs.gnu.org>) id 1tmAtx-0008KD-SF for guix-patches@gnu.org; Sun, 23 Feb 2025 07:16:07 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tmAtv-0000Sj-Cd; Sun, 23 Feb 2025 07:16:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=D8B/aavNbhUCEn6U6VazTU7E/O1idPRNym5CcBwAIWM=; b=dv0OG0PoQuR/AsonQ+n+MGv68cRzZj0RqZDEo247lIMsQMVjqHEg2D686mRIPCT4Lv5neAXi7s+jlnRskLXL4RBhsexDzZj9e7U4Em5M+NNMae2QGXSmM8dBJPZgkGN63ilJrBrUDw8K9KoWggLaIru5zzhsd8i9AXXJqxRXTF90CVKX9sVxqnenFaXkHATjwVKI5KJwfbONVOaWgfRMIreSIRVZKpUYBnZZ8qvY1hVENXZ9bx88dhuF1DwamGdAt9cTmxegnsSTT2ybp0wL6Tu05aPHhe5hbbuksDxf4L1s4fsaK8v8hHNCByY/f6O8JR6HC01+BdLUDPCL2Rlp4w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tmAtu-0002r5-Oj; Sun, 23 Feb 2025 07:16:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76501] [PATCH 0/1] Fix deployment of smaller Hetzner instances Resent-From: Roman Scherer <roman@burningswell.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: ludo@gnu.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Sun, 23 Feb 2025 12:16:02 +0000 Resent-Message-ID: <handler.76501.B.174031291510910@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76501 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76501@debbugs.gnu.org Cc: Roman Scherer <roman@burningswell.com>, me@fabionatali.com, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Maxim Cournoyer <maxim.cournoyer@gmail.com> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Maxim Cournoyer <maxim.cournoyer@gmail.com> Received: via spool by submit@debbugs.gnu.org id=B.174031291510910 (code B ref -1); Sun, 23 Feb 2025 12:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Feb 2025 12:15:15 +0000 Received: from localhost ([127.0.0.1]:59692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1tmAt9-0002pt-6l for submit@debbugs.gnu.org; Sun, 23 Feb 2025 07:15:15 -0500 Received: from lists.gnu.org ([2001:470:142::17]:49776) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <roman@burningswell.com>) id 1tmAt4-0002k7-QP for submit@debbugs.gnu.org; Sun, 23 Feb 2025 07:15:13 -0500 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 <roman@burningswell.com>) id 1tmAsu-0008Bk-Qy for guix-patches@gnu.org; Sun, 23 Feb 2025 07:15:02 -0500 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <roman@burningswell.com>) id 1tmAss-0000AJ-2C for guix-patches@gnu.org; Sun, 23 Feb 2025 07:15:00 -0500 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-aaedd529ba1so430819266b.1 for <guix-patches@gnu.org>; Sun, 23 Feb 2025 04:14:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1740312894; x=1740917694; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=D8B/aavNbhUCEn6U6VazTU7E/O1idPRNym5CcBwAIWM=; b=JNLOlf53AAcxMFJD2gWwJoaY2QRBLn3mdZAWlzF2Qu2ofKka3aMBp3byqs2+TVXEh5 vLRm7hB5qrx0XW9wFN8nODG0D8qF69Ya8X3NjTySFOm6bY+rfOPLQZ2mIxgGQWaCDfRQ ttv9rtUqqMeyKZHTmfEcfTUaD+OMwZqtKe3iOqv41hk1ILkUKusb/HAK2MgqyZUyIELP 9QmIi9cHl54NfsYi+USubBMh+QEXhwK+CAB2+A7h5PYCtLeoRdnfthGU1/XHEoUP//Zq ylpQ5DKyF+pBq3jHTCa+mRGFcNCsTOoSzVQBJhLOaVIF9okXf0oiH4/ktVgPYwVFKMrC ASLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740312894; x=1740917694; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D8B/aavNbhUCEn6U6VazTU7E/O1idPRNym5CcBwAIWM=; b=Lq76Qq0nezix0OVrT0sHNWtsmI7LDv4GiSO6jQsG1PqQ4otOzUtHufFAQVvo7C4mk6 35L0OlsTMmWSR3XI20gOGEJ7rysoYBtzEgPxLD1V51XTytxlXjnc4isTr19yIqmOFkPy 5gzg38HbTkXp5Pga5eJLy46Vh9IUE8JTRKXHDLjs244WQrAzyMLXbgYjAMaCM1PnRiuC 9TNa9b471NAv0N5Pq1jGJ+6wrfJ1ZBevWkuf0v3gWEdCoxLiLwOuCgz3bgidaVVQ7PB8 LNsIJAJD33Q5v/ip8g9s8sNI42z66PW4onKh1Z9cCGGIthSPqubKuZq1VMag5F0a5BHQ 5Flw== X-Gm-Message-State: AOJu0Yws5aamiJdCbxVUshRpKhVwWHTa/H8BHwsFCQtuT+DBoGDCHGBY Bbpvpy77j2QKI9fnza8MGj/eESaOiN6ex3IZ/MtKybtXacdrJSqMiKiAVV+UKLfYlxHFOnEyfmz 0xAw= X-Gm-Gg: ASbGncu9wyendfjPpZz+ygSSa+AVhFCplmvKZIZJTefAT7ma+ePeTt+Y+A0tZz+dlaw IJwtk2M+yCYSyEFqUtz6H8qACWbB98RgNOwVV/G54CmOsY+xnj16N0NqQgDThpX019KD+g7iiUB XnV5x/fHrpBGequPl304kymXm3Sq2g8LgbL1umqi84/NtnRxoUzqiS9MbwEXYNVMQ4QwviD19vS SjFjq7wGg1erTqhHEOPnZDIIg01sW9Pa4c8/IHW6H6DJQugzTRjA+PzR/GKbepDMHx56zYzckYK TWo4StiCz8tr1swfnSnY4oH0pnDdLg== X-Google-Smtp-Source: AGHT+IFsDW2m01SI0eV22BU39+obmxd8XCf9wtajqMcc9eSxqWtQjUFj8qXrQFVOWkHjf+9I58zf1g== X-Received: by 2002:a05:6402:3585:b0:5d0:c697:1f02 with SMTP id 4fb4d7f45d1cf-5e0b71124e6mr25148773a12.17.1740312892845; Sun, 23 Feb 2025 04:14:52 -0800 (PST) Received: from precision.. ([2a01:599:102:b293:733:e20f:faad:8ab3]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5dece1b4debsm16715837a12.15.2025.02.23.04.14.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2025 04:14:52 -0800 (PST) From: Roman Scherer <roman@burningswell.com> Date: Sun, 23 Feb 2025 13:14:48 +0100 Message-ID: <cover.1740312673.git.roman@burningswell.com> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2a00:1450:4864:20::629; envelope-from=roman@burningswell.com; helo=mail-ej1-x629.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham 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: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Fix deployment of smaller Hetzner instances
|
|
Message
Roman Scherer
Feb. 23, 2025, 12:14 p.m. UTC
Hello Guix, Fabio Natali reached out to me that there is an "out of disk space" issue when deploying smaller instances with the hetzner-environment-type. I thought I tried it on smaller instances. But either I didn't try it on the smaller instances, or another theory: I tried it back in the day, but Guix got larger in the meantime? Looking closer I discovered that the size of the root partition of the rescue system depends on the instance type, and is a lot smaller on those smaller ones. On a cax11 instance, booted into the rescue system from which a minimal Guix system is installed, "df -h" shows: Filesystem Size Used Avail Use% Mounted on udev 1.9G 0 1.9G 0% /dev [2a01:4ff:ff00::b007:1]:/nfs 1.2T 999G 151G 87% /root/.oldroot/nfs overlay 1.9G 1.9G 0 100% / tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 768M 864K 767M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda1 38G 44K 36G 1% /mnt /dev/sda15 244M 152K 244M 1% /mnt/boot/efi tmpfs 384M 0 384M 0% /run/user/0 The 1.9G of / on the the rescue system seem to be not enough to host Guix installed as a foreign distro on the rescue system, plus the packages needed to install the new Guix bootstrap system. To fix this I came up with the following solution: - before installing Guix on the rescue system, I make sure that /gnu/store has enough space. - this is done by bind mounting /mnt/tmp/gnu/store (here /mnt is the root of the new Guix system having more disk space) to /gnu/store. - then Guix is installed with apt-get on the rescue system using the store that points into the tmp directory of the new Guix system. - A minimal Guix system is installed onto /mnt, rebooted and from there the final operating system config is applied. When the minimal Guix system boots, the /tmp/gnu/store is gone and not used anymore. This seems to work. I have tried it and Fabio also reported that it works for him. What do you think of this strategy? Is there a better one? I attached a patch for this and also changed the instance type that are used in the tests to smaller ones, so this is covered for the future. Could you please review it? Fabio also asked me why I choose to use medium sized instances as the default instead of the smallest. My thinking was so people trying this for the first time have a good experience and not have to deal with an under-powered instance. I would leave it that way. If you think we should default to smaller ones, please let me know. Unfortunatly the above solution did not work with the smallest CPX11 instance, with 2 VCPUs, 2 GB of RAM and 40 GB disk space. The rescue system only 970M: root@rescue /usr/lib # df -h Filesystem Size Used Avail Use% Mounted on udev 961M 0 961M 0% /dev [2a01:4ff:ff00::b007:1]:/nfs 1.2T 999G 151G 87% /root/.oldroot/nfs overlay 970M 821M 150M 85% / tmpfs 970M 0 970M 0% /dev/shm tmpfs 388M 668K 388M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda1 38G 1.3G 34G 4% /mnt /dev/sda15 241M 142K 241M 1% /mnt/boot/efi tmpfs 194M 0 194M 0% /run/user/0 Installing Guix via apt-get works. But when installing the minimal bootstrap Guix system it fails with: ... downloading from https://ci.guix.gnu.org/nar/lzip/lclbcq0jds63zal1p55g6v0mwz90s44y-guile-git-0.5.2 ... downloading from https://ci.guix.gnu.org/nar/gzip/g2ajyl8xk9aarxrgjbng2hkj3qm2v0z2-tar-1.34 ... downloading from https://ci.guix.gnu.org/nar/gzip/v06gnr579r0jmr36aha3wkbd1y27ccg7-disarchive-0.4.0 ... downloading from https://ci.guix.gnu.org/nar/lzip/9nvx97hr8kkr26gzwni2fblfn0yq0xjw-guix-1.4.0rc2 ... error (ignored): aborting transaction: cannot rollback - no transaction is active guix system: error: committing transaction: database or disk is full Not sure what to do about that. I added a note to the manual that CPX11 instances are not supported at the moment. Thanks Roman. Roman Scherer (1): gnu: machine: hetzner: Fix deployment on smaller instances. doc/guix.texi | 4 +++- gnu/machine/hetzner.scm | 9 ++++++++- tests/machine/hetzner.scm | 4 ++-- 3 files changed, 13 insertions(+), 4 deletions(-) base-commit: 5f4c785fc3caa0fd960ebcf9c1ea6ab396b96f25 -- 2.48.1