Re: Lio iscsi target. How to set serial or id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Great, that's good enough for our purposes (which is to keep the
serial the same across independent target servers). It looks like I
can just echo what I want into vpd_unit_serial. I would have expected
to be able to run something like "/backstore/iblock/vol0 set
vpd_unit_serial=12345", perhaps we can get to that at some point.

Thanks,
Marcus

On Mon, Mar 19, 2012 at 8:41 PM, Nicholas A. Bellinger
<nab@xxxxxxxxxxxxxxx> wrote:
> Hi Marcus,
>
> On Mon, 2012-03-19 at 02:16 +0000, Marcus wrote:
>> Hasse Hagen Johansen <hasse <at> hagenjohansen.dk> writes:
>>
>> >
>> > Hi
>> >
>> > I have previous used the tgt target where I was able to set the scsi serial &
>> id on each lun. Then I could use that
>> > to identify the lun in vmware sphere (running esxi 5)
>> >
>> > I would like to be able to do something similar with the lio target. How do I
>> do that? I have looked in the
>> > configfs but not really found anything which I could use. Would I be able to
>> set a wwn on the underlying
>> > iblock ?
>> >
>> > please also cc me off list as I am not a subscriber
>> >
>> > Best Regards
>> > Hasse Hagen Johansen--
>> > To unsubscribe from this list: send the line "unsubscribe target-devel" in
>> > the body of a message to majordomo <at> vger.kernel.org
>> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> >
>> >
>>
>> Any answer on this? Every target software I've used, from COMSTAR to SCST to IET
>> has had a way to set vendor, serial, and model on your exported LUNs, however I
>> don't see anything obvious via targetcli or configfs. Any instruction on how to
>> change these would be greatly appreciated. It's important enough that it can
>> keep us from using LIO
>>
>
> On the kernel side, the INQUIRY EVPD 0x83 and 0x80 are generated using
> values in /sys/kernel/config/target/core/$HBA/$DEV/wwn/vpd_unit_serial,
> which is what the SCSI initiator is using to associate LUNs across
> different SCSI fabric ports.
>
> On the userspace side, we automatically generate these values and set
> this per device backend configfs attribute using UUIDs from rtslib +
> legacy tcm_node.py code, and we keep this value persistent across
> reboots + failover.
>
> Note we do not provide mechanism to change the INQUIRY vendor/model, and
> you'll have to change 'LIO-ORG' directly in the source for this.
>
> --nab
>
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Photos]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

Add to Google Powered by Linux