mountall not detecting terminated fsck?

Bug #446678 reported by Gabriel de Perthuis
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mountall (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: mountall

My non grub2-migrated grub config contains this:
 kopt=root=/dev/mapper/lvm-whatever ro

mountall --debug appears to wait for / to be mounted, when it already is, except read-only. Once it is remounted rw, or the grub command is changed, mountall doesn't block anymore.

This is with mountall 0.2.0~boot3 .

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This is referring to a mountall package from the ubuntu-boot PPA not the archive

Changed in mountall (Ubuntu):
status: New → Invalid
Revision history for this message
Gabriel de Perthuis (g2p) wrote :

Is there a more convenient place to report mountall bugs?

This version now got released to karmic with no changes, and the bug is still present.

Changed in mountall (Ubuntu):
status: Invalid → New
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: mountall fails to finish

Please provide the --debug log output from the version in the archive

Changed in mountall (Ubuntu):
status: New → Incomplete
summary: - mountall fails when kernel command line contains ro
+ mountall fails
summary: - mountall fails
+ mountall fails to boot
summary: - mountall fails to boot
+ mountall fails to finish
Revision history for this message
Gabriel de Perthuis (g2p) wrote :

Attached, with the two variations of boot options.

Revision history for this message
Gabriel de Perthuis (g2p) wrote :
Revision history for this message
Gabriel de Perthuis (g2p) wrote :

LANG= apt-cache policy mountall
mountall:
  Installed: 0.2.1
  Candidate: 0.2.1
  Version table:
 *** 0.2.1 0
        500 ftp://ftp.free.fr karmic/main Packages
        100 /var/lib/dpkg/status
     0.2.0~boot5 0
        500 http://ppa.launchpad.net karmic/main Packages

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This looks like it's simply checking your disks, otherwise your log is incomplete. Let it run on longer

Revision history for this message
Gabriel de Perthuis (g2p) wrote :

I've just let it run a few hours, and nothing further happens. The system is idling anyway, the tips at http://upstart.ubuntu.com/wiki/OMGBroken get me a console, where pstree and top show nothing else happening, no filesystem checks.

The significant part of the logs, if you compare them, is that in the ro case mountall is waiting for /dev/mapper/raid-rootfs to get mounted on /, when it already is, albeit without the expected rw option.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 446678] Re: mountall fails to finish

On Tue, 2009-10-13 at 10:15 +0000, Gabriel de Perthuis wrote:

> I've just let it run a few hours, and nothing further happens. The
> system is idling anyway, the tips at
> http://upstart.ubuntu.com/wiki/OMGBroken get me a console, where pstree
> and top show nothing else happening, no filesystem checks.
>
> The significant part of the logs, if you compare them, is that in the ro
> case mountall is waiting for /dev/mapper/raid-rootfs to get mounted on
> /, when it already is, albeit without the expected rw option.
>
Could you try 0.2.2 and see what that does?

If that doesn't work, get that shell, stop the running mountall (if
there is one), and then attach "mountall --debug" output (you can run it
from that shell again)

Scott
--
Scott James Remnant
<email address hidden>

Changed in mountall (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Gabriel de Perthuis (g2p) wrote : Re: mountall fails to finish

Same with 2.2, here's one more log.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 446678] Re: mountall fails to finish

On Tue, 2009-10-13 at 17:34 +0000, Gabriel de Perthuis wrote:

> Same with 2.2, here's one more log.
>
> ** Attachment added: "mountall 2.2, restarted, ro /"
> http://launchpadlibrarian.net/33600910/mountall.debug.2.2.restarted-ro
>
Thanks, that's the end of the log?

If you don't pipe to a file, is the "fsck clean" line the last you see?

If you could follow the instructions on
http://upstart.ubuntu.com/wiki/OMGBroken to get a root shell alongside,
when it's "hung" like this, could you run "ps ax" to get the process
list.

Thanks,

Scott
--
Scott James Remnant
<email address hidden>

Revision history for this message
Gabriel de Perthuis (g2p) wrote : Re: mountall fails to finish

Yes, it's the last thing I see. ps ax output is attached.

init-+-bash---pstree
     |-mountall
     |-sulogin
     |-udevd---2*[udevd]
     `-upstart-udev-br

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

That's all that's running?

This looks like the SIGCHLD for the fsck hasn't been received, which is odd.

summary: - mountall fails to finish
+ mountall not detecting terminated fsck?
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

This was caused by not clearing the progress when we actually reap the child; fixed in lucid

Changed in mountall (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.