Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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.
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
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.
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.
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
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