From unknown Wed Apr 29 13:07:15 2026
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

This message is in MIME format and has been PGP signed.

--=_stvyfnKFdaE9ugmglWkRhA6
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: x2goserver
Severity: important

Hi all, hi Alex,

we got feedback about NX and NFS that makes me think we should move=20=20
the=20server-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:=20=20
~/.x2go/C-<sessionid>=20---> /tmp/.x2go-$USER/C-<sessionid>

Read about deftjack's experience with NX below (thanks to "deftjack"=20=20
for=20allowing 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=20=20
still=20crashes.
[...]
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=20=20
directory=20for users. Can you do that with x2go?
23:49 < deftjack> One reason I did that with NX was to get the session=20=
=20
info=20off 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 di=
r.
23:59 < deftjack> at the nxserver/nxnode level.
23:59 < deftjack> I should be able to work around this by simply=20=20
making=20the 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=20=
=20
nightly=20builds?
[...]
00:28 <@sunweaver> the nightly builds are currently broken due to a=20=20
90%-baked=20commit 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=20=20
the=20server.
00:39 <@sunweaver> deftjack: define "more stable" and define "and faster"..=
.
[...]
00:51 < deftjack> sunweaver: If there was ever a disruption or even=20=20
significant=20slow down in nfs NX would timeout on access to
                    its session info and peoples NX sessions would simply d=
ie.
[...]
00:51 < deftjack> sunweaver: Faster in that writing locally to the=20=20
machine=20was faster than nfs even on a good day.
[...]
00:52 <@sunweaver> we actually should then consider moving NX_ROOT to=20=20
/tmp/.x2go-$user/=20completely...
00:52 < deftjack> Note we dont have crappy nfs here. Netapps but=20=20
sometimes=20the 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=20=
=20
a=20different 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=20=
=20
have=20/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=20=20
homes=20on nfs etc. Easily fixed but a pain.
[...]
00:55 <@sunweaver> deftjack: may I quote your information in a post on=20=
=20
x2go-dev=20mailing list ?
00:55 <@sunweaver> because we have to get the NX_ROOT issue fixed for=20=20
at=20least one file now, anyway...
[...]
01:07 < deftjack> sunweaver: absolutely.
01:07 <@sunweaver> thanks!
01:07 < deftjack> sunweaver: sorry at work, disruptions...
"""
--=20

DAS-NETZWERKTEAM
mike=20gabriel, 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.x=
fb

--=_stvyfnKFdaE9ugmglWkRhA6
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJTrKlVAAoJEJr0azAldxsxDj8P/3AW6C8U2Pt25nn7zFb7TWnQ
PZog4OuphX8XO9+2EEYN9lBes94GQqxndAQRCfhYw0j0IxEU4xCw8JXFWBh2Truy
pvldJirkrLxITWmrf+/JmkfeRC9JcBvRCfrIH2LCM4HMK5FEb8Dlfk2D24fCKnWI
7m4ZlZubzeIC5ex1F97sJsV+NWkgS0kr3gvzFnxYpaEjG5ek1sNOLrWcYWxxCq0T
oUq5zwaTpyjhA3eKprhQYtl8s/vYdfyv4bfFC6LQ9gP5DPSenkQiJf9yN0prIRV1
zCtIixjt/pvAO8xDWuewiBLhCidbsXPMFoZRE2o3ORR6lMZoQ25wsnkKVkK0Wkgd
aLtK6mUauU2vl4G0baYw33z/is652dGS7J/ms8xdhaufP5qAak9fc/dJlwA/IjC+
h5uSxo3YfljcwDvZ0uIKarIs6Q62EsTDjc5GRkaUUUZuWzsVwc+hJTAbllH3t+NR
U8E4FME6EejOnBdJUPsxJejZn2RLwmBi3Ck7RAIJRoMUNmi1LnN0j5EcZlDMrdOj
PKMAE+MCJiRoDEzbcGac344zRDk57Y+fe/fUSTf7WvWy26HTMTgPHEAWRblDU1kU
WkP61fxQpo1V2CGubv2tRVaPeqAMB3n4Zg0B984UliKvg4hp9vZSY+S1L1TlD9SV
15Tw46tsT6AwujEXUx2i
=8Ax3
-----END PGP SIGNATURE-----

--=_stvyfnKFdaE9ugmglWkRhA6--
