Data Backup and Recovery

sdcli iscsi_initiator establish_session > Unable to establish an iSCSI session

txskibum2000
11,765 Views

So, I need some help with establishing an iSCSI session with SDCLI command.

I can successfully establish a session through the SnapDrive GUID, but would like to figure out how to do this with the cli command.

Here is what I have so far -shown below.

I have a session established through the SD Guid.

I ran the sdcli iscsi_initiator list -s as shown below..

I terminated the session as shown below.. However, I cannot re-establish. I get an error Incompatible IP port type specified.

I have been banging my head and cannot figure out what I am doing wrong??

C:\>

C:\>sdcli iscsi_initiator list -s
        1 connected iSCSI target(s):
                Target name: iqn.1992-08.com.netapp:sn.80335005
                Number of LUNs: 0
                1 iSCSI session(s):
                        Session ID: 0xfffffa8049417018-0x4000013700000005
                        Microsoft iSCSI service
                        iSCSI HBA_ID: 0
                        iSCSI HBA name: Root\ISCSIPRT\0000_0
                        iSCSI HBA description: Microsoft iSCSI Initiator
                        1 iSCSI connection(s):
                                Connection ID: 0xfffffa8049417018-0x5
                                CID: 00 01
                                Initiator portal:
                                        Portal ID: 1
                                        IP address: 10.3.90.40
                                        IP port: 30410
                                Target portal:
                                        IP address: 10.3.90.41
                                        IP port: 3260
The operation completed successfully.

C:\>

C:\>sdcli iscsi_initiator terminate_session -s 0xfffffa8049417018-0x4000013700000005
The operation completed successfully.

C:\>

C:\>sdcli iscsi_initiator establish_session -t iqn.1992-08.com.netapp:sn.80335005 -np 10.3.90.41 3260
Unable to establish an iSCSI session.
Error: Incompatible IP port type specified. Select compatible host and target port type.

1 ACCEPTED SOLUTION

kjag
11,765 Views

Hi,

Did you configure IPV6 in your machine? Please try the below.

1. Run "sdcli sysconfig list" and get the number of portals listed.

2. If the IP address of the client is not under the "Portal Id" 0 then you need to specify the same in the "Establish session" command like below.

Note: -hp = is the portal id of the ipv4 ip address and -h should be 0

3. sdcli iscsi_initiator establish_session -h 0 -hp 1 -t iqn.1992-08.com.netapp:sn.80335005 -np 10.3.90.41 3260

View solution in original post

2 REPLIES 2

kjag
11,766 Views

Hi,

Did you configure IPV6 in your machine? Please try the below.

1. Run "sdcli sysconfig list" and get the number of portals listed.

2. If the IP address of the client is not under the "Portal Id" 0 then you need to specify the same in the "Establish session" command like below.

Note: -hp = is the portal id of the ipv4 ip address and -h should be 0

3. sdcli iscsi_initiator establish_session -h 0 -hp 1 -t iqn.1992-08.com.netapp:sn.80335005 -np 10.3.90.41 3260

txskibum2000
11,765 Views

BRILLIANT! The host machine did have IPV6, which is sitting on portal id 0 (which is default without the -hp switch). So, all I needed to do was to specify to use -hp 1. Thank you!

Public