Re: LU Alias
All `sg_vpd --page=0x83` returns is the IQN: Device Identification VPD page: Addressed logical unit: designator type: NAA, code set: Binary 0x600144f0e431c9004fe3632f0003 Target port: designator type: vendor specific [0x0], code set: ASCII transport: Internet SCSI (iSCSI) vendor specific: iqn.1999-03.com.wiktel:01:krls1 designator type: Target port group, code set: Binary Target port group: 0x0 designator type: Relative target port, code set: Binary Relative target port: 0x2 I'm thinking that OpenIndiana/Illumos/COMSTAR/whatever-component isn't actually exporting this information in any way. -- Richard -- You received this message because you are subscribed to the Google Groups open-iscsi group. To post to this group, send email to open-iscsi@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
Re: LU Alias
On 05/04/2012 02:58 PM, Richard wrote: I'm using open-iscsi to connect to an OpenIndiana COMSTAR target. I have aliases set on the LUs on the COMSTAR side. Is there a way to retrieve those from open-iscsi? (I'd like to have a udev rule to give me nice names.) Hey, Was working on something else and was thinking that I found what you wanted. sg_vpd --page=0x83 /dev/sdXYZ prints a vendor specific: id. Is that what you wanted? -- You received this message because you are subscribed to the Google Groups open-iscsi group. To post to this group, send email to open-iscsi@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
Re: LU Alias
On 05/09/2012 01:32 PM, Richard Laager wrote: I'm really referring to the LU alias. I asked about this in #illumos (on freenode). After that discussion, I'm not sure that it's even exposed by the target. Is there an obvious place in the VPD (page 0x80, 0x83, ???) where it should be exported? If so, maybe this is just an issue for the Illumos side. A netapp engineer suggested trying the REPORT IDENTIFYING INFORMATION command. To do this you can use sg_ident from the sg3_utils. -- You received this message because you are subscribed to the Google Groups open-iscsi group. To post to this group, send email to open-iscsi@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
Re: LU Alias
On Thu, 2012-05-10 at 12:21 -0500, Mike Christie wrote: A netapp engineer suggested trying the REPORT IDENTIFYING INFORMATION command. To do this you can use sg_ident from the sg3_utils. $ sudo sg_ident -i 127 /dev/sdm Information type: 0, Maximum information length: 0 bytes Information type: 4, Maximum information length: 256 bytes The only one it could be is 4, since the LU alias field is 255 characters, I think. But here are both: $ sudo sg_ident -i 0 /dev/sdm $ sudo sg_ident -i 4 /dev/sdm bad field in Report identifying information cdb including unsupported service action -- Richard signature.asc Description: This is a digitally signed message part
Re: LU Alias
On 05/09/2012 03:59 AM, Vanush Misha Paturyan wrote: On 9 May 2012 06:24, Mike Christie micha...@cs.wisc.edu wrote: On 05/08/2012 06:36 AM, Vanush Misha Paturyan wrote: On 7 May 2012 22:32, Mike Christie micha...@cs.wisc.edu wrote: On 05/04/2012 02:58 PM, Richard wrote: I'm using open-iscsi to connect to an OpenIndiana COMSTAR target. I have aliases set on the LUs on the COMSTAR side. Is there a way to retrieve those from open-iscsi? (I'd like to have a udev rule to give me nice names.) Open iscsi does not have this. You have to use one of the sg utils tools to. Any examples? Huh. For some reason I thought we added support for this in lsscsi (http://sg.danny.cz/scsi/lsscsi.html) a long time ago. Correct me if I'm wrong, but if lsscsi uses information in sysfs, then it relies on something else to populate it (sysfs that is)? Would this not be the function of Open SCSI? I do not think it belongs in open-iscsi because it is not iscsi specific. You would want it for your FC devices too. It makes sense for a util like lscsi to do this because its job is to give you info about devices. But yeah, I remember why it did not go into lsscsi. I think it was because of the sysfs thing and Doug did not want users to have to be root. And you need to send a sg io to get the info. -- You received this message because you are subscribed to the Google Groups open-iscsi group. To post to this group, send email to open-iscsi@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
Re: LU Alias
I'm really referring to the LU alias. I asked about this in #illumos (on freenode). After that discussion, I'm not sure that it's even exposed by the target. Is there an obvious place in the VPD (page 0x80, 0x83, ???) where it should be exported? If so, maybe this is just an issue for the Illumos side. -- Richard signature.asc Description: This is a digitally signed message part
Re: LU Alias
On 7 May 2012 22:32, Mike Christie micha...@cs.wisc.edu wrote: On 05/04/2012 02:58 PM, Richard wrote: I'm using open-iscsi to connect to an OpenIndiana COMSTAR target. I have aliases set on the LUs on the COMSTAR side. Is there a way to retrieve those from open-iscsi? (I'd like to have a udev rule to give me nice names.) Open iscsi does not have this. You have to use one of the sg utils tools to. Any examples? I'm connecting to QNAP TS-809U (firmware 3.3.6). Distinguishing LUNs by their aliases would be nice! Misha -- You received this message because you are subscribed to the Google Groups open-iscsi group. To post to this group, send email to open-iscsi@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
Re: LU Alias
On 05/08/2012 06:36 AM, Vanush Misha Paturyan wrote: On 7 May 2012 22:32, Mike Christie micha...@cs.wisc.edu wrote: On 05/04/2012 02:58 PM, Richard wrote: I'm using open-iscsi to connect to an OpenIndiana COMSTAR target. I have aliases set on the LUs on the COMSTAR side. Is there a way to retrieve those from open-iscsi? (I'd like to have a udev rule to give me nice names.) Open iscsi does not have this. You have to use one of the sg utils tools to. Any examples? Huh. For some reason I thought we added support for this in lsscsi (http://sg.danny.cz/scsi/lsscsi.html) a long time ago. I just checked and it is not there. Not sure what happened. Will put it on my todo to add support to it. -- You received this message because you are subscribed to the Google Groups open-iscsi group. To post to this group, send email to open-iscsi@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
Re: LU Alias
On 05/04/2012 02:58 PM, Richard wrote: I'm using open-iscsi to connect to an OpenIndiana COMSTAR target. I have aliases set on the LUs on the COMSTAR side. Is there a way to retrieve those from open-iscsi? (I'd like to have a udev rule to give me nice names.) Open iscsi does not have this. You have to use one of the sg utils tools to. -- You received this message because you are subscribed to the Google Groups open-iscsi group. To post to this group, send email to open-iscsi@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.