X2Go Bug report logs - #523
Move the complete session dir (NX_ROOT) to local file space

version graph

Package: x2goserver; Maintainer for x2goserver is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goserver is src:x2goserver.

Reported by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Date: Thu, 26 Jun 2014 23:15:01 UTC

Severity: important

Tags: pending

Fixed in version 4.0.1.16

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#523: Move the complete session dir (NX_ROOT) to local file space
Reply-To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 523@bugs.x2go.org
Resent-From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 26 Jun 2014 23:15:01 +0000
Resent-Message-ID: <handler.523.B.140382447128507@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 523
X-X2Go-PR-Package: x2goserver
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.140382447128507
          (code B); Thu, 26 Jun 2014 23:15:01 +0000
Received: (at submit) by bugs.x2go.org; 26 Jun 2014 23:14:31 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 706CB5DB1B
	for <submit@bugs.x2go.org>; Fri, 27 Jun 2014 01:14:30 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 29BCA3CF0;
	Fri, 27 Jun 2014 01:14:30 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 194AC3B8F0;
	Fri, 27 Jun 2014 01:14:30 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id vLCiUKRMEb4E; Fri, 27 Jun 2014 01:14:29 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id D87853B894;
	Fri, 27 Jun 2014 01:14:29 +0200 (CEST)
Received: from pD9E9F59B.dip0.t-ipconnect.de (pD9E9F59B.dip0.t-ipconnect.de
 [217.233.245.155]) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Thu, 26 Jun 2014 23:14:29 +0000
Date: Thu, 26 Jun 2014 23:14:29 +0000
Message-ID: <20140626231429.Horde.KCJd_S--KJN8YlIi_hnK9w5@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: submit@bugs.x2go.org
Cc: o.schneyder@phoca-gmbh.de
User-Agent: Internet Messaging Program (IMP) H5 (6.1.7)
Accept-Language: en,de
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 217.233.245.155
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101
 Firefox/30.0 Iceweasel/30.0
Content-Type: multipart/signed; boundary="=_stvyfnKFdaE9ugmglWkRhA6";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Package: x2goserver
Severity: important

Hi all, hi Alex,

we got feedback about NX and NFS that makes me think we should move  
the server-side session dir completely to local file space, e.g.

/tmp/.x2go-$USER/C-<sessionid>

and only leave a symlink behind at its current location:  
~/.x2go/C-<sessionid> ---> /tmp/.x2go-$USER/C-<sessionid>

Read about deftjack's experience with NX below (thanks to "deftjack"  
for allowing me quoting the discussion).

Mike


""" [discussion on #x2go at irc.freenode.net (2014-06-26)]
23:06 < deftjack> So I have a full blown desktop on the system and it  
still crashes.
[...]
23:36 < deftjack> well its something to do with the nfs home directories.
23:48 < deftjack> In NX you could tell it to use an alternate home  
directory for users. Can you do that with x2go?
23:49 < deftjack> One reason I did that with NX was to get the session  
info off nfs and on the local box.
23:49 < deftjack> It made things far more stable.
23:49 < deftjack> And faster.
[...]
23:58 < deftjack> It was "UserNXDirectoryPath" in the node.cfg on NX.
23:58 < deftjack> Basically it told it where it should put the users .nx dir.
23:59 < deftjack> at the nxserver/nxnode level.
23:59 < deftjack> I should be able to work around this by simply  
making the system not use nfs homes and they will just need to
                   be made when people are given ssh access.
23:59 < deftjack> but still use ldap auth.
[...]
00:27 <@sunweaver> deftjack: are you playing with X2GO Server from the  
nightly builds?
[...]
00:28 <@sunweaver> the nightly builds are currently broken due to a  
90%-baked commit of another developer...
00:28 <@sunweaver> feedback mails have been sent, no reaction, yet.
[...]
00:38 <@sunweaver> deftjack: the NX_ROOT is ~/.x2go/C-<sessionid>/ on  
the server.
00:39 <@sunweaver> deftjack: define "more stable" and define "and faster"...
[...]
00:51 < deftjack> sunweaver: If there was ever a disruption or even  
significant slow down in nfs NX would timeout on access to
                   its session info and peoples NX sessions would simply die.
[...]
00:51 < deftjack> sunweaver: Faster in that writing locally to the  
machine was faster than nfs even on a good day.
[...]
00:52 <@sunweaver> we actually should then consider moving NX_ROOT to  
/tmp/.x2go-$user/ completely...
00:52 < deftjack> Note we dont have crappy nfs here. Netapps but  
sometimes the servers would get hit hard and three would just be
                   this threshold that would cause NX issue.
00:52 <@sunweaver> ok....
00:52 < deftjack> sunweaver: So in NX they just allowed you to specify  
a different location for .nx on the nxnode(server side).
00:52 < deftjack> It worked perfectly.
00:53 < deftjack> I just put them all in /var/nxhome so user foo would  
have /var/nxhome/foo/.nx
00:53 <@sunweaver> this is very interesting information...
[...]
00:53 < deftjack> But still have access to their nfs mounted /home/foo
[...]
00:54 < deftjack> Ive also run into some selinux issues with their  
homes on nfs etc. Easily fixed but a pain.
[...]
00:55 <@sunweaver> deftjack: may I quote your information in a post on  
x2go-dev mailing list ?
00:55 <@sunweaver> because we have to get the NX_ROOT issue fixed for  
at least one file now, anyway...
[...]
01:07 < deftjack> sunweaver: absolutely.
01:07 <@sunweaver> thanks!
01:07 < deftjack> sunweaver: sorry at work, disruptions...
"""
-- 

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 16:10:37 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.