[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#788062: marked as done (os-prober corrupts LVs/partitions while being mounted inside a VM)



Your message dated Fri, 20 Jan 2017 13:04:29 +0000
with message-id <E1cUYrl-000IYw-B3@fasolo.debian.org>
and subject line Bug#648208: fixed in os-prober 1.72
has caused the Debian Bug report #648208,
regarding os-prober corrupts LVs/partitions while being mounted inside a VM
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
648208: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648208
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: os-prober
Version: 1.65
Severity: critical

update-grub on a vhost running qemu/kvm virtual machines
while grub and os-prober is installed on the host might corrupt
guest virtual machines / guest disks.

Host
====

% lvs

  LV         VG            Attr       LSize
  root       vg_foobar_sys -wi-ao----   3.00g
  var_log    vg_foobar_sys -wi-ao---- 500.00m
  vm-luke    vg_foobar_dom -wi-ao----  40.00g

% virsh list --all

 Id    Name                    State
-------------------------------------
 9     luke                  running

% virsh domblklist luke
Target     Source
------------------------------------------------
vda        /dev/vg_foobar_dom/vm-luke

% apt-get upgrade

(linux-image-3.16.0-4-amd64 gets upgraded)
(update-grub is called)

% dmesg

Jun 08 09:31:25 sirius os-prober[7402]: debug: running /usr/lib/os-probes/50mounted-tests on /dev/mapper/vg_foobar_dom-vm--luke Jun 08 09:31:25 sirius kernel: EXT4-fs (dm-3): VFS: Can't find ext4 filesystem Jun 08 09:31:25 sirius kernel: EXT4-fs (dm-3): VFS: Can't find ext4 filesystem Jun 08 09:31:25 sirius kernel: EXT4-fs (dm-3): VFS: Can't find ext4 filesystem Jun 08 09:31:25 sirius kernel: XFS (dm-3): Invalid superblock magic number Jun 08 09:31:25 sirius kernel: FAT-fs (dm-3): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Jun 08 09:31:25 sirius kernel: FAT-fs (dm-3): bogus number of reserved sectors Jun 08 09:31:25 sirius kernel: FAT-fs (dm-3): Can't find a valid FAT filesystem Jun 08 09:31:25 sirius kernel: FAT-fs (dm-3): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Jun 08 09:31:25 sirius kernel: FAT-fs (dm-3): bogus number of reserved sectors Jun 08 09:31:25 sirius kernel: FAT-fs (dm-3): Can't find a valid FAT filesystem Jun 08 09:31:25 sirius kernel: VFS: Can't find a Minix filesystem V1 | V2 | V3 on device dm-3.
Jun 08 09:31:25 sirius kernel: hfsplus: unable to find HFS+ superblock
Jun 08 09:31:25 sirius kernel: qnx4: no qnx4 filesystem (no root dir).
Jun 08 09:31:25 sirius kernel: You didn't specify the type of your ufs filesystem

mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ...

>>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old



Inside guest 'luke'
===================

[1100902.892807] end_request: I/O error, dev vda, sector 10774672
[1100902.893914] Buffer I/O error on device dm-2, logical block 10002
[1100902.894781] lost page write due to I/O error on dm-2
[1100902.895219] end_request: I/O error, dev vda, sector 31670147
[1100902.897132] I/O error in filesystem ("dm-2") meta-data dev dm-2 block 0x1400f83 ("xlog_iodone") error 5 buf count 1024 [1100902.898819] xfs_force_shutdown(dm-2,0x2) called from line 1043 of file /build/linux-2.6-pYQHNk/linux-2.6-2.6.32/debian/build/source_amd64_none/fs/xfs/xfs_log.c. Return address = 0xffffffffa01fcb89 [1100902.898827] Filesystem "dm-2": Log I/O Error Detected. Shutting down filesystem: dm-2 [1100902.899984] Please umount the filesystem, and rectify the problem(s)
[1100934.617120] Filesystem "dm-2": xfs_log_force: error 5 returned.
[1100970.617117] Filesystem "dm-2": xfs_log_force: error 5 returned.
[1101006.616137] Filesystem "dm-2": xfs_log_force: error 5 returned.


It's a bad idea to try to mount every block device found in the system
whilst the devices are being used. This could lead to catastrophic failure
if I/O heavy VMs get their "disks" corrupted this way.

To me this happened only to one out of 18 VMs but all but 'luke' didn't have much
I/O at the time.


Workaround
==========

% apt-get purge os-prober

OR

echo 'GRUB_DISABLE_OS_PROBER=true' >> /etc/default/grub

--- End Message ---
--- Begin Message ---
Source: os-prober
Source-Version: 1.72

We believe that the bug you reported is fixed in the latest version of
os-prober, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 648208@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated os-prober package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 20 Jan 2017 12:44:34 +0000
Source: os-prober
Binary: os-prober-udeb os-prober
Architecture: source
Version: 1.72
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Description:
 os-prober  - utility to detect other OSes on a set of drives
 os-prober-udeb - utility to detect other OSes on a set of drives (udeb)
Closes: 648208 674561 698598 698733 701814 776275 784709 787418 794409 801631 803155
Changes:
 os-prober (1.72) unstable; urgency=medium
 .
   * Improve logging of mounting and setting partitions to ro/rw (thanks, Ivo
     De Decker).
   * Use a read-only device-mapper entry if possible rather than setting the
     underlying device to read-only (thanks, Ivo De Decker; closes: #701814).
     Note that this introduces a dependency on dmsetup on Linux
     architectures.
   * Remove the "blockdev --setro" code path entirely, since the read-only
     device-mapper arrangement supersedes it and should be safer (closes:
     #648208).
   * Make os-prober-udeb depend on grub-mount-udeb on all Linux and kFreeBSD
     architectures, now that it's available on them all (thanks, James
     Cowgill; closes: #776275).
   * Make os-prober depend on grub-common on Linux and kFreeBSD, in order
     that grub-mount is consistently available.
   * Fix detection of /usr/ partition as a GNU/Linux root partition when
     /lib* directories are moved to /usr/ completely (thanks, Hedayat
     Vatankhah; closes: #698733).
   * Make the yaboot parser more tolerant about the syntax of "append"
     options (thanks, Hedayat Vatankhah; closes: #674561).
   * Disable debugging if OS_PROBER_DISABLE_DEBUG is set (thanks, Hedayat
     Vatankhah; closes: #698598).
   * Replace basename/dirname with shell string processing (thanks, Hedayat
     Vatankhah; part of #694668).
   * Call dmraid only once (thanks, Jeff Mahoney).
   * Fix typos in README (thanks, Nyav; closes: #803155).
   * Add os-release support (based loosely on a patch by Török Edwin; closes:
     #794409).
   * Add Devuan detection (thanks, David Hare; closes: #801631).
   * Work harder to avoid trying to mount extended partitions (thanks,
     Philippe Coval; closes: #784709).
   * Drop " (loader)" suffixes on Microsoft operating systems (thanks, Chris
     Lamb; closes: #787418).
Checksums-Sha1:
 8438248e4fbc40749b85e37c16cf433db51b3cff 1816 os-prober_1.72.dsc
 c7b3b51719328b7cf0258561f4ee9c08f9a21d79 26452 os-prober_1.72.tar.xz
Checksums-Sha256:
 f79975ddbd06ed371c3f27a781d423b2d88af6cc04896946f8df03fa42915f70 1816 os-prober_1.72.dsc
 13ed24f78e83f0c49e11635891458f067e6c8348be210adda46629dd3b7b627a 26452 os-prober_1.72.tar.xz
Files:
 90ced5506beca6dc949347ab30f6e174 1816 debian-installer optional os-prober_1.72.dsc
 16ce39ea58a684f102dd7aff1779cbf5 26452 debian-installer optional os-prober_1.72.tar.xz

-----BEGIN PGP SIGNATURE-----
Comment: Colin Watson <cjwatson@debian.org> -- Debian developer

iQIzBAEBCAAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAliCBlMACgkQOTWH2X2G
UAuXBw/+J+SAw+8es7Ca2xByEwor4P28IqkoU5uiBZ2zYo4xs727tAo6CVX0yw7Z
ctRSJhOpKF1/FtiIUNq+6E6ZKKRzqEder4S7fRI92e7FXbW0yn5unUz84EvVrcI1
5V/rhEe3y8IrXEgVWMJoY+Vg5/sQWRMHap7HamC0Zj+9zlGmjZkc01gJRr0hTvw/
ApCUhZncVSlqXb7zgjU74HVX3+YHzJaOsZY4XyhVjmEnWlY8U0pNffCnzuxJDTuY
gMDqC9AQmKyA3bhmzgi5DSh+5r6j2nwvYV9a3+xgJZvu0mv6Ng+UNd3p+uS+7BFU
8KdPy3Cnd0Xv/DkMKYdU5sOoFzsDwXF0sxJtlBpJyMFt9ZAnpRz7oxIS7D76HzYI
msUVsvnBLaldkdTKpn9BlhxGVCH1iIlwN6w3aCW/fBNjuA9VBJyEdzzhCuaAfXZC
fYwryq2gXgeowwdvH6rQcu04C7AHWiXulsl9yV1be8OlbRk8yc+CF08Ma7ABAweI
ToYXEupEfdWEkKyQPaGtgoowUquX6cmYKeKBn5E6N2AVgU+yT10JbWeg6VLzlkKe
p3UD6+iFKjfdKCjM9iy9aoyGjDGCy35lqb824R+nAZsGsJmkEMgRFgTMqYtgCOkU
Jtp0pdbat3CXTQn50nbICF77jOzcFM4p2sO3yVOI0sFOa0mitMY=
=lgmu
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: