Timon Wang
2013-Aug-14 08:40 UTC
Re: [libvirt-users] Oracle RAC in libvirt+KVM environment
Hi all, I found a article about Hyper-V virtual Fiber Channel, I think this will make Failover Cluster work if KVM has the same feature. http://technet.microsoft.com/en-us/library/hh831413.aspx Hyper-V uses NPIV for virtual Fiber Channel, I have read some article about KVM NPIV, but how can I config it with libvirt? Any body can show me some example? On Wed, Aug 14, 2013 at 2:33 PM, Timon Wang <timonwst@gmail.com> wrote:> Thanks, i have tried virtio-scsi and LSI SCSI controller, by using a > local file or a LUN as disk. Both raw and qcow2 disk format are be > verified, but no way to make windows Failover Cluster and Oracle RAC > work correctly. > > Actually, Oracle RAC and Windows Failover Cluster needs "share" > storage like iscsi disk and fc disk to work correctly. > > In iscsi situation, we can use ip network for Failover Cluster "share" > storage, but when we use fc as a high performance solution, we can't > use fc "share" storage direct in VM(Not LUN passthrough). > > As I google the windows Failover Cluster requirements, I found that > this issue may be that windows checks only iscsi and fc drivers, the > type of the disk may be check by the driver type. In KVM situation, we > can't emulate a iscsi/fc disk for VM to use, so we can't setup a > environment like this. > > I'm wondering, if we want't to make sure the applications and service > in the VM to always work, it's there another way to do this in KVM > environment. > > On Tue, Aug 13, 2013 at 5:18 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote: >> On Mon, Aug 12, 2013 at 06:17:51PM +0800, Timon Wang wrote: >>> Yes, SCSI bus likes pass through a shared LUN to the vm, and I am >>> using a shared LUN for 'share' purpose. >>> >>> I found a post that vmware use lsilogic bus for the shared disk, but >>> my qemu/kvm version can't support lsilogic bus. >>> >>> I'm tring to update qemu/kvm version for lsilogic bus support. >> >> Use virtio-scsi. The emulated LSI SCSI controller has known bugs and is >> not actively developed - don't be surprised if you hit issues with it. >> >> The question is still what commands RAC or Failover Clustering use. If >> you find that the software refuses to run, it could be because >> additional work is required to make it work on KVM. >> >> Stefan > > > > -- > Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW > Blog: http://www.nohouse.net-- Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW Blog: http://www.nohouse.net
Stefan Hajnoczi
2013-Aug-14 14:02 UTC
Re: [libvirt-users] Oracle RAC in libvirt+KVM environment
On Wed, Aug 14, 2013 at 04:40:44PM +0800, Timon Wang wrote:> I found a article about Hyper-V virtual Fiber Channel, I think this > will make Failover Cluster work if KVM has the same feature. > http://technet.microsoft.com/en-us/library/hh831413.aspx > > Hyper-V uses NPIV for virtual Fiber Channel, I have read some article > about KVM NPIV, but how can I config it with libvirt? Any body can > show me some example?A web search turns up this: https://docs.fedoraproject.org/en-US/Fedora/18/html/Virtualization_Administration_Guide/sect-Technical_Papers-Identifying_HBAs_in_a_Host_System-Confirming_That_IO_Traffic_is_Going_through_an_NPIV_HBA.html You can use this if the host has a supported Fibre Channel HBA and your image is on a SAN LUN.>From my limited knowledge about this, NPIV itself won't make clusteringpossible. RAC or Failure Cluster probably still require specific SCSI commands in order to work (like persistent reservations) and that's what needs to be investigated in order to figure out a solution. Stefan
Timon Wang
2013-Aug-15 10:01 UTC
Re: [libvirt-users] Oracle RAC in libvirt+KVM environment
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. On Wed, Aug 14, 2013 at 10:02 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:> On Wed, Aug 14, 2013 at 04:40:44PM +0800, Timon Wang wrote: >> I found a article about Hyper-V virtual Fiber Channel, I think this >> will make Failover Cluster work if KVM has the same feature. >> http://technet.microsoft.com/en-us/library/hh831413.aspx >> >> Hyper-V uses NPIV for virtual Fiber Channel, I have read some article >> about KVM NPIV, but how can I config it with libvirt? Any body can >> show me some example? > > A web search turns up this: > > https://docs.fedoraproject.org/en-US/Fedora/18/html/Virtualization_Administration_Guide/sect-Technical_Papers-Identifying_HBAs_in_a_Host_System-Confirming_That_IO_Traffic_is_Going_through_an_NPIV_HBA.html > > You can use this if the host has a supported Fibre Channel HBA and your > image is on a SAN LUN. > > From my limited knowledge about this, NPIV itself won't make clustering > possible. RAC or Failure Cluster probably still require specific SCSI > commands in order to work (like persistent reservations) and that's what > needs to be investigated in order to figure out a solution. > > Stefan-- Focus on: Server Vitualization, Network security,Scanner,NodeJS,JAVA,WWW Blog: http://www.nohouse.net