Project

General

Profile

Actions

Bug #573

closed

stmfadm doesn't display target and initiator aliases for iscsit

Added by Yuri Pankov over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
kernel
Start date:
2010-12-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

target aliases:

# itadm list-target -v
TARGET NAME                                                  STATE    SESSIONS
iqn.1986-03.com.sun:02:9d138feb-673c-cc1e-dce4-89f749ff1b9d  online   0
        alias:                  myalias
        auth:                   none (defaults)
        targetchapuser:         -
        targetchapsecret:       unset
        tpg-tags:               default
# stmfadm list-target -v
Target: iqn.1986-03.com.sun:02:9d138feb-673c-cc1e-dce4-89f749ff1b9d
    Operational Status: Online
    Provider Name     : iscsit
    Alias             : -
    Protocol          : iSCSI
    Sessions          : 0

initiator aliases (CR6730858 as well):
# stmfadm list-target -v
Target: iqn.1986-03.com.sun:02:9d138feb-673c-cc1e-dce4-89f749ff1b9d
    Operational Status: Online
    Provider Name     : iscsit
    Alias             : -
    Protocol          : iSCSI
    Sessions          : 1
        Initiator: iqn.1986-03.com.sun:01:4065c9c600ff.4d0aa673
            Alias: -
            Logged in since: Fri Dec 17 06:53:56 2010
# iscsiadm list initiator-node   <--- on initiator node
Initiator node name: iqn.1986-03.com.sun:01:4065c9c600ff.4d0aa673
Initiator node alias: myhost
...

Possible patch attached (probably incorrect as I am totally new to kernel programming).

patched:

root@illumos:~# stmfadm list-target -v
Target: iqn.1986-03.com.sun:02:bcb5c01d-e346-c614-c42e-eb5d0c17292e
    Operational Status: Online
    Provider Name     : iscsit
    Alias             : myalias
    Protocol          : iSCSI
    Sessions          : 3
        Initiator: iqn.1986-03.com.sun:01:4065c9c600ff.4d0aa673
            Alias: -
            Logged in since: Mon Dec 27 08:17:36 2010
        Initiator: iqn.1986-03.com.sun:01:0070c9c600ff.4d0a9459
            Alias: myhost
            Logged in since: Mon Dec 27 08:11:38 2010
        Initiator: iqn.1986-03.com.sun:01:0030c9c600ff.4d0a82d8
            Alias: ns3-n1
            Logged in since: Mon Dec 27 08:02:05 2010
Target: iqn.1986-03.com.sun:02:6c9a0f8a-4cde-41d1-e0d4-c97d12139c0b
    Operational Status: Online
    Provider Name     : iscsit
    Alias             : myalias2
    Protocol          : iSCSI
    Sessions          : 3
        Initiator: iqn.1986-03.com.sun:01:4065c9c600ff.4d0aa673
            Alias: -
            Logged in since: Mon Dec 27 08:17:36 2010
        Initiator: iqn.1986-03.com.sun:01:0070c9c600ff.4d0a9459
            Alias: myhost
            Logged in since: Mon Dec 27 08:11:38 2010
        Initiator: iqn.1986-03.com.sun:01:0030c9c600ff.4d0a82d8
            Alias: ns3-n1
            Logged in since: Mon Dec 27 08:02:05 2010
Target: iqn.1986-03.com.sun:02:eea73e86-e9d0-4bf8-c42c-87b61e2f1563
    Operational Status: Online
    Provider Name     : iscsit
    Alias             : myalias3
    Protocol          : iSCSI
    Sessions          : 3
        Initiator: iqn.1986-03.com.sun:01:4065c9c600ff.4d0aa673
            Alias: -
            Logged in since: Mon Dec 27 08:17:36 2010
        Initiator: iqn.1986-03.com.sun:01:0070c9c600ff.4d0a9459
            Alias: myhost
            Logged in since: Mon Dec 27 08:11:38 2010
        Initiator: iqn.1986-03.com.sun:01:0030c9c600ff.4d0a82d8
            Alias: ns3-n1
            Logged in since: Mon Dec 27 08:02:05 2010


Files

iscsit-alias.diff (3.63 KB) iscsit-alias.diff Yuri Pankov, 2010-12-27 05:30 AM
Actions #1

Updated by Yuri Pankov over 10 years ago

Any comments at the code/issue?

Actions #2

Updated by Garrett D'Amore over 10 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

This was integrated today:

garrett@thinkpad{51}> hg head
changeset: 13280:06213a128175
tag: tip
user: Yuri Pankov <>
date: Wed Feb 02 14:26:35 2011 -0800
description:
573 stmfadm doesn't display target and initiator aliases for iscsit
Reviewed by:
Reviewed by:
Approved by:

Actions #3

Updated by Yuri Pankov over 10 years ago

Thanks!

Actions

Also available in: Atom PDF