From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0IFoDpH8imaqPAAAqHPOHw:P1 (envelope-from ) for ; Sun, 07 Jul 2024 20:37:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 0IFoDpH8imaqPAAAqHPOHw (envelope-from ) for ; Sun, 07 Jul 2024 22:37:37 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=LBuN1fL1; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720367081; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wum57f1nluWKe9hjY9lHBx5puC7CaC5IXAaEOlAjmhE=; b=RP9IJ1nkK4m1vGCYRJhi+92SK8fwFv80QWV7SAk1KhZ8brAufJb7UdpHWK7wEF2o4nfql2 qn58Gtwe1isjHpoCEEFdmBXQsZsifcO2geKJFvSLTxACkcdIzc5v1Rr4O6Hl6rRYT+39dK vP/d4726Lhn6+X2CKcKy+mOwrxB1guL/Fxvb3sanwBleM5k4zI0UngINYGM+EJXCC7L+7W rQS6GpKL9PW+wDAMTJRcoCTW+h4jAQ8IuEo7iSqQSTirYPAmY+3qQbYDhGuqtFmpuGXKCu GH20v+rkwKhWlnWzBvdSPJXqSDRHaUFfyfXn1A52su3rOl+C4ffNoGQh1FI5EQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=LBuN1fL1; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720367081; a=rsa-sha256; cv=none; b=uOMgopUQeFeS8eMczRr52bWdzH1+yqmRtM22bJZdFHjbTgWkMAjtamHag6RsDnp3NNlaZa LfTEMq4yT4zY1+cvqjHFO8+66Ghkc0a1k7UkxZmC3pxI76HHGBIeqHoBrV7v3KHpUi4ybC 8tbxvmbWIyS5vDFQJvzwDV2GhnXgJR1kAKyE7emszN9OXkJXLs7U8wdRTQRx1Fa0oB0opd 9tAt3UbUmyj08SL5QA/yovuvmibKOTkuQrwe8E99prGs+N2j/0qALfbyBT6SJ7Dz+KGpft +GsndM5TE3bLS0XhCmp5pWxrwf/l7BynzqeNhNn8HAfAcvCQQFFhY7Zy+CyNdg== 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 DF8E225349 for ; Sun, 7 Jul 2024 17:44:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQU3y-0006ed-Kj; Sun, 07 Jul 2024 11:44:30 -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 1sQU3w-0006dY-9F for guix-science@gnu.org; Sun, 07 Jul 2024 11:44:28 -0400 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQU3u-0007Lp-Gr for guix-science@gnu.org; Sun, 07 Jul 2024 11:44:27 -0400 Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-79ef7635818so155477685a.3 for ; Sun, 07 Jul 2024 08:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720367065; x=1720971865; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=wum57f1nluWKe9hjY9lHBx5puC7CaC5IXAaEOlAjmhE=; b=LBuN1fL1F9D86i6mcd/NHdEQbd1euv0xPYcy9hylw4Ishw5xOm3TZSd2b2DLLcVDGg Qe840WfkIlFHUfIDZP9H7nchbSpG2puT4f/0Y33NnZ0bVTRHObRfpz86VaMwLylGJ1+8 hffAppXIUTrvb915QSaL61DUQIs8Olh7Q7sL3W7XhyO/UdSKUThGma7iAHAo2gaX+fFj ToApI2brp6pIqsudHGsdtxHHnXRtSyptCqXx49V3Fx2OYPe7+SUB8pqfsGUcnWl5chtW fOy4ZqGCw3OhT1CTqOAXZQNkI3VWcfVGZsdP+Y90JVmA1j/X8kYqT/zQSRwzb9rDSQkB l5Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720367065; x=1720971865; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wum57f1nluWKe9hjY9lHBx5puC7CaC5IXAaEOlAjmhE=; b=Bgt87UDw5Vh9RB/R10xEC6qzv9Bn2LbUOPNIXetJ5oqTF8gM3iHZhEs9asKzEr1OwX de3Hrl75Z2Uin0la0pxyvmjJvUrCUlHfVIRG4DY1170xsSU9SzgL4MBmjwf7MBnrEdJY Kfm1JPOgvrT0IidXr6s83lwFZ8/mOf3LvjAF2tIIQepb1yQbcvm9wH5+7CM1HWvWLCbU WUp5Jml+irhu3tuG4ScsRg9qql94zseNbSgy7jsxpeEC39nOmhMNTFpG0cgQshWB7gWd bKIYY2LVEmW9z7huSRwqOD7O5r/9/lSolJ0cCUBOjG5/dzpEYGs7SLzEKxj+CHNuYnB6 VgMA== X-Gm-Message-State: AOJu0YynUlQfBc0xeWpblAyhLfofFKrp3taLhYK9AUn2buf1678QsDvS t77YAj4N5kyjMCaoKVluNW2nGY2ekYSSgmVnnR+5/SjSBpvdI3fm X-Google-Smtp-Source: AGHT+IG7TC8D8llbGfSgXEWxECBOkArvfCydMVfOsYTFI+PFfJl8I4NAYxEL5jZF+IDxw7WAWFlBhQ== X-Received: by 2002:a05:620a:220c:b0:79e:fcc3:5df0 with SMTP id af79cd13be357-79efcc362c0mr561296385a.55.1720367065005; Sun, 07 Jul 2024 08:44:25 -0700 (PDT) Received: from localhost (ool-ad039216.dyn.optonline.net. [173.3.146.22]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-446514b9d41sm89381771cf.88.2024.07.07.08.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jul 2024 08:44:24 -0700 (PDT) Date: Sun, 7 Jul 2024 18:44:23 +0300 From: Efraim Flashner To: Adam McCartney Cc: Guix-Science Subject: Re: guix on a cluster: install into existing mount Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZFmW4SrA2LyrmUD1" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=efraim.flashner@gmail.com; helo=mail-qk1-x72b.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: guix-science-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -3.99 X-Migadu-Queue-Id: DF8E225349 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -3.99 X-TUID: u6C+VBOccP1e --ZFmW4SrA2LyrmUD1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 04, 2024 at 08:40:54PM +0200, Adam McCartney via Guix-Science w= rote: > Can also offer a little bit of further clarification: >=20 > > + The recursively mounted subtrees don't survive a reboot, despite ther= e being > > fstab entries for them. > > + The guix daemon doesn't want to run, I think this maybe has something= to do > > with the way that the `gnu.mount` service is set up? I guess that unit= is > > maybe not expecting to find a mount under `/gnu/store`? >=20 > So, the typical pattern that was being applied when I approached the syst= em > was append the following two entries to fstab: >=20 > ``` > [HOST_IP]:/gpfs/opt/adm /mnt/adm nfs rw,async,noatime,nodiratime,_netdev = 0 0 > [HOST_IP]:/gpfs/opt/sw /mnt/sw nfs rw,async,noatime,nodiratime,_netdev 0 0 > ``` >=20 > As I mentioned in the thread above, I've recreated the required guix fold= ers > as: > + `/mnt/sw/dev/guix/gnu/store` > + `/mnt/sw/dev/guix/var/guix` > + `/mnt/sw/dev/guix/var/log/guix` >=20 > And then used the recursive bind option for mount: >=20 > ``` > mount --rbind /mnt/sw/dev/guix/gnu/store/ /gnu/store > mount --rbind /mnt/sw/dev/guix/var/guix/ /var/guix > mount --rbind /mng/sw/dev/guix/var/log/guix/ /var/log/guix > ``` >=20 > At this point it's possible to start the guix daemon and do a guix pull. >=20 > I'm a bit unsure as to how to make these recursive bind mounts persistent= in > fstab. I've tried a couple of different options: >=20 > As type nfs rbind > ``` > /mnt/sw/dev/guix/gnu/store /gnu/store nfs rbind > ... > ``` >=20 > As type none rbind > ``` > /mnt/sw/dev/guix/gnu/store /gnu/store none rbind > ... > ``` >=20 > Referencing the host directly > ``` > [HOST_IP]:/gpfs/sw/dev/guix/gnu/store /gnu/store nfs rbind > ... > ``` >=20 > Any pointers in the direction of where I might find some more info on mak= ing > recursive bind mounts persistent much appreciated! >=20 > cheers, > Adam >=20 > p.s. I have considered that a cleaner solution would be to actually export > the relevant directories from the nfs server rather than creating bind > mounts after > it has been mounted. This is probably an option going forward, but for th= e time > being I probably have to make do with the test setup as described above. >=20 It could be that there isn't a /gnu directory already on the machine, so could it be that's why it's not working? I guess my two questions would be: 1. Do any of the mounts work? (that is, can you test them individually instead of all at once?) 2. Does something like the following work? /mnt/sw/dev/guix/gnu /gnu none rbind --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --ZFmW4SrA2LyrmUD1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmaKt80ACgkQQarn3Mo9 g1EUJhAAq3yidJtAxYm7oJUYj075l78Tg+dpkocImdvIr2FjmKXgO/eCRxwjITmL az5xgQDgJym53KCTu2fil8LcLG7nHkZh5DvBCOUXzotev68JP4x0qR73eu/iyDIi 4geAH/3HI5NhBHO08B3a1Mcf5vUniGMxiy9E5gPCZGswoqsrZkV5ncfKcnm+Oq38 teP/LcgC1/UM0wlIrz59GUewCuilyz4T9RABo0IbkzLeYqTsBXs9TdxoHhg4hrxY lrBGz6VvUYJNaDl+ZBWY2ieTeNXQv3/RD95MUZU3SdUnXPQsKaPHfz7e2BoOJJJF T9Lyo4EyZl+GH6AkqxqB3iOt2CX17yoyKct6IpapwW+ZQISFd3YQPOgsaC33qNup LNaVd16TFr+S3XzF4zJLAQRrK67iehbHY5VQGBcvIc/T6Pe4mMuanBPDpGA7h/Wg ElvNl/NNHUQOIar5aUUgu5NoZhpcl3r3ob2UJtLmX9zWmIkQtZz+HWViZ1F3MQd4 rZVa7lkytk9S/ORndb7WRCnN5N0gjpEYCe7YJnLenWGDd8fVQCspW+aQEkSU5HuK YiHXh6+f6XIuY9rX9mmL0VRHvquGn3ZymUjogZQIAAQlNEHbtwCe7dcle9gpO2UP OjC32aXQbWRXBvc1frFYBvtwzAymDLBJ18AAnpsObKBvtyBUx98= =7or3 -----END PGP SIGNATURE----- --ZFmW4SrA2LyrmUD1--