Bug 1320570 - netfs not starting before network
Summary: netfs not starting before network
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: initscripts
Version: 6.7
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: David Kaspar // Dee'Kej
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1356047
TreeView+ depends on / blocked
 
Reported: 2016-03-23 14:12 UTC by Sal Castiglione
Modified: 2016-11-25 13:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-10 09:42:32 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Sal Castiglione 2016-03-23 14:12:18 UTC
Description of problem:

netfs service does not start prior to the network service - so NFS mounts in /etc/fstab do not automatically mount during startup

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. configure NFS share in /etc/fstab
2. mount NFS share manually or do a "mount -a" - confirm share is mounted
3. reboot - confirm share didn't mount at startup

Actual results:
NFS share not mounted after startup

Expected results:
NFS share mounted

Additional info:
- netfs is set to on for run level 3:
  # chkconfig --list netfs
netfs           0:off   1:off   2:off   3:on   4:off   5:off   6:off

- Looks like a bug in the order of which files are being read:
/etc/rc3.d/S10network is being read after /etc/rc3.d/K75netfs, because files are being read alphabetically (as far as I know?).

In theory, K75netfs should come after the network is already started - but it's not because the files are being read alphabetically - perhaps it should be renamed ?

Comment 3 David Kaspar // Dee'Kej 2016-11-10 09:42:32 UTC
Hello,

are you sure you are using RHEL6 with default configuration to reproduce this? Because I see a different configuration for RHEL-6.9-Beta:

[0 root@qeos-221 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.9 Beta (Santiago)

[0 root@qeos-221 ~]# chkconfig --list nfs
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off

[0 root@qeos-221 ~]# chkconfig --list netfs
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off

Also, I see different values for *K* (kill) and *S* (start) scripts [yes, they are evaluated alphabetically for each /etc/rc*.d folder].

Typically, you need to configure the NFS mounting correctly. Right now, I'm sure that automounting in RHEL6 works in case you have the NFS share on the same machine (IOW, RHEL6 mounts one of its folders to a different local folder at the same machine).

I guess the problem for you is that network initialization is not fast enough for NFS to mount network shared folder automatically, but that is not a bug.

There's no reason to wait during boot for network to initialize properly, because network problems could delay the boot-up process significantly.

Please, refer to Red Hat Enterprise Linux Documentation on how to correctly configure NFS mounts:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/ch-nfs.html#s1-nfs-how

You might be especially interested in section 'autofs', which is a typical way to automatically mount network shared folders:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/nfs-autofs.html

I hope this will help.

Best regards,

David


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