All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Ofsthun <sofsthun@virtualiron.com>
To: James Harper <james.harper@bendigoit.com.au>
Cc: jamesshirley <james.shirley@westernpower.com.au>,
	xen-devel@lists.xensource.com,
	Mark Williamson <mark.williamson@cl.cam.ac.uk>
Subject: Re: Release 0.8.4 of GPL PV Drivers for Windows
Date: Thu, 28 Feb 2008 11:57:20 -0500	[thread overview]
Message-ID: <47C6E7F0.6020609@virtualiron.com> (raw)
In-Reply-To: <AEC6C66638C05B468B556EA548C1A77D0131AEC7@trantor>

James Harper wrote:
>>> You will almost certainly get some fatal corruption before too long
> if
>>> this is happening. It shouldn't happen obviously...
>> Side note: on an important VM, if you find yourself in this situation
> (two
>> drives pointing at the same underlying data) and don't want to lose
> data,
>> it's best to stop it as soon as possible.  Probably an xm destroy is
>> better
>> than a clean shutdown in this case!
> 
> Yes, this is something that really can't be understated. Even on a
> system I have booted, checked in device manager, found the duplicates,
> and done an 'xm destroy', it has already been too late - the system
> would no longer boot. A chkdsk from the recovery console fixed it up
> again, but who knows what else was corrupt.

I couldn't agree more.  You can never caution people enough when testing
new code anywhere in the storage stack.

> Other PV drivers appear to be able to tell windows that one drive is
> just another path to the other. I'm not sure how to tell windows this
> though. My preference is to hide the qemu device, but this doesn't
> appear to work under all circumstances and the multipath thing would
> prevent data corruption...

We (Virtual Iron) don't actually rely on any multipath detection in
Windows guests (or for that matter, Linux guests, which can have similar
problems).  We implement a device hiding mechanism (probe limits) in
dom0/qemu-dm to prevent the ide devices used by the guest BIOS during
bootstrap from responding to ide identify probes by the booting guest
operating system.  This has the benefit of working without any necessary
cooperation in the guest operating system.  The failure mode is a failed
boot, not a destroyed disk image.  Unfortunately, this probe limit
change is currently dependent on other dom0 control stack changes we
use.   If there is interest, we could look into breaking out a
standalone patch.  The changes to qemu are minimal.  Essentially, the
ide devices allow 1 probe each for the BIOS bootstrap and remain silent
after that.  No data path changes were required.

> Anyone have any suggestions?

The first issue with multipath is getting Windows to think that the disk
devices are identical.  Since the qemu device is ide and your PV device
is scsi, there is no real world example to guide you.  You could look at
the way Windows constructs it's disk identifier for ide drives and
attempt to generate an identical string in your driver.  If you used a
scsi device in qemu, you should only need to return identical target
identification strings for the same disk.

Steve

  reply	other threads:[~2008-02-28 16:57 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-27  0:10 Release 0.8.4 of GPL PV Drivers for Windows James Harper
2008-02-27  8:33 ` jamesshirley
2008-02-27 16:23   ` Pasi Kärkkäinen
2008-02-27 22:17   ` James Harper
2008-02-27 22:38     ` Mark Williamson
2008-02-27 22:43       ` James Harper
2008-02-28 16:57         ` Steve Ofsthun [this message]
2008-02-28  0:35     ` jamesshirley
2008-02-28  1:00       ` jamesshirley
2008-03-05  2:18         ` James Harper
2008-03-05  2:14       ` James Harper
2008-03-04  0:11     ` jamesshirley
2008-03-05  2:22       ` James Harper
2008-03-09  3:37   ` zen
2008-02-27 13:26 ` Age_M
2008-02-27 13:43   ` Stephan Seitz
2008-02-27 14:49     ` Age_M
2008-02-27 22:23     ` [Xen-users] " James Harper
2008-02-27 21:13 ` Holger Miefert
2008-02-27 22:47   ` James Harper
2008-02-28  6:39     ` Holger Miefert
2008-02-28  6:42       ` James Harper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47C6E7F0.6020609@virtualiron.com \
    --to=sofsthun@virtualiron.com \
    --cc=james.harper@bendigoit.com.au \
    --cc=james.shirley@westernpower.com.au \
    --cc=mark.williamson@cl.cam.ac.uk \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.