linux shutdown hang with wifi cifs mounts

Posted by Sirex on Super User See other posts from Super User or by Sirex
Published on 2011-11-23T21:48:35Z Indexed on 2011/11/29 9:55 UTC
Read the original article Hit count: 201

Since fedora 15 (and now with 16) it seems that wireless clients take a long while to shutdown when they have network filesystems mounted at shutdown time.

I've pushed out a cifs mount via puppet, and all clients have it, including those on wireless. If say a laptop is on a wired connection it shuts down just fine, but if its on the wifi at the time (and no wired connection) it'll hang at the fedora f logo. I'm not sure if its indefinite or just a really long while, but ill give it a test when i shut this machine down in a second.

Needless to say its pretty annoying, so is there a way of causing the machine to shutdown even if network connectivity has been lost at unmount time, -- or an official way to reorder events so the wireless card is kept up until after the unmount happens during the shut down process (short of writing a custom script for shutdowns which is a bit of a kludge) ?

It does this on multiple machines, and all started doing it when we went from fedora 14 to 15. It was such an obvious issue i'd kind of assumed someone must have reported it or there was an easy fix, but i've not discovered anything yet.

Additional info: I can confirm that manually unmounting the mounts then shutting down (sudo shutdown or the xfce shutdown button) will shutdown just fine, it only hangs if the mounts are still mounted

The puppet config that sets the mount looks like this (now with the _netdev entry that is indeed pushed to clients successfully, but makes no difference):

   file    { "/mnt/share": ensure => directory,}
    mount   { "/mnt/share": 
    atboot => true,
    ensure => mounted,
    remounts => false,
    fstype => cifs,
    device => "//srv/share",
    options => "user,gid=shareusers,uid=${user},file_mode=0700,dir_mode=0700,credentials=/root/.smbcreds,_netdev",
    require => [ File["/mnt/share"], Group["shareusers"] ],
    }
}

© Super User or respective owner

Related posts about linux

Related posts about wireless-networking