Bug 456134

Summary: smbfs / mount.cifs doesn't wait for _netdev ??
Product: [openSUSE] openSUSE 11.0 Reporter: Jon Nelson <jnelson-suse>
Component: SambaAssignee: Forgotten User b5BnQSUi71 <forgotten_b5BnQSUi71>
Status: RESOLVED NORESPONSE QA Contact: The 'Opening Windows to a Wider World' guys <samba-maintainers>
Severity: Normal    
Priority: P5 - None CC: jfrantzius, samba-maintainers
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jon Nelson 2008-12-03 19:02:54 UTC
I have a workstation which requires some CIFS mounts to be present ASAP after booting.

For some reason, I cannot get it to work.
If I log in as soon as I can, and type 'mount -a -tcifs' everything mounts fine, however, /etc/init.d/smbfs is not working correctly somehow.

From /var/log/boot.msg, I see the network setup succeeding and moving on to smbfs.
I modified /etc/init.d/smbfs in the following ways:

1. I added "set -x" near the top
2. I added "-v" to the mount invocation, and removed the redirection into /dev/null

Here is what happens:


parsing options: rw,_netdev,credentials=/path/to/creds

mount.cifs kernel mount options unc=//192.168.2.1\jnelson,ip=192.168.2.1,user=jnelson,pass=XXXXXXXXXXXXXXX,ver=1,rw,_netdev,credential
s=/path/to/creds
mount error 101 = Network is unreachable
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
parsing options: rw,_netdev,credentials=/path/to/creds


The fstab entry looks like this:

//192.168.2.1/jnelson   /home/jnelson   cifs    defaults,credentials=/path/to/creds,_netdev 1 2

I've also tried replacing the trailing "1 2" with "0 0", and with and without the _netdev option.

I'm at my wit's end.
Comment 1 Jon Nelson 2008-12-03 19:05:54 UTC
On a whim, I added a 10 second sleep at the top of smbfs and things worked fine.
I'm also using network manager.

Comment 2 Lars Müller 2008-12-03 20:20:42 UTC
Please be this kind and try the same with the traditional (non NetworkManager) setup.  /etc/sysconfig/network/config:NETWORKMANAGER=no

As an alternative try to set /etc/sysconfig/network/config:NM_ONLINE_TIMEOUT=10
Comment 3 Jon Nelson 2008-12-03 20:37:22 UTC
I tried the alternative first, without luck.
I also tried adding eth0 to MANDATORY_DEVICES, again, no luck.

Trying the traditional (non-NetworkManager) setup, however, seems to work just great.
Comment 4 Jon Nelson 2008-12-04 13:52:21 UTC
So the long and short of it: _netdev ignored if NetworkManager in use, and apparently NM_ONLINE_TIMEOUT too??

Comment 5 Jörg von Frantzius 2009-01-09 17:25:43 UTC
I see similar symptoms, but with openSUSE 11.1 (and only since I installed it, erasing a previous 11.0 install). 

I do have two fstab entries for CIFS filesystems, which do not get mounted. Manually mounting them just by using "mount same_path_as_in_fstab" does work.

My /etc/sysconfig/network/config does say NETWORKMANAGER="no".
Comment 6 Lars Müller 2010-11-09 12:35:14 UTC
11.0 is a discontinued product.  Therefore I'm suggesting to close this issue or to move it to a more recent product if the issue still exists.  Sorry for the long delay.

@Suresh: Does this ring any bells?
Comment 7 Forgotten User b5BnQSUi71 2010-11-10 05:07:18 UTC
Could you check whether smbfs is enabled by default in the runlevel you are using?
  chkconfig --list smbfs

If not, enable, try and report?
  chkconfig smbfs on
Comment 8 Forgotten User b5BnQSUi71 2010-11-15 11:32:34 UTC
Ping!
Comment 9 Forgotten User b5BnQSUi71 2010-11-26 04:31:28 UTC
I'm marking this as RESOLVED with NORESPONSE. But, my gut feel is that the suggestion in Comment#7 would resolve the issue.