I setup iSCSI on a CentOS 6 box with /etc/tgt/targets.conf of 
iqn.2012-10.com.example:nhnfs00.target01 
as a test.  The test worked great, so I went into the file and changed it 
to my production information.  The production information cannot be seen 
via iscsiadm, but is visible via tgtadm.

I have yum removed, deleted /etc/iscsi /etc/tgt /var/lib/iscsi, reinstalled

How do I change my original Target/Portal name?  The IQN will not change no 
matter what I do.

*I have changed the file to:*

# Driver
default-driver iscsi

# Targets
<target iqn.1997-03.com.example:nhnfs00-exchange>
<backing-store /home/iscsi/lun_exchange.img>
allow-in-use yes
</backing-store>
</target>
<target iqn.1997-03.com.example:nhnfs00-mssql>
<backing-store /home/iscsi/lun_mssql.img>
allow-in-use yes
</backing-store>
</target>

/etc/iscsi/* are unchanged.


*The name remains as I first set it up.  The changes are seen via tgtadm, 
but not via iscsiadm.*



*nhnfs01 iscsi # iscsiadm -m discovery -t sendtargets -p 10.0.1.60:3260*
10.0.1.60:3260,1 iqn.2012-10.com.example:nhnfs00.target01


*nhnfs01 iscsi # tgtadm --lld iscsi --op show --mode target*
Target 1: iqn.1997-03.com.example:nhnfs00-exchange
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00010000
            SCSI SN: beaf10
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            Backing store type: null
            Backing store path: None
            Backing store flags: 
        LUN: 1
            Type: disk
            SCSI ID: IET     00010001
            SCSI SN: beaf11
            Size: 322123 MB, Block size: 512
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            Backing store type: rdwr
            Backing store path: /home/iscsi/lun_exchange.img
            Backing store flags: 
    Account information:
    ACL information:
        ALL
Target 2: iqn.1997-03.com.example:nhnfs00-mssql
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00020000
            SCSI SN: beaf20
            Size: 0 MB, Block size: 1
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            Backing store type: null
            Backing store path: None
            Backing store flags: 
        LUN: 1
            Type: disk
            SCSI ID: IET     00020001
            SCSI SN: beaf21
            Size: 322123 MB, Block size: 512
            Online: Yes
            Removable media: No
            Prevent removal: No
            Readonly: No
            Backing store type: rdwr
            Backing store path: /home/iscsi/lun_mssql.img
            Backing store flags: 
    Account information:
    ACL information:
        ALL

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/open-iscsi/-/KxmOYcWEyFIJ.
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.

Reply via email to