Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 147610

Summary: netfs doesn't properly unmount _netdev devices
Product: Red Hat Enterprise Linux 3 Reporter: AJ Lewis <157070.alewis>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: high Docs Contact:
Priority: medium    
Version: 3.0CC: berthiaume_wayne, bnocera, conway_heather, coughlan, ian, kaufman_susan, rkenna, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2005-124 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-18 15:36:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 132991, 137160, 144781    
Attachments:
Description Flags
Fix where netfs looks for _netdev info none

Description AJ Lewis 2005-02-09 19:53:20 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0

Description of problem:
'service netfs stop' does not unmount filesystems that have the _netdev option in /etc/fstab.  Calling 'umount -a -O _netdev' (which is in netfs for _netdev devices) manually will unmount said filesystems.  It appears that the problem is in how netfs detects which devices have the _netdev flag.   It currently looks in /proc/mounts, but /proc/mounts does not list the _netdev flag.  _netdev only shows up in /etc/mtab and the 'mount' command output.

Version-Release number of selected component (if applicable):
initscripts-7.31.18.EL-1

How reproducible:
Always

Steps to Reproduce:
1. Add a line to /etc/fstab for a filesystem, and add the _netdev option
/dev/sdd        /mnt    auto    _netdev 0       0

2. mount the filesystem
# mount /mnt
3. run 'service netfs stop'
  

Actual Results:  /dev/sdd is still mounted on /mnt

Expected Results:  /dev/sdd should have been unmounted

Additional info:

_netdev is recommended by the iscsi-initiator-utils README as a method to mount and unmount iscsi devices.  Currently when people use this method, their filesystems do not get unmounted, and the system crashes during the reboot process.  (See bug #144781 for more information)  Even without the crash, this could cause filesystem corruption since it is not cleanly unmounted before the network is shut off.

Comment 1 AJ Lewis 2005-02-09 20:05:50 UTC
Created attachment 110890 [details]
Fix where netfs looks for _netdev info

Change netfs so it looks at /etc/mtab instead of /proc/mounts for the _netdev
flag

Comment 2 Tom Coughlan 2005-02-09 20:26:06 UTC
This is creating serious heartburn for iSCSI users in RHEL 3. Will it be
possible to get the fix in U5?  Thanks.

Comment 3 Bill Nottingham 2005-02-09 20:49:22 UTC
Fixed in 7.31.22.EL-1/7.93.13.EL-1.

Comment 4 Bill Nottingham 2005-02-15 17:44:59 UTC
*** Bug 148764 has been marked as a duplicate of this bug. ***

Comment 5 Jay Turner 2005-04-16 10:35:34 UTC
U1 fix confirmed in 7.93.13.EL-1, U5 fix confirmed in 7.31.22.EL-1.  Moving to
PROD_READY.

Comment 6 Tim Powers 2005-05-18 15:36:02 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2005-123.html