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 EOhdO1fbj2J1gQEAbAwnHQ (envelope-from ) for ; Thu, 26 May 2022 21:56:08 +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 qIZ3O1fbj2JXEAAA9RJhRA (envelope-from ) for ; Thu, 26 May 2022 21:56:07 +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 CADB82C1FD for ; Thu, 26 May 2022 21:56:07 +0200 (CEST) Received: from localhost ([::1]:42390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuJaZ-0005WY-2R for larch@yhetil.org; Thu, 26 May 2022 15:56:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuJYR-0004Ku-7Z for guix-devel@gnu.org; Thu, 26 May 2022 15:53:56 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:44808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuJYP-0000VR-LG for guix-devel@gnu.org; Thu, 26 May 2022 15:53:54 -0400 Received: by mail-wr1-x431.google.com with SMTP id z15so3347841wrg.11 for ; Thu, 26 May 2022 12:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=DIUbp6I6LVGItYGcXQ/+TUY10krXSiOk/Lk8mUoV7JA=; b=J3uKeOTJuS+RXMKl/yVmH1OSzKNS3rVAd9CBVx7P+Wio2+f5JDxeLhgwC6VPkeUY6J eoTVkDZwkadFyhSSvuywUJiWUmhY5BKWIctk6FITK7FEoKoD18PoF9Cyk9nY+kWbST+A vLKqpid8k79QNtNyOkspeb+Uela8LF8/VhiHnbXeShcXIOo0xRkudgSNc3dBB4x1ct+s sjJ1Bqn4QQOPLPeSVfo5vtINZhIBQY2h2iKU11SY1tEPEnoDUhC6Rp2idVDi9bm553xs YmL3rFRa9Ys6Btq7/eBAk/pTOYJ/mcik0DF0ockwJWvor9SmXNnT8ACQftHYmUQjwz2A YWvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=DIUbp6I6LVGItYGcXQ/+TUY10krXSiOk/Lk8mUoV7JA=; b=cSlhNC0hOlMDlecLX0Ixf37JpVWnB0MM6zmbPnG7EPq0/9ah4w6NMXf6N4bNMJ2/0N KdS2HwM6gL8YCk1IlzMzR/GwJjo8Yq4qSzUx1DJN/9HlCtdMRyn2Qr1fFguR3QNk+IOg KhocYTRP6ZBT8UDZBYKs03ZqzA4AGkpZSGL4snN/e0b6Dw14As4SVSuLY0QxsN4le92I HwNSh7BeZdOl87oQhFo3KsknFwQaDKLoerJA+K7arYK0zkoUBkTOhZMtls3nAaY80lts 5rY0fIh1kxfDRbtqQaYZi/YR9/jIzoRFj9LAve74klt0WMweOdbpuJ3zM22IsKixCwRR bEyQ== X-Gm-Message-State: AOAM5320m5GvorIcQaJSA+0eu7EgUUh8tRfLlrQ3kcOntvp2T8urXpY/ shYmEsBMOTHTeNG1PhF5CYAmDz9/FZQ= X-Google-Smtp-Source: ABdhPJx3MPz8ZgWbYOzTN+s/YFQ15ZSE2C39/Y9SSbg91mgiqCtUZWuXejFm4F9ll95qq2cjziv01g== X-Received: by 2002:adf:e7c6:0:b0:210:99e:cf13 with SMTP id e6-20020adfe7c6000000b00210099ecf13mr4034266wrn.20.1653594831021; Thu, 26 May 2022 12:53:51 -0700 (PDT) Received: from gazelle.gmail.com (p579ad8e1.dip0.t-ipconnect.de. [87.154.216.225]) by smtp.gmail.com with ESMTPSA id m15-20020a5d4a0f000000b0020fc3e24041sm26149wrq.106.2022.05.26.12.53.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 May 2022 12:53:50 -0700 (PDT) References: <87czg1mk77.fsf@gmail.com> <87wne8mvum.fsf@xelera.eu> <874k1cmuyl.fsf@gmail.com> User-agent: mu4e 1.6.10; emacs 28.0.90 From: =?utf-8?Q?Th=C3=A9o?= Maxime Tyburn To: Kaelyn Cc: Giovanni Biscuolo , guix-devel@gnu.org Subject: Re: Move /gnu/store to another filesystem Date: Thu, 26 May 2022 21:48:23 +0200 In-reply-to: Message-ID: <87v8tsvzn7.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::431; envelope-from=theo.tyburn@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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=ham 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=1653594967; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DIUbp6I6LVGItYGcXQ/+TUY10krXSiOk/Lk8mUoV7JA=; b=d2XDHuL/1v+psuiLCeVIcZBBEqp2QA65p8BWCmK+DJVsk4YDX3E2u4HBCsOTlvGNeFzA+a 1uqb5jD9Pux9IwXVXXR7QzYD7kuTurFtOwh1dalKfCUczC+gKaQT53g4jRkJiWxNf3EibO Ef/o1nWkmizh2JCJ7M4Jkc09mxkjEpA1N5vnI8cdLY6xD8hL2ISi/EpItQ9x/q694Tx69O O4vxN7KIl1MJuRkXhzBOxuJUw3g/44rhVcL4d12Hb8ImHWETbhBqKpZJfTsi/j+GgtYdxN /1jUJ+f8uiZltYZa4iqKPU7SVOw6fYuGuyhxh3eZIaNM0Rto+9DdFsJHaJZuoA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653594967; a=rsa-sha256; cv=none; b=H/aktgbqvVnAPbRJUxyJ+N2i02LJaAm8FGQ4Zx6nyABwwEwQuolU0mKPJJejx+YlsO4SkW +GbUSXrPL0BQw//dBXdQe/BH6d5o5bufS/i4oJi66tWTZITeZXzM3zlejhfJIyIopStFul dZ5PVhkfPOAeFkwo2NP8uR09ici+0BGQyQfIL/PnUaQD9Q4fIYbCB6dnEGA5b4NuLxMCSb O/MDVD00kAx8eVJGT9R6v5OkGC2G2K7qwPdqWl5eGZ0VFnODp6KiDGfsmfehupYLtpDbOJ faLULmnCsWhuUks00XiJCv9sjpF1umHbczMeT/cwhFpP2UpEW8cPgUALj/uZLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=J3uKeOTJ; 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: -4.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=J3uKeOTJ; 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: CADB82C1FD X-Spam-Score: -4.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: ehqj1yQZnoHs Hello Gio and Kaelyn, I figured out where the problem came from. I forgot to use the -p option while copying the store with cp. Because of this some scheme files where newer than their compiled counterpart, which forced to compile them anew. Just did everything again with cp -p and it worked like a charm. Thanks for the support! Th=C3=A9o Kaelyn writes: > Hi Th=C3=A9o, > > n Thursday, May 26th, 2022 at 3:44 AM, Th=C3=A9o Maxime Tyburn wrote: > > >> Hi Gio, >> >> Giovanni Biscuolo g@xelera.eu writes: >> >> >> [...] >> >> > maybe you misconfigured "mount-point" and "type"? >> > >> > what about: >> > >> > --8<---------------cut here---------------start------------->8--- >> > >> > (define %store-fs ;; <--- This is what I want to add. >> > (file-system (device (file-system-label "storage-fs")) >> > (mount-point "/gnu/store") >> > (type "btrfs") >> > >> > --8<---------------cut here---------------end--------------->8--- >> > >> > WDYT? >> >> >> Oh yes sorry, I did a mistake while copy-pasting. What you suggested >> is actually what I am using. > > If you have the new /gnu/store as a btrfs subvolume, you may need to tell= `mount` which subvolume to mount there. I haven't tried moving /gnu/store,= but my systems have / and /gnu/store as separate btrfs subvolumes in the s= ame LUKS-encrypted partition. Here is the `file-systems` stanza of one of m= y system's operating-system declaration, in case it is helpful: > > (file-systems > (let ((rootfs (file-system > (mount-point "/") > (device "/dev/mapper/cryptroot1") > (type "btrfs") > (check? #f) > (options "compress=3Dzstd,subvol=3D@guix") > (dependencies mapped-devices)))) > (cons* rootfs > (file-system > (mount-point "/boot/efi") > (device (file-system-label "EFI")) > (type "vfat") > (mount-may-fail? #t) > (dependencies mapped-devices)) > (file-system > (mount-point "/gnu") > (device "/dev/mapper/cryptroot1") > (type "btrfs") > (check? #f) > (options "compress=3Dzstd,subvol=3D@gnu_store") > (dependencies (cons rootfs mapped-devices))) > %base-file-systems))) > > Cheers, > Kaelyn > >> >> > > Anyway this is probably not the right way to do it. Simply coping >> > > /gnu/store around looks a bit brutal. >> > >> > AFAIK we can move /gnu/store anywhere if the system is not live, >> > like you did booting in "rescue mode" >> >> >> Well then I don=E2=80=99t see what could have gone wrong. I=E2=80=99ll t= ry it agin. >> >> > Happy hacking! Gio' >> >> >> Tks!