os-prober interrupts device connection of kvm machines

Bug #797547 reported by Kaspar Schiess
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
os-prober (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: os-prober

The reported version of os-prober uses mount to mount all block devices in our system. Those block devices are connected iSCSI devices that are used by KVM virtual machines as their root partition. The mount will perform a read-write mount shortly to fsck the device, crippling the root partitions this way. This is confirmed by the man page of mount:

              Note that, depending on the filesystem type, state and kernel behavior, the system may still write to the
              device. For example, Ext3 or ext4 will replay its journal if the filesystem is dirty. To prevent this kind
              of write access, you may want to mount ext3 or ext4 filesystem with "ro,noload" mount options or set the
              block device to read-only mode, see command blockdev(8).

Newer versions of the script (I've looked at 1.47) use blockdev --setro to disable this behaviour. However, doing that will also disable writes for the KVM machines. The guest operating system will not recover from this, even after setting blockdev --setrw again.

The proper way to do things would probably be to use the '-o ro,noload' flag for mount, as documented in the man page and as proposed in the earlier version of this bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556739

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: os-prober 1.38
ProcVersionSignature: Ubuntu 2.6.32-26.48-server 2.6.32.24+drm33.11
Uname: Linux 2.6.32-26-server x86_64
Architecture: amd64
Date: Wed Jun 15 09:02:56 2011
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: os-prober

Revision history for this message
Kaspar Schiess (kaspar-schiess) wrote :
Revision history for this message
Mark Schouten (mark-prevented) wrote :

IMHO, os-prober should skip iscsi devices alltogether. It's very uncommon to boot from iscsi (I think at least), and scanning iscsi-disks will mainly break stuff and cause invalid menuentries.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in os-prober (Ubuntu):
status: New → Confirmed
Revision history for this message
Mark Schouten (mark-prevented) wrote :

BTW, this might be duplicate with #922765

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.