From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: Oracle RAC in libvirt+KVM environment Date: Tue, 20 Aug 2013 10:33:23 +0200 Message-ID: <521329D3.8030907@redhat.com> References: <5203A558.5000301@terremark.com> <20130812095304.GE29880@stefanha-thinkpad.redhat.com> <20130813091859.GA25429@stefanha-thinkpad.redhat.com> <20130814140232.GC28039@stefanha-thinkpad.redhat.com> <5211FD0D.5040409@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Stefan Hajnoczi , Don Koch , libvirt-users , kvm@vger.kernel.org To: Timon Wang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:62102 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751761Ab3HTIeH (ORCPT ); Tue, 20 Aug 2013 04:34:07 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Il 20/08/2013 08:00, Timon Wang ha scritto: > > > > > >
> > > > > > > >
> > I'm not sure this will be enough, but if you want passthrough to the host device you should use device='lun' here. However, you still would not be able to issue SCSI reservations unless you run QEMU with the CAP_SYS_RAWIO capability (using ""). Most important, it still would be unsafe to do this if the same device is passed to multiple virtual machines on the same host. You need to have NPIV and create separate virtual HBAs. Then each virtual machine should get a separate virtual HBA. Otherwise, persistent reservations are not attached to a particular virtual machine, but generically to the host. > > > You are not exposing a virtio-scsi disk here. You are exposing a virtio-blk disk. You can see this from the type='pci' address that libvirt gave to the disk. If you use bus='scsi', you will see that libvirt will use type='drive' for the address. > >
function='0x0'/> > This is okay. > > > FWIW, this can be replaced with (you already have the element, but no element inside). Paolo > > > > > On 8/19/13, Paolo Bonzini wrote: >> Il 15/08/2013 12:01, Timon Wang ha scritto: >>> Thanks. >>> >>> I have read the link you provide, there is another link which tells me >>> to pass a NPIV discovery lun as a disk, this is seen as a local direct >>> access disk in windows. RAC and Failure Cluster both consider this >>> pass through disk as local disk, not a share disk, and the setup >>> process failed. >>> >>> Hyper-v provides a virtual Fiber Channel implementation, so I >>> wondering if kvm has the same solution like it. >> >> Can you include the XML file you are using for the domain? >> >> Paolo >> >> > >