Just to followup here on a bit of digging I've been doing... The only place in the configfs tree that I can anything that resembles the value that "scsi_id -g" on the initiator returns is in: /sys/kernel/config/target/core/*/*/wwn/vpd_assoc_logical_unit, for example: T10 VPD Identifier Association: addressed logical unit T10 VPD Identifier Type: NAA T10 VPD Binary Device Identifier: 360014058da4cbf2d90f3d4404d962ed8 T10 VPD Identifier Association: addressed logical unit T10 VPD Identifier Type: T10 Vendor ID based T10 VPD ASCII Device Identifier: LIO-ORG I'm guessing that I cannot set the contents of this file though, can I? When I try I get: # cat /sys/kernel/config/target/core/iblock_2/sdc/wwn/vpd_assoc_logical_unit >/tmp/foo # sed -i -e 's/360014058da4cbf2d90f3d4404d962ed8/wc35_sda/' /tmp/foo # cat > /sys/kernel/config/target/core/iblock_2/sdc/wwn/vpd_assoc_logical_unit </tmp/foo cat: write error: Function not implemented Ultimately I am trying to achieve what the following does with the tgtd iSCSI target: <target iqn.2008-09.wc35:server.target1> <direct-store /dev/sda> scsi_id wc35_sda </direct-store> </target> When I give that configuration to tgtd on the initiator, scsi_id -g returns "wc35_sda". Thanks again, b.
Attachment:
signature.asc
Description: OpenPGP digital signature