Bug 197792 - When attempting to mount a filesystem read-only the system hangs.
Summary: When attempting to mount a filesystem read-only the system hangs.
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-fs (Nobody)
Depends on:
Reported: 2015-02-18 17:31 UTC by Mark Redding
Modified: 2015-03-12 05:07 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mark Redding 2015-02-18 17:31:50 UTC
I have a number of machines that have a /usr partition mounted read-only upon startup. In order to apply patches to them I have to remount the partition read-write. After applying patches I then wish to remount read-only. This final step causes the system to become unresponsive.

# mount -o rw -u /usr
# freebsd-update fetch
# freebsd-update install
# mount -o ro -u /usr

My ssh session ceases to respond and I am unable to establish a new ssh session. Breaking out using Ctrl+Z and putting the command into the background does not allow me to use the existing session.

However, remotely, the machine can still be pinged.
Comment 1 Andriy Gapon freebsd_committer 2015-02-19 10:53:17 UTC
Try to obtain to a kernel stack trace of the mount process by using procstat -kk <pid>.