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:49:20 +0200 Message-ID: <521349B0.60103@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> <521341EA.4010404@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE 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]:63636 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913Ab3HTKuP (ORCPT ); Tue, 20 Aug 2013 06:50:15 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Il 20/08/2013 12:42, Timon Wang ha scritto: > [root@localhost /]# ls -l /dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk > lrwxrwxrwx. 1 root root 8 8=E6=9C=88 20 17:38 > /dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk -> ../dm-13 > [root@localhost /]# sg_inq /dev/VM-IMAGES-BACKUP-DO-NOT-REMOVE/q_disk > standard INQUIRY: > PQual=3D0 Device_type=3D0 RMB=3D0 version=3D0x05 [SPC-3] > [AERC=3D0] [TrmTsk=3D0] NormACA=3D0 HiSUP=3D0 Resp_data_format=3D= 0 > SCCS=3D1 ACC=3D0 TPGS=3D1 3PC=3D0 Protect=3D0 [BQue=3D0] > EncServ=3D0 MultiP=3D0 [MChngr=3D0] [ACKREQQ=3D0] Addr16=3D0 > [RelAdr=3D0] WBus16=3D1 Sync=3D1 Linked=3D0 [TranDis=3D0] CmdQ= ue=3D1 > length=3D36 (0x24) Peripheral device type: disk > Vendor identification: MacroSAN > Product identification: LU > Product revision level: 1.0 > Unit serial number: 0d9281ae-aea4-6da0-0000-02180142b300 >=20 > This lun is from a vg build based on iscsi target. If it is a logical volume, you cannot pass it as a LUN to the guest. Only the whole iSCSI LUN can be passed as a LUN. Paolo > [root@localhost /]# libvirtd --version > libvirtd (libvirt) 1.0.5 > [root@localhost /]# qemu-kvm --version > QEMU emulator version 1.4.1, Copyright (c) 2003-2008 Fabrice Bellard > [root@localhost /]# uname -a > Linux localhost.localdomain 3.9.2-301.fc19.x86_64 #1 SMP Mon May 13 > 12:36:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux >=20 >=20 > On Tue, Aug 20, 2013 at 6:16 PM, Paolo Bonzini = wrote: >> 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 t= he >>>> host device you should use device=3D'lun' here. However, you stil= l would >>>> not be able to issue SCSI reservations unless you run QEMU with th= e >>>> 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=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D0,drive=3Ddr= ive-scsi0-0-0-0,id=3Dscsi0-0-0-0: >>> scsi-block: INQUIRY failed >>> qemu-system-x86_64: -device >>> scsi-block,bus=3Dscsi0.0,channel=3D0,scsi-id=3D0,lun=3D0,drive=3Ddr= ive-scsi0-0-0-0,id=3Dscsi0-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 >> >=20 >=20 >=20