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 12:16:10 +0200 Message-ID: <521341EA.4010404@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> <521329D3.8 030907@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]:9405 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750899Ab3HTKQy (ORCPT ); Tue, 20 Aug 2013 06:16:54 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Il 20/08/2013 11:59, Timon Wang ha scritto: > On Tue, Aug 20, 2013 at 4:33 PM, Paolo Bonzini wrote: >> 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 ""). >> > > After change the libvirt xml like this: > > > > > >
> > I got these errors: > char device redirected to /dev/pts/1 (label charserial0) > qemu-system-x86_64: -device > scsi-block,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0: > scsi-block: INQUIRY failed > qemu-system-x86_64: -device > scsi-block,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0: > Device 'scsi-block' could not be initialized Can you do # ls -l /dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk # sg_inq /dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk ? Paolo