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 996785 - umount -a causes root file system to become read-only
Summary: umount -a causes root file system to become read-only
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: util-linux-ng
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Karel Zak
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-13 23:43 UTC by Scott Mikusko
Modified: 2015-08-25 13:05 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-25 13:05:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Scott Mikusko 2013-08-13 23:43:38 UTC
Description of problem: 

When doing an umount -a to umount all non-busy file systems in /etc/fstab, the / file system flips to read-only. Command may not actually unmount the file systems.  mount -n -o remount.rw / will get the file system back to read-write, but mtab won't update and df -k will not show the mounted file systems that /etc/fstab has configured.

The other local disk file systems (/opt, /var, /boot, /usr) are unaffected.


Version-Release number of selected component (if applicable):
RHEL 6.1, mount from util-linux-ng 2.17.2


How reproducible:
Two servers running the same OS, versions, and config show the same problem:
umount -a, / flips to RO, mount -a says the file systems are already mounted, df -k doesn't show the mounted file systems from /etc/ftab apart from the local OS disks.


Steps to Reproduce:
1.  verify /etc/fstab /etc/mtab, df -k to see all mounted file systems
2.  umount -a  ; umounts unused filesystems (NFS mounts, local disk not held up by processes
3.  touch /etc/file, can't / has become read-only

Actual results:
/ read-only


Expected results:

expect / to stay read-write, all the file systems in /etc/fstab should remount with mount -a.  df -k should show all the mounted file systems

Additional info:

Comment 2 RHEL Program Management 2013-10-14 02:44:49 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Karel Zak 2015-08-25 13:05:31 UTC
The "umount -a" works as expected. It's designed for shutdown and remount root fs read-only is expected feature. 

Note that RHEL7 umount provides -R,--recursive option to umount hierarchy of filesystem. It seems better solution than call umount -a.


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