public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KVM incompatible with multipath?
@ 2009-06-27 15:57 infernix
  2009-06-27 18:18 ` Anthony Liguori
  0 siblings, 1 reply; 4+ messages in thread
From: infernix @ 2009-06-27 15:57 UTC (permalink / raw)
  To: kvm

Hi,

I've got an Equallogic iSCSI box with 3x1GBit nics on my storage
network. I also have a server with 4 nics of which 3 are connected to
the storage network with 3x1GBit.

On this host, open-iscsi is running and connecting to the SAN over 3 
interfaces. I'm seeing /dev/sdb, sdc and sdd, which are all the same 
harddisk (same WWID).

With multipath I combine them to one disk to get a nice boost in
performance. This works perfectly fine (and very speedy) on the host.
Relevant multipath.conf data:

device {
  vendor "EQLOGIC"
  product "100E-00"
  path_grouping_policy multibus
  getuid_callout "/lib/udev/scsi_id -g -u -s /block/%n"
  features "1 queue_if_no_path"
  path_checker readsector0
  failback immediate
  path_selector "round-robin 0"
  rr_weight uniform
  rr_min_io 128
}

The problem with KVM (version 87) is that KVM cannot make use of the
multipath device in /dev/mapper.

If I boot a debootstrapped Debian Lenny KVM guest and configure it with
-hda /dev/mapper/my-multipathed-iscsi-disk, I cannot mount the root
partition. It'll complain about "Invalid target".

If I use -hda /dev/sdb or sdc or sdd (e.g. any of the multipathed disks,
which again are all the same but just through 3 separate connections),
everything works perfectly fine. Note that the behavior is the same when
using virtio.


I have tried to put LVM on top of the multipath device in the host, and
then run the KVM guest with -hda /dev/volumegroup/logicalvolume-blah but
that leads to serious data corruption. If I mount one of the lvm
partitions on the host, copy data to it, then unmount it and boot the
KVM guest, the data isn't there. If I shutdown the guest and do an
e2fsck on the host, I get lots of missing/unlinked inodes and a lot of
it is moved to /lost+found.


Does anyone have experience with KVM on multipathed disks? I'm really
puzzled here because everything works perfectly fine from the hosts
perspective.

Thanks for any help!

Regards,

infernix


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

end of thread, other threads:[~2009-06-27 23:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-27 15:57 KVM incompatible with multipath? infernix
2009-06-27 18:18 ` Anthony Liguori
2009-06-27 22:42   ` infernix
2009-06-27 23:00     ` infernix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox