Re: [systemd-devel] Root remaining read-only after boot, no obvious reason why

2023-05-16 Thread Dave Re
https://freedesktop.org/wiki/Software/systemd/Debugging/ Unfortunately, setting systemd.log_level=debug, and then capturing the full output doesn't expose anything useful. No errors or indications about why systemd-remount-fs.service isn't

[systemd-devel] Why does stopping mount units kill user sessions?

2023-05-16 Thread Frank Steiner
Hi, after Don gave me the hint about the automounter problem in the other mail I still didn't understand why stopping a mount unit should kill the user's session, so I tried that manually. And indeed, with :/b /home/b nfs4 defaults,noauto,x-systemd.automount 0 0 in /etc/fstab, /home/b will be

Re: [systemd-devel] Root remaining read-only after boot, no obvious reason why

2023-05-16 Thread Brian Reichert
On Tue, May 16, 2023 at 05:26:00PM +, Dave Re wrote: This is not a response to your issue, but I wanted to reach out and say that I also work at Imprivata, in the Spirit group. :) breich...@imprivata.com And I'm stuck with systemd for the now-ancient SLES12 distibution... And I have a sep

Re: [systemd-devel] Root remaining read-only after boot, no obvious reason why

2023-05-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, May 16, 2023 at 05:26:00PM +, Dave Re wrote: > One step I haven't taken is turning on debug level logging in systemd - not > sure what to expect (or not expect) out of it, but I guess that's my next > step. I'd welcome any pointers to debugging resources, etc, but realize this > is a

Re: [systemd-devel] Root remaining read-only after boot, no obvious reason why

2023-05-16 Thread Dave Re
Hmm, so we stopped enabling systemd-remount-fs.service in this way back in 2018 (https://github.com/systemd/systemd/commit/9b69569d2c). At this point, that's ancient history for us ;) We're unfortunately stuck to the RHEL 8 choice for systemd, yeah... ancient for sure. One step I haven't taken i

Re: [systemd-devel] idle home NFS gets unmounted although user is still logged in

2023-05-16 Thread Frank Steiner
Dan Nicholson wrote: I strongly suspect you're dealing with https://bugzilla.redhat.com/show_bug.cgi?id=2056090. I.e., autofs Thanks a lot, Dan! So I guess the patch was rejected upstream? doesn't handle mount namespaces. Since systemd uses lots of mount namespaces, the idle timeout essentia

Re: [systemd-devel] Root remaining read-only after boot, no obvious reason why

2023-05-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, May 16, 2023 at 02:37:58PM +, Dave Re wrote: > > Hi, Zbyszek, > > The kernel default is to mount root ro, so unless there's some configuration > to > mount or remount it rw, it'll stay ro. Generally this is configured in two > places 'rw' on the kernel command line and 'rw' in /etc/f

Re: [systemd-devel] idle home NFS gets unmounted although user is still logged in

2023-05-16 Thread Dan Nicholson
On Tue, May 16, 2023 at 5:54 AM Frank Steiner wrote: > > I changed the idle-time to 1 minute for debugging. What I can see > 20 seconds before the umount happens: > > bioserver3 /etc/systemd# lsof /home/b > COMMAND PIDUSER FD TYPE DEVICE SIZE/OFF NODE NAME > jupyterhu 14150 biouse

Re: [systemd-devel] idle home NFS gets unmounted although user is still logged in

2023-05-16 Thread Frank Steiner
I changed the idle-time to 1 minute for debugging. What I can see 20 seconds before the umount happens: bioserver3 /etc/systemd# lsof /home/b COMMAND PIDUSER FD TYPE DEVICE SIZE/OFF NODE NAME jupyterhu 14150 biouser cwdDIR 0,107 4096 134348997 /home/b/biouser (:/b) jup

[systemd-devel] idle home NFS gets unmounted although user is still logged in

2023-05-16 Thread Frank Steiner
Hi, we've a problem with a user session getting killed by systemd although it shouldn't as far as we understand. We have a jupyterhub running on a SLES 15 SP4 server. When a users logs in (widh pam) and starts a server (which is just a jupyterlab process), jupyterhub spawns this server with sudo