RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 760018 - cifs only network mounts causes pause in shutdown
Summary: cifs only network mounts causes pause in shutdown
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: initscripts
Version: 6.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 767818
TreeView+ depends on / blocked
 
Reported: 2011-12-05 08:57 UTC by Rob
Modified: 2012-06-20 13:09 UTC (History)
3 users (show)

Fixed In Version: initscripts-9.03.28-1.el6
Doc Type: Bug Fix
Doc Text:
Previous version could caused hang during shutdown, because it did not check if there are any mounted cifs filesystems. Current version will call netfs stop in that case.
Clone Of:
: 767818 (view as bug list)
Environment:
Last Closed: 2012-06-20 13:09:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0816 0 normal SHIPPED_LIVE initscripts bug fix and enhancement update 2012-06-19 20:34:23 UTC

Description Rob 2011-12-05 08:57:30 UTC
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

Comment 2 Rob 2011-12-05 22:24:49 UTC
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.

Comment 3 Bill Nottingham 2011-12-14 22:55:33 UTC
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 6 Lukáš Nykrýn 2012-03-22 11:13:43 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previous version could caused hang during shutdown, because it did not check if there are any mounted cifs filesystems. Current version will call netfs stop in that case.

Comment 8 errata-xmlrpc 2012-06-20 13:09:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0816.html


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