Re: Re: Oracle RAC in libvirt+KVM environment

2013-08-27 Thread Masaki Kimura
I found that scsicmd can't pass all the scsi3_test but the result of sg_inq is the same as it in the host. I am absolutely confused about this situation. Am I missed some information about it? I guess this is caused by the lack of capability. Please check if enough capability was added to

Re: Oracle RAC in libvirt+KVM environment

2013-08-27 Thread Paolo Bonzini
Il 27/08/2013 12:29, Masaki Kimura ha scritto: I believe following patches, which are not merged yet, are trying to solve this problem in a different approach. - [PATCH v3 part2] Add per-device sysfs knob to enable unrestricted, unprivileged SG_IO

Re: Oracle RAC in libvirt+KVM environment

2013-08-27 Thread Timon Wang
Thanks, all the test in SCSICMD.exe can pass now, when I set the ep caps on qemu process. We found that sg_persist --read-keys can't get the same result in VM and host, and now we get the same result in both VM and host mode. But Windows 2008 Failover Cluster Still can't get the cluster disk

Re: Oracle RAC in libvirt+KVM environment

2013-08-22 Thread Timon Wang
Thanks Nicholas. I found that scsicmd can't pass all the scsi3_test but the result of sg_inq is the same as it in the host. I am absolutely confused about this situation. Am I missed some information about it? On Wed, Aug 21, 2013 at 5:40 PM, Nicholas A. Bellinger n...@linux-iscsi.org wrote:

Re: Oracle RAC in libvirt+KVM environment

2013-08-22 Thread Paolo Bonzini
Il 22/08/2013 09:46, Timon Wang ha scritto: Thanks Nicholas. I found that scsicmd can't pass all the scsi3_test but the result of sg_inq is the same as it in the host. I am absolutely confused about this situation. Am I missed some information about it? I am also confused. You need to

Re: Oracle RAC in libvirt+KVM environment

2013-08-22 Thread Timon Wang
I don't know if lsisas1078 controller in qemu is not work property or I did not configure it correct. Sometimes I can see the lun which passed to the vm, sometimes not. I have tried that controller before, and sometimes the vm will crash because qemu process quit, but I did not get the detail

Re: Oracle RAC in libvirt+KVM environment

2013-08-21 Thread Paolo Bonzini
Il 21/08/2013 04:11, Timon Wang ha scritto: From the fedora 19 host: [root@fedora ~]# sg_inq /dev/sdc standard INQUIRY: PQual=0 Device_type=0 RMB=0 version=0x05 [SPC-3] [AERC=0] [TrmTsk=0] NormACA=0 HiSUP=0 Resp_data_format=0 SCCS=1 ACC=0 TPGS=1 3PC=0 Protect=0 [BQue=0]

Re: Oracle RAC in libvirt+KVM environment

2013-08-21 Thread Nicholas A. Bellinger
On Wed, 2013-08-21 at 11:09 +0200, Paolo Bonzini wrote: Il 21/08/2013 04:11, Timon Wang ha scritto: From the fedora 19 host: [root@fedora ~]# sg_inq /dev/sdc standard INQUIRY: PQual=0 Device_type=0 RMB=0 version=0x05 [SPC-3] [AERC=0] [TrmTsk=0] NormACA=0 HiSUP=0

Re: Oracle RAC in libvirt+KVM environment

2013-08-20 Thread Timon Wang
My domain xml is like this: domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' name2008-2/name uuid6325d8a5-468d-42e9-b5cb-9a04f5f34e80/uuid memory unit='KiB'524288/memory currentMemory unit='KiB'524288/currentMemory vcpu placement='static'2/vcpu os type

Re: Oracle RAC in libvirt+KVM environment

2013-08-20 Thread Timon Wang
Right now, I found that Windows Failover Cluster needs SCSI-3 Persistent Reservation, I don't know where if virtio-scsi supports this, according to http://www.ovirt.org/Features/Virtio-SCSI I found this: limited flexibility: virtio-blk does not support all possible storage scenarios. For example,

Re: Oracle RAC in libvirt+KVM environment

2013-08-20 Thread Paolo Bonzini
Il 20/08/2013 08:00, Timon Wang ha scritto: disk type='file' device='disk' driver name='qemu' type='raw' cache='none'/ source file='/home/images/win2008_2_sys'/ target dev='hda' bus='ide'/ boot order='3'/ address type='drive' controller='0' bus='0'

Re: Oracle RAC in libvirt+KVM environment

2013-08-20 Thread Timon Wang
On Tue, Aug 20, 2013 at 4:33 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 20/08/2013 08:00, Timon Wang ha scritto: disk type='file' device='disk' driver name='qemu' type='raw' cache='none'/ source file='/home/images/win2008_2_sys'/ target dev='hda' bus='ide'/

Re: Oracle RAC in libvirt+KVM environment

2013-08-20 Thread Paolo Bonzini
Il 20/08/2013 11:59, Timon Wang ha scritto: On Tue, Aug 20, 2013 at 4:33 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 20/08/2013 08:00, Timon Wang ha scritto: disk type='file' device='disk' driver name='qemu' type='raw' cache='none'/ source

Re: Oracle RAC in libvirt+KVM environment

2013-08-20 Thread Paolo Bonzini
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月 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:

Re: Oracle RAC in libvirt+KVM environment

2013-08-20 Thread Timon Wang
Thanks, the whole iSCSI LUN have been passed to the VM. But I test it with scsicmd, and found that the driver may be not support SPC-3, but if i use this by microsoft iscsi initiator, I can pass all the scsi3_test tests. Tool can be found here:

Re: Oracle RAC in libvirt+KVM environment

2013-08-20 Thread Timon Wang
I found when I use scsicmd -d1 -s13 test command to test the controller bus reset request, there will be a blue screen on windows 2008 r2. The error code is : BugCheck D1, {4, a, 0, f8800154dd06} 1: kd !analyze -v

Re: Oracle RAC in libvirt+KVM environment

2013-08-20 Thread Paolo Bonzini
Il 20/08/2013 13:43, Timon Wang ha scritto: Thanks, the whole iSCSI LUN have been passed to the VM. But I test it with scsicmd, and found that the driver may be not support SPC-3, but if i use this by microsoft iscsi initiator, I can pass all the scsi3_test tests. If you are passing the LUN

Re: Oracle RAC in libvirt+KVM environment

2013-08-20 Thread Timon Wang
From the fedora 19 host: [root@fedora ~]# sg_inq /dev/sdc standard INQUIRY: PQual=0 Device_type=0 RMB=0 version=0x05 [SPC-3] [AERC=0] [TrmTsk=0] NormACA=0 HiSUP=0 Resp_data_format=0 SCCS=1 ACC=0 TPGS=1 3PC=0 Protect=0 [BQue=0] EncServ=0 MultiP=0 [MChngr=0] [ACKREQQ=0]

Re: Oracle RAC in libvirt+KVM environment

2013-08-19 Thread Paolo Bonzini
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

Re: Oracle RAC in libvirt+KVM environment

2013-08-15 Thread Timon Wang
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.

Re: Oracle RAC in libvirt+KVM environment

2013-08-14 Thread Timon Wang
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

Re: Oracle RAC in libvirt+KVM environment

2013-08-14 Thread Timon Wang
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

Re: Oracle RAC in libvirt+KVM environment

2013-08-14 Thread Stefan Hajnoczi
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

Re: Oracle RAC in libvirt+KVM environment

2013-08-13 Thread Stefan Hajnoczi
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

Re: Oracle RAC in libvirt+KVM environment

2013-08-12 Thread Stefan Hajnoczi
On Fri, Aug 02, 2013 at 01:58:24PM +0800, Timon Wang wrote: We wan't to setup two Oracle instance and make RAC work on them. Both VM are setup based on libvirt + KVM, we use a lvm lun which formated in qcow2 format and set the shareable properties in the disk driver like this: disk

Re: Oracle RAC in libvirt+KVM environment

2013-08-12 Thread Stefan Hajnoczi
On Sat, Aug 10, 2013 at 11:14:39AM +0800, Timon Wang wrote: I have tryied change the disk bus to SCSI, add a SCSI controller whose model is virtio-scsi, still can't setup the RAC instance. I tried to use windows 2008 Failover Cluster feature to setup a a Failover Cluster instead, and I can't

Re: Oracle RAC in libvirt+KVM environment

2013-08-12 Thread Timon Wang
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. On

Re: Oracle RAC in libvirt+KVM environment

2013-08-09 Thread Timon Wang
I have tryied change the disk bus to SCSI, add a SCSI controller whose model is virtio-scsi, still can't setup the RAC instance. I tried to use windows 2008 Failover Cluster feature to setup a a Failover Cluster instead, and I can't find any cluster disk to share between two nodes. So when

Re: Oracle RAC in libvirt+KVM environment

2013-08-08 Thread Timon Wang
Anybody have idea on it? I tried to set the disk as raw format, and retried the setup process, but still can't get through. On Fri, Aug 2, 2013 at 1:58 PM, Timon Wang timon...@gmail.com wrote: We wan't to setup two Oracle instance and make RAC work on them. Both VM are setup based on libvirt +

Re: Oracle RAC in libvirt+KVM environment

2013-08-08 Thread Don Koch
On 08/08/2013 03:54 AM, Timon Wang wrote: Anybody have idea on it? I tried to set the disk as raw format, and retried the setup process, but still can't get through. Caveat: I know nothing in particular about Oracle RAC, but... Assuming that RAC uses something like SCSI reservations in

Oracle RAC in libvirt+KVM environment

2013-08-01 Thread Timon Wang
We wan't to setup two Oracle instance and make RAC work on them. Both VM are setup based on libvirt + KVM, we use a lvm lun which formated in qcow2 format and set the shareable properties in the disk driver like this: disk type='block' device='disk' driver name='qemu' type='qcow2'