Bug 767818 - cifs only network mounts causes pause in shutdown
Summary: cifs only network mounts causes pause in shutdown
Keywords:
Status: CLOSED DUPLICATE of bug 1214466
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 22
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 753131 (view as bug list)
Depends On: 760018
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-14 22:56 UTC by Bill Nottingham
Modified: 2015-06-29 11:02 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 760018
Environment:
Last Closed: 2015-06-29 11:02:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bill Nottingham 2011-12-14 22:56:11 UTC
+++ This bug was initially created as a clone of Bug #760018 +++

Description of problem:

If using a wifi connection and having cifs network mounts, the machine hangs for a while during shutdown. If mounts are first removed before shutdown, or machine uses a wired connection, this does not occur.

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

9.34-2

How reproducible:

Always, at least on fedora 15 & 16. Should also manifest itself on rhel 6, but cannot confirm or deny at this time.

Steps to Reproduce:
1. Mount a network share with cifs (do not also have nfs or smbfs shares mounted, as the issue won't occur).
2. Shutdown machine (e.g: using poweroff command)
  
Actual results:

Machine pauses during shutdown, on fedora this occurs at the "F" logo during shutdown.

Expected results:

Constant shutdown progress.

Additional info:

Can be fixed by altering the section in /etc/init.d/network stop) section that looks like this:

NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then

to be this:

NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$CIFSMTAB" -o -n "$NCPMTAB" ] ; then

--- Additional comment from pm-rhel on 2011-12-05 04:02:59 EST ---

Since this issue was entered in bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

--- Additional comment from siology.io on 2011-12-05 17:24:49 EST ---

the fix on the end of the previous comment may have been erroneous, or at least it dosen't consistently work. The issue is real enough though, if "umount <mount>" or "service netfs stop" is first issued the shutdown completes just fine. 

the netfs and network init scripts are 75 and 90 respectively, but it seems like its not unmounting correctly before taking the network down. Possibly it needs time to complete the unmount first which it isn't getting.

--- Additional comment from notting on 2011-12-14 17:55:33 EST ---

The CIFS problem in RHEL should be fixed with a backport of:
http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=3031ac68e251d5090c3e021fb387a9ba0c8f343d

In regards to what you're seeing in Fedora, I suspect it's more related to systemd, which is only in Fedora at the time.

Comment 1 Bill Nottingham 2011-12-14 22:56:58 UTC
If you add:

# Should-Stop: $network

to the LSB section of /etc/init.d/netfs, does it fix it for you?

Comment 2 Bill Nottingham 2011-12-14 23:01:28 UTC
Make that 'Should-Start'.

Comment 3 Bill Nottingham 2011-12-15 19:01:28 UTC
*** Bug 753131 has been marked as a duplicate of this bug. ***

Comment 4 Fedora End Of Life 2013-01-16 16:08:14 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Fedora End Of Life 2013-02-13 19:32:05 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 6 Helio Chissini de Castro 2015-06-27 21:41:47 UTC
Still happening on Fedora 22.

fstab entry:
//192.168.1.8/public  /media/public  cifs username=admin

NetworkManager goes off before system try to umount then, making a slow shutdown due long retries.

Comment 7 Jan Synacek 2015-06-29 11:02:33 UTC

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


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