Bug 389401

Summary: cannot get nfs shares to mount on boot
Product: [Fedora] Fedora Reporter: Mark <nix4me>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: rvokal, trevor
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-07 19:43:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mark 2007-11-18 14:47:49 UTC
adding mount commands to the /etc/fstab do not run and therefore won't mount my
nfs shares on boot.

also

adding mount commands to /etc/rc.d/rc.local do not run and therefore won't mount
nfs shares on boot


How reproducible:
Added these commands to fstab:

192.168.1.102:/mnt/sdc1 /mnt/fileserver	nfs	defaults	0	0
192.168.1.102:/mnt/sdb1 /mnt/fileserver2 nfs	defaults	0	0

added these to rc.local
/bin/mount -t nfs 192.168.1.102:/mnt/sdc1 /mnt/fileserver
/bin/mount -t nfs 192.168.1.102:/mnt/sdb1 /mnt/fileserver2
  
Actual results:
The mounts do not accur during boot with either  of the above methods

Expected results:
nfs shares should be mountable during the boot sequence

Comment 1 Bill Nottingham 2007-11-19 21:41:02 UTC
In what way do they not mount? Is rpcbind and nfslock started?

Comment 2 Mark 2007-11-20 01:19:20 UTC
rpcbind and nfslock are both running.

They don't mount after bootup.  Not sure there are more ways to describe.  They
are either mounted or unmounted.  

Comment 3 Bill Nottingham 2007-11-20 16:31:39 UTC
Does 'mount -a -t nfs' work?

Comment 4 Mark 2007-11-21 01:02:06 UTC
Yes.  Running the mount command from command prompt after bootup works fine. 
Also, if i put the mount commands in the rc.local, i can run the rc.local file
from the command prompt (/etc/rc.d/./rc.local) and it work fine.

So the issue is on bootup only.  Is this perhaps a problem due to me starting
with Fedora 8 RC3 and then upgrading to the final?  Some startup script file out
of wack?

I'm at a loss here.

Comment 5 Bill Nottingham 2007-11-21 15:48:08 UTC
Any SELinux errors in /var/log/audit/audit.log, or dmesg?

Comment 6 Bill Nottingham 2007-11-21 16:08:22 UTC
I've done a test here; adding an entry in fstab seems to work OK - it's mounted
correctly by netfs.

Comment 7 Mark 2007-11-21 23:01:25 UTC
SELinux is off.

Comment 8 Trevor Cordes 2007-11-24 13:31:11 UTC
Explicitly add the options bg,hard,intr to your fstab line.  Hard will force it
to keep retrying until it mounts.  Bg will allow mount to go on while it keeps
trying in the bg.  Not the best fix, but it should allow it to automount the
instant your boot process is done enough to let it.

Check any iptables scripts that might be blocking the ports until the boot is
done.  Also, if you want some fun, migrate to NFSv4 and tcp.

BTW, works fine for me on F8.


Comment 9 Mark 2008-01-02 00:19:17 UTC
Resolved:  see this bug report for resolution.
https://bugzilla.redhat.com/show_bug.cgi?id=427157

Comment 10 Bill Nottingham 2008-01-07 19:43:56 UTC

*** This bug has been marked as a duplicate of 427157 ***