All of lore.kernel.org
 help / color / mirror / Atom feed
* boot failure after kernel update, imap claims in-use inode 661690 is free, would correct imap
@ 2017-03-15  6:53 Chris Murphy
  2017-03-15  7:23 ` Darrick J. Wong
  2017-03-15 18:42 ` Eric Sandeen
  0 siblings, 2 replies; 16+ messages in thread
From: Chris Murphy @ 2017-03-15  6:53 UTC (permalink / raw)
  To: xfs list

Hi,

A user reports a curious OS update bug with Fedora 22, 23, 24, and 25,
where after a kernel update, upon reboot there's only a grub> prompt,
no menu.

I've reproduced this using a qemu-kvm VM, with device SATA and unsafe
caching, pointed to an LVM LV. If I do 'dnf update' to update the
kernel, the problem doesn't happen, if I use gnome-software the
problem always happens.

gnome-software leverages PackageKit for downloading and staging, then
reboots to a systemd offline update target to do the update. So it's a
joint effort. The detailed reproduce steps I've come up with are in
comment 39 of the original bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=1227736#c39

The gist of the analysis in that comment is that the modified grub.cfg
is a 0 length file, and that's why GRUB arrives at a grub> prompt
instead of a menu. If I boot from alternate media and run xfs_repair
-n, I get tons of errors - that log is attached to the bug report and
is here

https://bugzilla.redhat.com/attachment.cgi?id=1263176

If all I do is do a normal mount, kernel reports log replay, no
errors, and then I can boot the previously unbootable system just
fine, and xfs_repair -n reports no errors. So it seems like the volume
is left dirty at reboot time following these offline updates, and of
course GRUB doesn't read the XFS log so it has no idea how to recover
and find grub.cfg or any other affected files.

But with the available information I can't tell why the fs is left
dirty at reboot. Using the same configuration, the problem doesn't
happen with ext4 or Btrfs, but it may be normal behavior and what
really needs to be done is teach GRUB how to do log replay.



-- 
Chris Murphy

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-03-24  5:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-15  6:53 boot failure after kernel update, imap claims in-use inode 661690 is free, would correct imap Chris Murphy
2017-03-15  7:23 ` Darrick J. Wong
2017-03-15 18:11   ` Chris Murphy
2017-03-15 18:15     ` Chris Murphy
2017-03-15 19:13     ` Darrick J. Wong
2017-03-15 19:30       ` Darrick J. Wong
2017-03-17  4:07         ` Chris Murphy
2017-03-21 19:47           ` Chris Murphy
2017-03-22  4:34             ` Dave Chinner
2017-03-22  5:16               ` Darrick J. Wong
2017-03-22 15:36               ` Chris Murphy
2017-03-22 22:19                 ` Dave Chinner
2017-03-23  0:15                   ` Chris Murphy
2017-03-23 23:01                     ` Dave Chinner
2017-03-24  5:15                       ` Chris Murphy
2017-03-15 18:42 ` Eric Sandeen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.