[Bug 672855] New: systemd does not mount NFS /home
https://bugzilla.novell.com/show_bug.cgi?id=672855 https://bugzilla.novell.com/show_bug.cgi?id=672855#c0 Summary: systemd does not mount NFS /home Classification: openSUSE Product: openSUSE 11.4 Version: RC 1 Platform: x86-64 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jengelh@medozas.de QAContact: qa@suse.de Found By: Beta-Customer Blocker: --- I have an /etc/fstab entry: 10.10.1.1:/home /home nfs4 defaults 0 0 Now systemd tries to mount /home seemingly before starting the NFS client services and thus timing out. $ systemctl show home.mount --no-pager Id=home.mount Names=home.mount Requires=-.mount WantedBy=remote-fs.target Conflicts=umount.target Before=remote-fs.target quotacheck.service umount.target After=-.mount Description=/home LoadState=loaded ActiveState=failed SubState=failed InactiveExitTimestamp=Thu, 17 Feb 2011 01:43:06 +0100 ActiveEnterTimestamp=Thu, 17 Feb 2011 01:44:06 +0100 ActiveExitTimestamp=Thu, 17 Feb 2011 01:44:06 +0100 InactiveEnterTimestamp=Thu, 17 Feb 2011 01:44:06 +0100 CanStart=yes CanStop=yes CanReload=yes CanIsolate=no StopWhenUnneeded=no RefuseManualStart=no RefuseManualStop=no AllowIsolate=no DefaultDependencies=yes DefaultControlGroup=name=systemd:/system/home.mount ControlGroup=cpu:/system/home.mount name=systemd:/system/home.mount NeedDaemonReload=no JobTimeoutUSec=0 Where=/home What=10.10.1.1:/home Options=defaults Type=nfs4 TimeoutUSec=1min ExecMount={ path=/bin/mount ; argv[]=/bin/mount /home ; ignore=no ; start_time=[n/a] ; stop_time=[Thu, 17 Feb 2011 01:44:06 +0100] ; pid=279 ; code=killed ; status=15/TERM } UMask=0002 LimitCPU=18446744073709551615 LimitFSIZE=18446744073709551615 LimitDATA=18446744073709551615 LimitSTACK=18446744073709551615 LimitCORE=18446744073709551615 LimitRSS=18446744073709551615 LimitNOFILE=1024 LimitAS=18446744073709551615 LimitNPROC=16005 LimitMEMLOCK=65536 LimitLOCKS=18446744073709551615 LimitSIGPENDING=16005 LimitMSGQUEUE=819200 LimitNICE=0 LimitRTPRIO=0 LimitRTTIME=18446744073709551615 OOMScoreAdjust=0 Nice=0 IOScheduling=0 CPUSchedulingPolicy=0 CPUSchedulingPriority=0 TimerSlackNSec=50000 CPUSchedulingResetOnFork=no NonBlocking=no StandardInput=null StandardOutput=inherit StandardError=inherit SyslogPriority=30 SyslogLevelPrefix=yes SecureBits=0 CapabilityBoundingSetDrop=0 MountFlags=1048576 PrivateTmp=no SameProcessGroup=yes KillMode=control-group KillSignal=15 ControlPID=0 DirectoryMode=0755 $ systemctl show --no-pager network-remotefs.service Id=network-remotefs.service Names=network-remotefs.service Requires=basic.target WantedBy=multi-user.target graphical.target Conflicts=shutdown.target Before=ntp.service shutdown.target single.service multi-user.target graphical.target After=network.target remote-fs.target basic.target Description=LSB: Configure the remote-fs depending network interfaces LoadState=loaded ActiveState=active SubState=exited InactiveExitTimestamp=Thu, 17 Feb 2011 01:44:06 +0100 ActiveEnterTimestamp=Thu, 17 Feb 2011 01:44:06 +0100 CanStart=yes CanStop=yes CanReload=yes CanIsolate=no StopWhenUnneeded=no RefuseManualStart=no RefuseManualStop=no AllowIsolate=no DefaultDependencies=yes DefaultControlGroup=name=systemd:/system/network-remotefs.service ControlGroup=cpu:/system/network-remotefs.service name=systemd:/system/network-remotefs.service NeedDaemonReload=no JobTimeoutUSec=0 Type=forking Restart=no NotifyAccess=none RestartUSec=100ms TimeoutUSec=3min ExecStart={ path=/etc/init.d/network-remotefs ; argv[]=/etc/init.d/network-remotefs start ; ignore=no ; start_time=[n/a] ; stop_time=[Thu, 17 Feb 2011 01:44:06 +0100] ; pid=1377 ; code=exited ; status=0 } ExecReload={ path=/etc/init.d/network-remotefs ; argv[]=/etc/init.d/network-remotefs reload ; ignore=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/ } ExecStop={ path=/etc/init.d/network-remotefs ; argv[]=/etc/init.d/network-remotefs stop ; ignore=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/ } UMask=0002 LimitCPU=18446744073709551615 LimitFSIZE=18446744073709551615 LimitDATA=18446744073709551615 LimitSTACK=18446744073709551615 LimitCORE=18446744073709551615 LimitRSS=18446744073709551615 LimitNOFILE=1024 LimitAS=18446744073709551615 LimitNPROC=16005 LimitMEMLOCK=65536 LimitLOCKS=18446744073709551615 LimitSIGPENDING=16005 LimitMSGQUEUE=819200 LimitNICE=0 LimitRTPRIO=0 LimitRTTIME=18446744073709551615 OOMScoreAdjust=0 Nice=0 IOScheduling=0 CPUSchedulingPolicy=0 CPUSchedulingPriority=0 TimerSlackNSec=50000 CPUSchedulingResetOnFork=no NonBlocking=no StandardInput=null StandardOutput=tty StandardError=inherit SyslogPriority=30 SyslogLevelPrefix=yes SecureBits=0 CapabilityBoundingSetDrop=0 MountFlags=1048576 PrivateTmp=no SameProcessGroup=no KillMode=process-group KillSignal=15 PermissionsStartOnly=no RootDirectoryStartOnly=no RemainAfterExit=yes ExecMainPID=0 ExecMainCode=0 ExecMainStatus=0 MainPID=0 ControlPID=0 SysVPath=/etc/init.d/network-remotefs SysVRunLevels=35 SysVStartPriority=7 FsckPassNo=0 $ systemctl show --no-pager nfs.service Id=nfs.service Names=nfs.service Requires=basic.target WantedBy=multi-user.target graphical.target Conflicts=shutdown.target Before=shutdown.target single.service multi-user.target graphical.target After=network.target rpcbind.target basic.target Description=LSB: NFS client services LoadState=loaded ActiveState=failed SubState=failed InactiveExitTimestamp=Thu, 17 Feb 2011 01:43:12 +0100 InactiveEnterTimestamp=Thu, 17 Feb 2011 01:44:06 +0100 CanStart=yes CanStop=yes CanReload=yes CanIsolate=no StopWhenUnneeded=no RefuseManualStart=no RefuseManualStop=no AllowIsolate=no DefaultDependencies=yes DefaultControlGroup=name=systemd:/system/nfs.service ControlGroup=cpu:/system/nfs.service name=systemd:/system/nfs.service NeedDaemonReload=no JobTimeoutUSec=0 Type=forking Restart=no NotifyAccess=none RestartUSec=100ms TimeoutUSec=3min ExecStart={ path=/etc/init.d/nfs ; argv[]=/etc/init.d/nfs start ; ignore=no ; start_time=[n/a] ; stop_time=[Thu, 17 Feb 2011 01:44:06 +0100] ; pid=1319 ; code=exited ; status=1 } ExecReload={ path=/etc/init.d/nfs ; argv[]=/etc/init.d/nfs reload ; ignore=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/ } ExecStop={ path=/etc/init.d/nfs ; argv[]=/etc/init.d/nfs stop ; ignore=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/ } UMask=0002 LimitCPU=18446744073709551615 LimitFSIZE=18446744073709551615 LimitDATA=18446744073709551615 LimitSTACK=18446744073709551615 LimitCORE=18446744073709551615 LimitRSS=18446744073709551615 LimitNOFILE=1024 LimitAS=18446744073709551615 LimitNPROC=16005 LimitMEMLOCK=65536 LimitLOCKS=18446744073709551615 LimitSIGPENDING=16005 LimitMSGQUEUE=819200 LimitNICE=0 LimitRTPRIO=0 LimitRTTIME=18446744073709551615 OOMScoreAdjust=0 Nice=0 IOScheduling=0 CPUSchedulingPolicy=0 CPUSchedulingPriority=0 TimerSlackNSec=50000 CPUSchedulingResetOnFork=no NonBlocking=no StandardInput=null StandardOutput=tty StandardError=inherit SyslogPriority=30 SyslogLevelPrefix=yes SecureBits=0 CapabilityBoundingSetDrop=0 MountFlags=1048576 PrivateTmp=no SameProcessGroup=no KillMode=process-group KillSignal=15 PermissionsStartOnly=no RootDirectoryStartOnly=no RemainAfterExit=yes ExecMainPID=0 ExecMainCode=0 ExecMainStatus=0 MainPID=0 ControlPID=0 SysVPath=/etc/init.d/nfs SysVRunLevels=35 SysVStartPriority=5 FsckPassNo=0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=672855 https://bugzilla.novell.com/show_bug.cgi?id=672855#c wei wang <wewang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wewang@novell.com AssignedTo|bnc-team-screening@forge.pr |kasievers@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=672855 https://bugzilla.novell.com/show_bug.cgi?id=672855#c1 --- Comment #1 from Kay Sievers <kasievers@novell.com> 2011-02-17 17:34:57 UTC --- Yeah, there is some logic missing to sort the netdev mounts later. You *might* have luck, with adding: comment=systemd.automount to the fstab entry, which delays the mounting until the first access of /home, which should late enough. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=672855 https://bugzilla.novell.com/show_bug.cgi?id=672855#c2 --- Comment #2 from Jan Engelhardt <jengelh@medozas.de> 2011-02-17 23:46:08 UTC --- Happens to work for me, though it does smell like a hack, esp. since /home(nfs4) gets mounted before the first non-root user logs in, and so, it might be too early in theory still :-/ [Or there is some process that walks into /home, but I wonder what would cause that.] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=672855 https://bugzilla.novell.com/show_bug.cgi?id=672855#c3 --- Comment #3 from Kay Sievers <kasievers@novell.com> 2011-02-18 10:22:08 UTC --- Sure, sure, it's not the proper fix, just a workaround. We'll get there. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=672855 https://bugzilla.novell.com/show_bug.cgi?id=672855#c4 --- Comment #4 from Kay Sievers <kasievers@novell.com> 2011-02-21 12:55:38 UTC --- This should fix it: http://cgit.freedesktop.org/systemd/commit/?id=50483512b901aa216bc12bbe12dc9... before the fix: After=systemd-logger.socket -.mount after the fix: After=systemd-logger.socket network.target -.mount -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=672855 https://bugzilla.novell.com/show_bug.cgi?id=672855#c5 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Kay Sievers <kasievers@novell.com> 2011-02-21 18:50:10 UTC --- It's in Base:System, hopefully fixes the issue. Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=672855 https://bugzilla.novell.com/show_bug.cgi?id=672855#c6 --- Comment #6 from Jan Engelhardt <jengelh@medozas.de> 2011-02-24 16:22:51 UTC --- It is fixed, but there still is a Starting LSB: NFS client services failed, see 'systemctl status nfs.service' for details. Loaded: loaded (/etc/init.d/nfs) Active: failed since Thu, 24 Feb 2011 14:46:29 +0100; 2h 35min ago Process: 1910 ExecStart=/etc/init.d/nfs start (code=exited, status=3/NOTIMPLEMENTED) CGroup: name=systemd:/system/nfs.service Is there a stdout log of the execution of /etc/init.d/nfs? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=672855 https://bugzilla.novell.com/show_bug.cgi?id=672855#c7 Jan Engelhardt <jengelh@medozas.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Target Milestone|--- |Factory --- Comment #7 from Jan Engelhardt <jengelh@medozas.de> 2011-03-10 21:06:35 UTC --- Mounting nfses from fstab looks fixed in systemd-20, thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com