qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Testing NPIV Feature with Qemu-KVM
@ 2013-09-02 12:34 chandrashekar shastri
  2013-09-05 14:15 ` Stefan Hajnoczi
  0 siblings, 1 reply; 5+ messages in thread
From: chandrashekar shastri @ 2013-09-02 12:34 UTC (permalink / raw)
  To: linux-scsi, qemu-devel, linux-fsdevel; +Cc: hare

Hi All,

I am testing NPIV feature on upstream Qemu, I have configured the zone
and able to see the created vport on the storage array.

Since, I am learning on how to setup the NPIV, I haven't created the different zone for
the vport and the array, I just added in the existing zone. 

Now, how do pass the LUN to the qemu, from Dr. Hannes Reineckei mail thread I got to know that lspci command on the host doesn't show the virtual HBA.

I didn't understand why there is limitation on that and if I specify
/usr/libexec/qemu-kvm -enable-kvm Fedora19 -m 3000 -smp 2 -net nic -net
\ user -vnc 127.0.0.1:0 -drive if=scsi,file=/dev/sdj

How do I make sure that qemu is using the virtual HBA or (vport)?

Thanks,
Shastri

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] Testing NPIV Feature with Qemu-KVM
@ 2013-09-02 12:54 cshastri
  0 siblings, 0 replies; 5+ messages in thread
From: cshastri @ 2013-09-02 12:54 UTC (permalink / raw)
  To: qemu-devel, linux-scsi, linux-fsdevel; +Cc: hare


Hi All,

I am testing NPIV feature on upstream Qemu, I have configured the zone
and able to see the created vport on the storage array.

Since, I am learning on how to setup the NPIV, I haven't created the  
different zone for
the vport and the array, I just added in the existing zone.

Now, how do pass the LUN to the qemu, from Dr. Hannes Reineckei mail  
thread I got to know that lspci command on the host doesn't show the  
virtual HBA.

I didn't understand why there is limitation on that and if I specify
/usr/libexec/qemu-kvm -enable-kvm Fedora19 -m 3000 -smp 2 -net nic -net
\ user -vnc 127.0.0.1:0 -drive if=scsi,file=/dev/sdj

How do I make sure that qemu is using the virtual HBA or (vport)?

Thanks,
Shastri

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Testing NPIV Feature with Qemu-KVM
  2013-09-02 12:34 [Qemu-devel] Testing NPIV Feature with Qemu-KVM chandrashekar shastri
@ 2013-09-05 14:15 ` Stefan Hajnoczi
  2013-09-05 14:55   ` Love, Robert W
  2013-09-05 14:59   ` Love, Robert W
  0 siblings, 2 replies; 5+ messages in thread
From: Stefan Hajnoczi @ 2013-09-05 14:15 UTC (permalink / raw)
  To: chandrashekar shastri
  Cc: linux-fsdevel, qemu-devel, linux-scsi, Hannes Reinecke

On Mon, Sep 2, 2013 at 2:34 PM, chandrashekar shastri
<cshastri@oc2505588478.ibm.com> wrote:
> I am testing NPIV feature on upstream Qemu, I have configured the zone
> and able to see the created vport on the storage array.
>
> Since, I am learning on how to setup the NPIV, I haven't created the different zone for
> the vport and the array, I just added in the existing zone.
>
> Now, how do pass the LUN to the qemu, from Dr. Hannes Reineckei mail thread I got to know that lspci command on the host doesn't show the virtual HBA.
>
> I didn't understand why there is limitation on that and if I specify
> /usr/libexec/qemu-kvm -enable-kvm Fedora19 -m 3000 -smp 2 -net nic -net
> \ user -vnc 127.0.0.1:0 -drive if=scsi,file=/dev/sdj
>
> How do I make sure that qemu is using the virtual HBA or (vport)?

>From my limited knowledge of NPIV, after you create the vport on the
host you'll have a new "SCSI host" which scans LUNs.  That means new
SCSI devices appear on the host.

You can use "ls -al /sys/class/scsi_host" to see the SCSI hosts that are active.

You can use "virsh nodedev-list --tree" to see the details of the devices.

This should help you find the NPIV LUNs which can be passed to QEMU.

Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Testing NPIV Feature with Qemu-KVM
  2013-09-05 14:15 ` Stefan Hajnoczi
@ 2013-09-05 14:55   ` Love, Robert W
  2013-09-05 14:59   ` Love, Robert W
  1 sibling, 0 replies; 5+ messages in thread
From: Love, Robert W @ 2013-09-05 14:55 UTC (permalink / raw)
  To: Stefan Hajnoczi, chandrashekar shastri
  Cc: linux-fsdevel@vger.kernel.org, qemu-devel, linux-scsi,
	Hannes Reinecke

<snip>

> > How do I make sure that qemu is using the virtual HBA or (vport)?
> 
> From my limited knowledge of NPIV, after you create the vport on the host
> you'll have a new "SCSI host" which scans LUNs.  That means new SCSI
> devices appear on the host.
> 
> You can use "ls -al /sys/class/scsi_host" to see the SCSI hosts that are active.
> 

Also, there will be a /sys/class/fc_host, associated with the scsi_host. It will have a port_type, that when read, should show "NPIV VPORT".

//Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Testing NPIV Feature with Qemu-KVM
  2013-09-05 14:15 ` Stefan Hajnoczi
  2013-09-05 14:55   ` Love, Robert W
@ 2013-09-05 14:59   ` Love, Robert W
  1 sibling, 0 replies; 5+ messages in thread
From: Love, Robert W @ 2013-09-05 14:59 UTC (permalink / raw)
  To: Stefan Hajnoczi
  Cc: linux-fsdevel@vger.kernel.org, Hannes Reinecke,
	chandrashekar shastri, linux-scsi, qemu-devel

On 13-09-05 07:15 AM, Stefan Hajnoczi wrote:
> On Mon, Sep 2, 2013 at 2:34 PM, chandrashekar shastri
> <cshastri@oc2505588478.ibm.com> wrote:
>> I am testing NPIV feature on upstream Qemu, I have configured the zone
>> and able to see the created vport on the storage array.
>>
>> Since, I am learning on how to setup the NPIV, I haven't created the different zone for
>> the vport and the array, I just added in the existing zone.
>>
>> Now, how do pass the LUN to the qemu, from Dr. Hannes Reineckei mail thread I got to know that lspci command on the host doesn't show the virtual HBA.
>>
>> I didn't understand why there is limitation on that and if I specify
>> /usr/libexec/qemu-kvm -enable-kvm Fedora19 -m 3000 -smp 2 -net nic -net
>> \ user -vnc 127.0.0.1:0 -drive if=scsi,file=/dev/sdj
>>
>> How do I make sure that qemu is using the virtual HBA or (vport)?
>  From my limited knowledge of NPIV, after you create the vport on the
> host you'll have a new "SCSI host" which scans LUNs.  That means new
> SCSI devices appear on the host.
>
> You can use "ls -al /sys/class/scsi_host" to see the SCSI hosts that are active.
>
> You can use "virsh nodedev-list --tree" to see the details of the devices.
>
> This should help you find the NPIV LUNs which can be passed to QEMU.
>

Also, there will be a /sys/class/fc_host, associated with the scsi_host. 
It will have a port_type, that when read, should show "NPIV VPORT".

//Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-05 14:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-02 12:34 [Qemu-devel] Testing NPIV Feature with Qemu-KVM chandrashekar shastri
2013-09-05 14:15 ` Stefan Hajnoczi
2013-09-05 14:55   ` Love, Robert W
2013-09-05 14:59   ` Love, Robert W
  -- strict thread matches above, loose matches on Subject: below --
2013-09-02 12:54 cshastri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).