From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qF2yGnqRjmIoDQAAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 22:28:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2Ma0GnqRjmJV2gAA9RJhRA (envelope-from ) for ; Wed, 25 May 2022 22:28:42 +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 F185339785 for ; Wed, 25 May 2022 22:28:41 +0200 (CEST) Received: from localhost ([::1]:50926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntxcW-0006v1-FD for larch@yhetil.org; Wed, 25 May 2022 16:28:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntxc2-0006tJ-Ln for guix-devel@gnu.org; Wed, 25 May 2022 16:28:10 -0400 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:42761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntxc0-00041m-1z for guix-devel@gnu.org; Wed, 25 May 2022 16:28:09 -0400 Received: by mail-ej1-x636.google.com with SMTP id i27so43863420ejd.9 for ; Wed, 25 May 2022 13:28:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=3yTIZDd4En1RxnL7OhF09hNiTej+Gt2Dp80on1zM/Mk=; b=km5t6Bc5yD/QqF1CN0elquLFWdq8LheCbVbO/pX8MbGzCDc2ySH31v+chtLHkQUi99 1oGAhwVc/hYs3GxcGn/He/SVP/8K2OLFM8Nf7AF6/dbtPfHeKFrz5bTMT0ZQ1uO6Nzqx eBhIcIDKxboO3dTLh7P87yPCYp1N06V9gQKHqg8fcuX/3hnJcQXuPdU68R/k6LZBJMVB /rqqqPespVCLD0wYx/CAxJclgktkz0vpglSFzL467JkaB6CNSmwge81QIav5fNVCZvgZ NbLvRGWnTcKixiBIAJpcDb+pN/S6ZkKcQKVTOukOpJqyPoRX0nwzIJjmcLnzmRiVUl6J G/pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=3yTIZDd4En1RxnL7OhF09hNiTej+Gt2Dp80on1zM/Mk=; b=bOi9ZJeRz1xh8oLAKTKJnuLNd2kdQIuiWwhxHmNS6rGMXWUAKSSujN9QwwAoN2xiRQ NgDDemEfbTdQ3UTkndCpi4tymbwjdgt+AOnikuPtFaqpujxIjSpc9nvztIoKoVrWrRWd ZxEsBeHiV02QAPBw6Dl15jDvfdvfcmesFCok7uAQwDHE4a14vShpAkELaShG33Eui1hM hbNKoVcNQnS4s0w8iGYFPzAy2QFBRu/E9cxVlBfl99ODLj7gxKtB7b1Mo93kxrJM7KlZ +9AzjWL/Dy5HgBK3pyFQ60TiJKpqKsP8+fTOVdJ0g4uR/MzxXn6GNFPFL0C8tFoednAT 26VA== X-Gm-Message-State: AOAM531+oK7vzBBhCXkJqSylHDQS8BliubjmKaXvovjGvBxPhAi/2/M1 unXLAs08VvOlkBaUlQmBTwxQKHPW7nM= X-Google-Smtp-Source: ABdhPJzmqjsuu1ju/PXPVwzQGW9WFj/zfUI7BZbodVjTVRa+P8qhI1OM64Q6ikvk3a+cMwuYYnMJyQ== X-Received: by 2002:a17:907:1c8a:b0:6e9:2a0d:d7b7 with SMTP id nb10-20020a1709071c8a00b006e92a0dd7b7mr30448644ejc.572.1653510485211; Wed, 25 May 2022 13:28:05 -0700 (PDT) Received: from gazelle.gmail.com (p579ad986.dip0.t-ipconnect.de. [87.154.217.134]) by smtp.gmail.com with ESMTPSA id ot22-20020a170906ccd600b006f4cb79d9a8sm3329008ejb.75.2022.05.25.13.27.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 13:27:50 -0700 (PDT) User-agent: mu4e 1.6.10; emacs 28.0.90 From: =?utf-8?Q?Th=C3=A9o?= Maxime Tyburn To: guix-devel@gnu.org Subject: Move /gnu/store to another filesystem Date: Wed, 25 May 2022 18:56:23 +0200 Message-ID: <87czg1mk77.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=theo.tyburn@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653510522; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3yTIZDd4En1RxnL7OhF09hNiTej+Gt2Dp80on1zM/Mk=; b=KToO9lKrr83rc1fJPxLNepMznZXUlg/q+ybrgU98z9EZ20EorHssWF4vsJ1VQprHakIz48 hEAWuBf8i3lWp9lAaCJqdvY/QuveQgXN+A+G423EhwXMSwDDmkTp0Vc8qaX4iZwghzYBSC HAB3Qv1b2TM80mnVuJORgV2jolwqtmBLW2N25UDS2Htynyr4ISDqtF/53QYPuCDkUXiZPD MEjRFItG7aDXg3u1bwk2EYgqobgmKhbEaibBzZqckaxW8g1q5kjnp2gCU0SEycgNvi5N6l E1xFz3eGmQZSrNUaTak/nXMJz22vJzlIJeU+ER4gwNaYjEpxsHJ/SjGtfiUdiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653510522; a=rsa-sha256; cv=none; b=Uv6NyDi5aiL2SCMP2TY+Kv+w1OLAymvdKvJLCyT5PW1DIYZ1JdRYCtAKbmMjSMsqT//0jB v7O+cHrfnMFpYSJ/nZ69Ex2+ouVU4hNJeTAe/zbinrx2WGRVx3o5lUfr6+tM3czLwBKMdw wrLuASv8x5blUp/jn2FXF7iR3wiSchiXwQxQN1jdu5mOnDyE+unc5x7ZWnxycfkvJ/zFs9 J3fRZ2JEZxBvgtJi1cAqKsPh092o6dAvrCe3i0YrrBWY/eI3wE8d2eOThxyjZyDGTYwtRt 8/pTD8L0cIp1pQERrKSkDNWgj1aA+/05Ys3/MZGj7wD7+mAXIiwHrXf6Da+utg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=km5t6Bc5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=km5t6Bc5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: F185339785 X-Spam-Score: -9.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: oosVjopstq9k Hello, I am running out of space on my 128GB SDD. It seems to be too small for holding 2 months of store with regular updates. So I want to "transfer" it to an interal HDD which is much larger and has a btrfs on it. This is what I tried so far. I created a btrfs subvolume on my HDD and called it gnu-store. I then booted from a usb-stick, and copied /gnu/store/* directly into the subvolume. As a final preparation I moved /gnu/store to /gnu/store-backup and created an empty /gnu/store folder. I f= inally booted from a system which basically mounts gnu-store on /gnu/store (see the definition below). Note that I ran "guix system reconfigure ..." before doing the copy, so the stores are identical. It boots but complains that there is "no such language scheme". Maybe this portion of the system definition will make it clearer: --8<---------------cut here---------------start------------->8--- (define %boot-fs (file-system (device (file-system-label "boot-fs")) (mount-point "/boot") (type "ext2"))) (define %root-fs (file-system (device (file-system-label "root-fs")) (mount-point "/") (type "ext3"))) (define %store-fs ;; <--- This is what I want to add. (file-system (device (file-system-label "storage-fs")) (mount-point mt-point) (type "/gnu/store") (options (string-append "subvol=3D" "gnu-store")) (needed-for-boot? #t) (dependencies %root-fs))) (operating-system [...]=20=20=20 (file-systems (append (list %boot-fs %root-fs %store-fs) %base-file-systems)) [...]) --8<---------------cut here---------------end--------------->8--- What am I doing wrong here? I though with this config root would be mounted= first then the store will be mounted on it. But this error seems to tell that something is missing. Anyway this is probably not the right way to do it. Simply coping /gnu/store around looks a bit brutal.=20 I=E2=80=99d appreciate any kind of help :) Th=C3=A9o