Bug 708784 - nfs directories not mounted after boot
Summary: nfs directories not mounted after boot
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 15
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-29 14:32 UTC by Pavol Šimo
Modified: 2011-06-03 18:49 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-06-03 18:49:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
boot.log from the affected system (5.39 KB, text/x-log)
2011-05-29 14:32 UTC, Pavol Šimo
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 703852 0 medium CLOSED NFS mounts not getting mounted automatically during start-up 2021-02-22 00:41:40 UTC

Internal Links: 703852

Description Pavol Šimo 2011-05-29 14:32:43 UTC
Created attachment 501614 [details]
boot.log from the affected system

Description of problem:
My box has root and other filesystems on nfs. Root fs is mounted ok, but the others (notably /home) is not automatically mounted.

$ grep nfs /etc/fstab
nas:/srv/client/doma64_0/root	/		nfs		relatime,rsize=16384,wsize=16384,intr,nolock,nfsvers=3	0 0
nas:/data/home		/home			nfs		relatime,rsize=32768,wsize=32768,intr,nfsvers=3
nas:/data/unsafe	/mnt/unsafe		nfs		relatime,rsize=32768,wsize=32768,intr,nfsvers=3,udp

I have to switch to vt2 to log in as root and issue command
# mount /home
which just works this time (after the system is fully booted)

After this manual step (NOT issued 'mount /mnt/unsafe') the results are:
# systemctl status home.mount
home.mount - /home
	  Loaded: loaded
	  Active: active (mounted) since Sun, 29 May 2011 15:56:31 +0200; 25min ago
	   Where: /home
	    What: nas:/data/home
	 Process: 1049 ExecMount=/bin/mount /home (code=exited, status=32)
	  CGroup: name=systemd:/system/home.mount

# systemctl status unsafe.mount
unsafe.mount - /unsafe
	  Loaded: error
	  Active: inactive (dead)
	   Where: /unsafe
	  CGroup: name=systemd:/system/unsafe.mount

# service sandbox status
sandbox is stopped

# systemctl show home.mount
Id=home.mount
Names=home.mount
Requires=systemd-logger.socket -.mount
RequiredBy=remote-fs.target
Conflicts=umount.target
Before=umount.target remote-fs.target
After=systemd-logger.socket network.target -.mount
Description=/home
LoadState=loaded
ActiveState=active
SubState=mounted
InactiveExitTimestamp=Sun, 29 May 2011 15:56:31 +0200
InactiveExitTimestampMonotonic=34699742
ActiveEnterTimestamp=Sun, 29 May 2011 15:56:31 +0200
ActiveEnterTimestampMonotonic=34699742
ActiveExitTimestampMonotonic=0
InactiveEnterTimestamp=Sun, 29 May 2011 15:56:12 +0200
InactiveEnterTimestampMonotonic=16033189
CanStart=yes
CanStop=yes
CanReload=yes
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=no
OnFailureIsolate=no
IgnoreOnIsolate=yes
DefaultControlGroup=name=systemd:/system/home.mount
ControlGroup=cpu:/system/home.mount name=systemd:/system/home.mount
NeedDaemonReload=no
JobTimeoutUSec=0
ConditionTimestamp=Sun, 29 May 2011 15:56:12 +0200
ConditionTimestampMonotonic=15938186
ConditionResult=yes
Where=/home
What=nas:/data/home
Options=rw,relatime,rw,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.76.5.1,mountvers=3,mountport=46069,mountproto=udp,local_lock=n
Type=nfs
TimeoutUSec=1min 30s
ExecMount={ path=/bin/mount ; argv[]=/bin/mount /home ; ignore=no ; start_time=[n/a] ; stop_time=[Sun, 29 May 2011 15:56:12 +0200] ; pid=1049 ; code=exited ; status=32 }
UMask=0002
LimitCPU=18446744073709551615
LimitFSIZE=18446744073709551615
LimitDATA=18446744073709551615
LimitSTACK=18446744073709551615
LimitCORE=18446744073709551615
LimitRSS=18446744073709551615
LimitNOFILE=1024
LimitAS=18446744073709551615
LimitNPROC=28950
LimitMEMLOCK=65536
LimitLOCKS=18446744073709551615
LimitSIGPENDING=28950
LimitMSGQUEUE=819200
LimitNICE=0
LimitRTPRIO=0
LimitRTTIME=18446744073709551615
OOMScoreAdjust=0
Nice=0
IOScheduling=4
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=kmsg
StandardError=inherit
SyslogPriority=30
SyslogLevelPrefix=yes
SecureBits=0
CapabilityBoundingSet=18446744073709551615
MountFlags=1048576
PrivateTmp=no
SameProcessGroup=yes
KillMode=control-group
KillSignal=15
ControlPID=0
DirectoryMode=0755

# systemctl show unsafe.mount
Id=unsafe.mount
Names=unsafe.mount
Requires=systemd-logger.socket -.mount
Conflicts=umount.target
Before=umount.target
After=systemd-logger.socket -.mount
Description=/unsafe
LoadState=error
ActiveState=inactive
SubState=dead
InactiveExitTimestampMonotonic=0
ActiveEnterTimestampMonotonic=0
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=yes
CanStop=yes
CanReload=yes
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
OnFailureIsolate=no
IgnoreOnIsolate=yes
DefaultControlGroup=name=systemd:/system/unsafe.mount
ControlGroup=cpu:/system/unsafe.mount name=systemd:/system/unsafe.mount
NeedDaemonReload=no
JobTimeoutUSec=0
ConditionTimestampMonotonic=0
ConditionResult=no
Where=/unsafe
TimeoutUSec=1min 30s
UMask=0002
LimitCPU=18446744073709551615
LimitFSIZE=18446744073709551615
LimitDATA=18446744073709551615
LimitSTACK=18446744073709551615
LimitCORE=18446744073709551615
LimitRSS=18446744073709551615
LimitNOFILE=1024
LimitAS=18446744073709551615
LimitNPROC=28950
LimitMEMLOCK=65536
LimitLOCKS=18446744073709551615
LimitSIGPENDING=28950
LimitMSGQUEUE=819200
LimitNICE=0
LimitRTPRIO=0
LimitRTTIME=18446744073709551615
OOMScoreAdjust=0
Nice=0
IOScheduling=4
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=kmsg
StandardError=inherit
SyslogPriority=30
SyslogLevelPrefix=yes
SecureBits=0
CapabilityBoundingSet=18446744073709551615
MountFlags=1048576
PrivateTmp=no
SameProcessGroup=yes
KillMode=control-group
KillSignal=15
ControlPID=0
DirectoryMode=0755

Version-Release number of selected component (if applicable):
up-to-date Fedora 15, system updated from Fedora 14

Steps to Reproduce:
1. reboot

Actual results:
/home and /mnt/unsafe not mounted

Expected results:
all nfs filesystems mounted

Additional info:
not using nfs4 because of different acl model...
not using NetworkManager because the network has to be started from initrd
nameserver is correctly set in /etc/resolv.conf and functioning ok

Comment 1 Harald Hoyer 2011-05-30 08:09:40 UTC
did you enable the "network" service?

Comment 2 Pavol Šimo 2011-05-31 19:13:32 UTC
From the boot.log:
Started LSB: Bring up/down networking.
Starting SYSV: This starts the Linux Auditing System Daemon, which collects security related events in a dedicated audit log. If this daemon is turned off, audit events will be sent to sysl
og....
Starting /home...

From the file /etc/init.d/network:
# Short-Description: Bring up/down networking
# Description: Bring up/down networking

File /etc/rc5.d/S10network exists.


# systemctl status network.service
network.service - LSB: Bring up/down networking
	  Loaded: loaded (/etc/rc.d/init.d/network)
	  Active: active (exited) since Tue, 31 May 2011 21:05:23 +0200; 7min ago
	 Process: 908 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/network.service
# systemctl status network.target
network.target - Network
	  Loaded: loaded (/lib/systemd/system/network.target)
	  Active: active since Tue, 31 May 2011 21:05:23 +0200; 7min ago
# systemctl status remote-fs.service
remote-fs.service
	  Loaded: error
	  Active: inactive (dead)
# systemctl status remote-fs.target
remote-fs.target - Remote File Systems
	  Loaded: loaded (/lib/systemd/system/remote-fs.target)
	  Active: inactive (dead)

Comment 3 Pavol Šimo 2011-05-31 19:20:04 UTC
/etc/systemd/system/default.target -> /lib/systemd/system/runlevel5.target

# chkconfig --list network

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

network         0:off   1:off   2:off   3:off   4:off   5:on    6:off

Comment 4 Harald Hoyer 2011-06-01 09:24:43 UTC
I also found out, that nfs mounts need the "remote_fs.service" which is provided by the "netfs" initscript.

# chkconfig netfs on

Comment 5 Pavol Šimo 2011-06-03 18:49:54 UTC
Yes, this helps, thank you.
But I'm sure it worked before upgrade to F15.


Note You need to log in before you can comment on or make changes to this bug.