unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Théo Maxime Tyburn" <theo.tyburn@gmail.com>
To: Kaelyn <kaelyn.alexi@protonmail.com>
Cc: Giovanni Biscuolo <g@xelera.eu>, guix-devel@gnu.org
Subject: Re: Move /gnu/store to another filesystem
Date: Thu, 26 May 2022 21:48:23 +0200	[thread overview]
Message-ID: <87v8tsvzn7.fsf@gmail.com> (raw)
In-Reply-To: <KfyWiGdCJ4NgXroxDW1tSmSKgV4Yh0HPELJwqgJnEfRmMx2_fw8oRAdl7DWKAnhEZwniO4HDyF5NMfly_9eVq5dnSn-giloPnmpvHYruPRk=@protonmail.com>


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éo

Kaelyn <kaelyn.alexi@protonmail.com> writes:

> Hi Théo,
>
> n Thursday, May 26th, 2022 at 3:44 AM, Théo Maxime Tyburn <theo.tyburn@gmail.com> 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 same LUKS-encrypted partition. Here is the `file-systems` stanza of one of my 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=zstd,subvol=@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=zstd,subvol=@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’t see what could have gone wrong. I’ll try it agin.
>>
>> > Happy hacking! Gio'
>>
>>
>> Tks!



  reply	other threads:[~2022-05-26 19:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-25 16:56 Move /gnu/store to another filesystem Théo Maxime Tyburn
2022-05-26 10:28 ` Giovanni Biscuolo
2022-05-26 10:44   ` Théo Maxime Tyburn
2022-05-26 16:24     ` Kaelyn
2022-05-26 19:48       ` Théo Maxime Tyburn [this message]
2022-05-27  5:56         ` Giovanni Biscuolo
2022-05-27  9:34           ` Théo Maxime Tyburn
2022-05-27 11:08           ` Théo Maxime Tyburn
2022-05-27 12:48             ` Giovanni Biscuolo
2022-05-27 14:12               ` Théo Maxime Tyburn
2022-05-27 15:55                 ` Giovanni Biscuolo
2022-05-27 16:37                   ` Théo Maxime Tyburn
2022-05-27 11:28         ` Tobias Geerinckx-Rice
2022-05-27 11:37           ` Tobias Geerinckx-Rice
2022-05-27 14:09             ` Théo Maxime Tyburn
2022-05-27 13:56           ` Théo Maxime Tyburn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8tsvzn7.fsf@gmail.com \
    --to=theo.tyburn@gmail.com \
    --cc=g@xelera.eu \
    --cc=guix-devel@gnu.org \
    --cc=kaelyn.alexi@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).