Bug 19673 - Always does fsck on power on.
Always does fsck on power on.
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-10-24 04:29 EDT by Alan McIvor
Modified: 2014-03-16 22:16 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-24 17:29:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Alan McIvor 2000-10-24 04:29:31 EDT
This problem occurs on a system that was upgraded from RH6.1 to RH7.0,
followed by the installation of mount-2.10m-6.i386.rpm:

On every boot after power on, the initscripts report that / was not
umounted cleanly
and then performs a fsck on /
Comment 1 Bernhard Rosenkraenzer 2000-10-24 04:34:22 EDT
I can't reproduce this.
Do you shutdown the machine properly (using the shutdown -h, shutdown -r, reboot, halt or poweroff commands)?
This is supposed to happen if you just turn off the machine or something like that.

If you're shutting down the system properly, do you see any error messages at shutdown time (e.g. "cannot umount /: filesystem busy")?
Comment 2 Alan McIvor 2000-10-24 04:57:50 EDT
This is happening on a machine that is being shutdown by selecting shutdown from
the
gdm menu after logging out.
Comment 3 Bernhard Rosenkraenzer 2000-10-24 05:03:05 EDT
Does it happen when you shutdown from the console using one of the commands I've mentioned? If so, do you see any errors while shutting down?
Comment 4 Alan McIvor 2000-10-25 05:13:37 EDT
The problem still occurs if I shutdown the machine using 'shutdown -h now' from
a console
window.

At first I had two failure messages appearing (xinetd failed to shutdown, and
something about failing to save the mixer settings) - these related to problems
during the boot sequence which I have now fixed. There are now no error messages
during shutdown that appear on the console window, nor
in any system log. There are no problems reported at system start-up, except for
the unclean umount of / and it doing a fsck.

I tried putting a label on the / partition and changed /etc/fstab to be the same
as that on our other
RH7.0 machines (all installs, not upgrades) but the problem has not gone away.
Comment 5 Alan McIvor 2000-10-26 04:51:12 EDT
I added some sleeps into /etc/rc.d/init.d/halt so as to be sure that I saw all
of the messages on the console before the system powered down. But in doing so,
the problem has gone away. I have yet to check if the problem returns if I
remove the sleeps!

Interestingly, I have also found that the problem does not happen on a reboot.
Comment 6 Bernhard Rosenkraenzer 2000-11-02 08:19:57 EST
I don't see this problem anywhere - did it reappear for you when you removed the sleeps?
Comment 7 Alan McIvor 2000-11-05 03:12:40 EST
The problem reappears if I remove the sleeps.

The only sleep I need in the system to prevent the problem is a sleep in between
determining
HALTARGS and executing the halt, eg

HALTARGS="-i -d"
if [ -f /poweroff -o ! -f /halt ]; then
 HALTARGS="$HALTARGS -p"
fi

sleep 10

eval $command $HALTARGS
Comment 8 Bernhard Rosenkraenzer 2000-11-05 04:15:51 EST
I don't think this can have anything to do with it - the shell isn't threaded, so it can't execute a command before executing a command that came before it.
If you add a sleep after the line saying
   runcmd "Sending all processes the KILL signal..." /sbin/killall5 -9

and remove yours, does that fix the problem?
Comment 9 Alan McIvor 2000-11-06 04:08:40 EST
I put "sleep 10" where you suggested and removed mine. The problem came back.

If I put the "sleep 10" after the line 
	runcmd "Unmounting proc file system: " umount /proc
then it is okay.

Also, I don't understand your comment about threading. What I had does not
require it.

Comment 10 Bernhard Rosenkraenzer 2001-03-06 10:13:15 EST
Assigning to initscripts (where a sleep could be added). Still can't reproduce 
this though.
Comment 11 Bill Nottingham 2001-03-06 11:52:58 EST
This is the only report I've seen of this; I've tested this here
and I can't reproduce this.
Comment 12 Alan McIvor 2001-03-06 14:40:28 EST
The machine that this problem occured on was stolen recently. So obviously
I can no longer test any patches, etc. It doesn't occur with any of the
other machines I have.
Comment 13 Need Real Name 2001-04-02 11:57:56 EDT
After installing both Redhat 7.0 and 7.1 I get this same exact problem. The disk is never cleanly umounted during shutdown, although when I restart fsck does not have to fix anything on the disk.
Comment 14 Bill Nottingham 2003-01-24 17:29:25 EST
As before, we've never seen this in testing here. Closing as WORKSFORME/US.

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