From: Juergen Gross <jgross@suse.com>
To: Kristian Hagsted Rasmussen <kristian@hagsted.dk>,
Olaf Hering <olaf@aepfle.de>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: pvSCSI test
Date: Mon, 16 Feb 2015 07:32:00 +0100 [thread overview]
Message-ID: <54E18EE0.3050001@suse.com> (raw)
In-Reply-To: <91f8b9fdb64e4158867132e28695d4bd@hagsted-cserver.hagsted.dk>
On 02/12/2015 05:43 PM, Kristian Hagsted Rasmussen wrote:
> On Monday, February 9, 2015 07:02, Juergen Gross <jgross@suse.com> wrote:
>> To: Kristian Hagsted Rasmussen; Olaf Hering; xen-devel@lists.xensource.com
>> Subject: Re: [Xen-devel] pvSCSI test
>
> snip
>
>>
>> No, that's okay. The connection between p-dev and the drive is done
>> via the target infrastructure.
>>
>> Something seems to be wrong with your link in configfs: the target
>> seems not to be active. Could you please check the link to be correct?
>> Please check whether the pscsi (or iblock) entry is active. This can
>> be done via the "ls" command in targetcli for example.
>>
>
> In targetcli, ls returns:
>
> o- / ......................................................................................................................... [...]
> o- backstores .............................................................................................................. [...]
> | o- fileio ................................................................................................... [0 Storage Object]
> | o- iblock ................................................................................................... [0 Storage Object]
> | o- pscsi .................................................................................................... [1 Storage Object]
> | | o- 3:0:0:0 .............................................................................................. [/dev/sdb activated]
> | o- rd_dr .................................................................................................... [0 Storage Object]
> | o- rd_mcp ................................................................................................... [0 Storage Object]
> o- ib_srpt ........................................................................................................... [0 Targets]
> o- iscsi ............................................................................................................. [0 Targets]
> o- loopback .......................................................................................................... [0 Targets]
> o- qla2xxx ........................................................................................................... [0 Targets]
> o- tcm_fc ............................................................................................................ [0 Targets]
>
> And my script for starting xen-pvscsi is this:
>
> modprobe xen-scsiback
> mkdir /sys/kernel/config/target/xen-pvscsi
> mkdir -p /sys/kernel/config/target/xen-pvscsi/naa.600140512a981c66/tpgt_0
> echo naa.6001405708ab297e > /sys/kernel/config/target/xen-pvscsi/naa.600140512a981c66/tpgt_0/nexus
> #### pvscsi Target Ports
> mkdir -p /sys/kernel/config/target/xen-pvscsi/naa.600140512a981c66/tpgt_0/lun/lun_0
> ln -s /sys/kernel/config/target/core/pscsi_0/3:0:0:0 /sys/kernel/config/target/xen-pvscsi/naa.600140512a981c66/tpgt_0/lun/lun_0/xen-pvscsi_port
> #### Attributes for pvscsi Target Portal Group
> #### Parameters for pvscsi Target Portal Group
> echo "3:0:0:0" > /sys/kernel/config/target/xen-pvscsi/naa.600140512a981c66/tpgt_0/param/alias
>
> I hope you can spot my error, as I am a little lost right now.
At least I have spotted man error, but I think I am to blame:
I've told you to write "3:0:0:0" to alias. This was wrong. It should
be only "3:0:0". The LUN number is not part of the alias to use.
Sorry for that,
Juergen
>
>> When I tested the pscsi entry in configfs switched to "active" when I
>> linked the xen-pvscsi entry to it.
>>
>>> Do I have to manually add the device to xenstore?
>>
>> I never did it. :-)
>>
>>
>> Juergen
>>
>>>
>>> If you do not feel for answering more of my questions please feel free to say so, I am just interested in this work and really look forward to its inclusion in xen.
>>>
>>> /Kristian
>>>
>>>> You are not using pscsi, but iblock. Is that on purpose? I have tested
>>>> pscsi and fileio only.
>>>>
>>>> What does lsscsi tell you after adding the device via targetcli? I
>>>> suppose you see a new scsi target you should use instead of 3:0:0:0
>>>> (that's what I did in the fileio case).
>>>>
>
> I do not see more devices with lsscsi when I add and iBlock devices, however I also tested with a fileIO device, this does also not show up in lsscsi. However I can get it to show up by making a loopback entry in targetcli, this however does not change the outcome of my domain creation.
>
> Best regards Kristian
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
next prev parent reply other threads:[~2015-02-16 6:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bd907a705c8747b1991a3b7c69fd3b8e@hagsted-cserver.hagsted.dk>
2015-02-04 4:41 ` pvSCSI test Juergen Gross
2015-02-06 9:32 ` Kristian Hagsted Rasmussen
2015-02-06 9:57 ` Juergen Gross
2015-02-06 14:02 ` Kristian Hagsted Rasmussen
2015-02-06 14:25 ` Juergen Gross
2015-02-06 20:33 ` Kristian Hagsted Rasmussen
2015-02-09 6:02 ` Juergen Gross
2015-02-12 16:43 ` Kristian Hagsted Rasmussen
2015-02-16 6:32 ` Juergen Gross [this message]
2015-02-16 19:45 ` Kristian Hagsted Rasmussen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54E18EE0.3050001@suse.com \
--to=jgross@suse.com \
--cc=kristian@hagsted.dk \
--cc=olaf@aepfle.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.