From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: RE: Using a shared Guix store (was RE: [Bio-packaging] testing out guix) Date: Wed, 8 Jul 2015 19:20:09 +0000 Message-ID: <1436383208498.32759@stowers.org> References: <877fr0i0kl.fsf@mdc-berlin.de> <87616k0vvo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50407) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCutE-0000zO-0o for guix-devel@gnu.org; Wed, 08 Jul 2015 15:20:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCut9-0002Fz-Tv for guix-devel@gnu.org; Wed, 08 Jul 2015 15:20:15 -0400 In-Reply-To: <87616k0vvo.fsf@gnu.org> Content-Language: en-US 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?Windows-1252?Q?Ludovic_Court=E8s?= , Ricardo Wurmus Cc: Guix-devel , 'Pjotr Prins' , "'bio-packaging@mailman.open-bio.org'" Hi Ludovic and Ricardo,=0A= =0A= > Ricardo Wurmus skribis:=0A= > =0A= > > Even then, /gnu would be mounted read-only on all but the management=0A= > > host, because there would still only be one daemon writing to the=0A= > > store and the localstatedir =96 even if it would take requests from=0A= > > multiple remote guix clients.=0A= > =0A= > I think $localstatedir (/var/guix by default), or a subset thereof (namel= y=0A= > /var/guix/profiles/per-user) should be shared read-write over NFS to allo= w=0A= > users to create the profiles/per-user/$USER symlinks from other machines.= =0A= =0A= Loduvic, I'm not sure I understand well enough to agree....=0A= =0A= Ricardo, I appreciate your fixing my reasoning below....=0A= =0A= Certainly per-user profiles must be network readable , since they wind up o= n PATH. Perhaps within /gnu/guix/profiles/per-user?=0A= =0A= However, if `guix` command is enabled (using ssh/pipe/??) to run in network= ed environment with build and other work continuing to be coordinated by gu= ix-daemon, then updates to per-user profiles similarly would need to be coo= rdinated. For example, if a user wants to `guix package --install somePkg= -someVersion` then that package must be protected against any "simultaneou= s" garbage collection. Running the --install through the network daemon is= the guix way of protecting against such a race condition.=0A= =0A= On this topic, examining the documentation a bit further makes me wonder wh= ether support for `guix build --root MYROOT` will be impossible when (a) M= YROOT is not accessible to the host running guix-daemon. Will this be an i= ssue? =0A= =0A= Cheers,=0A= =0A= Malcolm=0A= =0A= =0A= =0A=