[Bug 1712811] Re: iscsiadm sometimes does not show attached device (iscsiadm -m session) but device is really exist and attached

Alexander Symonenko 1712811 at bugs.launchpad.net
Thu Aug 24 13:38:36 UTC 2017


** Description changed:

  Hi colleagues.
  
  I have some troubles with iscsiadm. iscsiadm sometimes creates LUN but
  does not show attached disk. My device is really exist.
  
  Login:
  
-     >sudo -s iscsiadm --mode node --portal 192.168.1.86 --targetname
+     >sudo -s iscsiadm --mode node --portal 192.168.1.86 --targetname
  iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879
  --login 2>&1
  
-     Logging in to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] (multiple)
-     Login to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] successful.
+     Logging in to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] (multiple)
+     Login to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] successful.
  
  Check result:
  
-     >sudo -s iscsiadm -m session -P 3 2>&1
- 
-     Target: iqn.2010-06.com.nutanix:vg-backup-3943a3b9-3745-4dd7-ba0e-72f25b4a417b
-         Current Portal: 192.168.1.86:3260,1
-         Persistent Portal: 192.168.1.86:3260,1
-             **********
-             Interface:
-             **********
-             Iface Name: default
-             Iface Transport: tcp
-             Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
-             Iface IPaddress: 192.168.0.43
-             Iface HWaddress: <empty>
-             Iface Netdev: <empty>
-             SID: 10
-             iSCSI Connection State: LOGGED IN
-             iSCSI Session State: LOGGED_IN
-             Internal iscsid Session State: NO CHANGE
-             *********
-             Timeouts:
-             *********
-             Recovery Timeout: 120
-             Target Reset Timeout: 30
-             LUN Reset Timeout: 30
-             Abort Timeout: 15
-             *****
-             CHAP:
-             *****
-             username: <empty>
-             password: ********
-             username_in: <empty>
-             password_in: ********
-             ************************
-             Negotiated iSCSI params:
-             ************************
-             HeaderDigest: None
-             DataDigest: None
-             MaxRecvDataSegmentLength: 262144
-             MaxXmitDataSegmentLength: 1048576
-             FirstBurstLength: 262144
-             MaxBurstLength: 16776192
-             ImmediateData: Yes
-             InitialR2T: Yes
-             MaxOutstandingR2T: 1
-             ************************
-             Attached SCSI devices:
-             ************************
-             Host Number: 12	State: running
-             scsi12 Channel 00 Id 0 Lun: 0
-                 Attached scsi disk sdc		State: running
-     Target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879
-         Current Portal: 192.168.1.86:3260,1
-         Persistent Portal: 192.168.1.86:3260,1
-             **********
-             Interface:
-             **********
-             Iface Name: default
-             Iface Transport: tcp
-             Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
-             Iface IPaddress: 192.168.0.43
-             Iface HWaddress: <empty>
-             Iface Netdev: <empty>
-             SID: 40
-             iSCSI Connection State: LOGGED IN
-             iSCSI Session State: LOGGED_IN
-             Internal iscsid Session State: NO CHANGE
-             *********
-             Timeouts:
-             *********
-             Recovery Timeout: 120
-             Target Reset Timeout: 30
-             LUN Reset Timeout: 30
-             Abort Timeout: 15
-             *****
-             CHAP:
-             *****
-             username: <empty>
-             password: ********
-             username_in: <empty>
-             password_in: ********
-             ************************
-             Negotiated iSCSI params:
-             ************************
-             HeaderDigest: None
-             DataDigest: None
-             MaxRecvDataSegmentLength: 262144
-             MaxXmitDataSegmentLength: 1048576
-             FirstBurstLength: 262144
-             MaxBurstLength: 16776192
-             ImmediateData: Yes
-             InitialR2T: Yes
-             MaxOutstandingR2T: 1
-             ************************
-             Attached SCSI devices:
-             ************************
-             Host Number: 42	State: running
-             scsi42 Channel 00 Id 0 Lun: 0
-     Target: iqn.2010-06.com.nutanix:vg-backup-2c392880-0708-4911-86ed-16dfd4ff47f6
-         Current Portal: 192.168.1.86:3260,1
-         Persistent Portal: 192.168.1.86:3260,1
-             **********
-             Interface:
-             **********
-             Iface Name: default
-             Iface Transport: tcp
-             Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
-             Iface IPaddress: 192.168.0.43
-             Iface HWaddress: <empty>
-             Iface Netdev: <empty>
-             SID: 6
-             iSCSI Connection State: LOGGED IN
-             iSCSI Session State: LOGGED_IN
-             Internal iscsid Session State: NO CHANGE
-             *********
-             Timeouts:
-             *********
-             Recovery Timeout: 120
-             Target Reset Timeout: 30
-             LUN Reset Timeout: 30
-             Abort Timeout: 15
-             *****
-             CHAP:
-             *****
-             username: <empty>
-             password: ********
-             username_in: <empty>
-             password_in: ********
-             ************************
-             Negotiated iSCSI params:
-             ************************
-             HeaderDigest: None
-             DataDigest: None
-             MaxRecvDataSegmentLength: 262144
-             MaxXmitDataSegmentLength: 1048576
-             FirstBurstLength: 262144
-             MaxBurstLength: 16776192
-             ImmediateData: Yes
-             InitialR2T: Yes
-             MaxOutstandingR2T: 1
-             ************************
-             Attached SCSI devices:
-             ************************
-             Host Number: 8	State: running
-             scsi8 Channel 00 Id 0 Lun: 0
-                 Attached scsi disk sdb		State: running
-                 
-                 
+     >sudo -s iscsiadm -m session -P 3 2>&1
+ 
+     Target: iqn.2010-06.com.nutanix:vg-backup-3943a3b9-3745-4dd7-ba0e-72f25b4a417b
+         Current Portal: 192.168.1.86:3260,1
+         Persistent Portal: 192.168.1.86:3260,1
+             **********
+             Interface:
+             **********
+             Iface Name: default
+             Iface Transport: tcp
+             Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
+             Iface IPaddress: 192.168.0.43
+             Iface HWaddress: <empty>
+             Iface Netdev: <empty>
+             SID: 10
+             iSCSI Connection State: LOGGED IN
+             iSCSI Session State: LOGGED_IN
+             Internal iscsid Session State: NO CHANGE
+             *********
+             Timeouts:
+             *********
+             Recovery Timeout: 120
+             Target Reset Timeout: 30
+             LUN Reset Timeout: 30
+             Abort Timeout: 15
+             *****
+             CHAP:
+             *****
+             username: <empty>
+             password: ********
+             username_in: <empty>
+             password_in: ********
+             ************************
+             Negotiated iSCSI params:
+             ************************
+             HeaderDigest: None
+             DataDigest: None
+             MaxRecvDataSegmentLength: 262144
+             MaxXmitDataSegmentLength: 1048576
+             FirstBurstLength: 262144
+             MaxBurstLength: 16776192
+             ImmediateData: Yes
+             InitialR2T: Yes
+             MaxOutstandingR2T: 1
+             ************************
+             Attached SCSI devices:
+             ************************
+             Host Number: 12	State: running
+             scsi12 Channel 00 Id 0 Lun: 0
+                 Attached scsi disk sdc		State: running
+     Target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879
+         Current Portal: 192.168.1.86:3260,1
+         Persistent Portal: 192.168.1.86:3260,1
+             **********
+             Interface:
+             **********
+             Iface Name: default
+             Iface Transport: tcp
+             Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
+             Iface IPaddress: 192.168.0.43
+             Iface HWaddress: <empty>
+             Iface Netdev: <empty>
+             SID: 40
+             iSCSI Connection State: LOGGED IN
+             iSCSI Session State: LOGGED_IN
+             Internal iscsid Session State: NO CHANGE
+             *********
+             Timeouts:
+             *********
+             Recovery Timeout: 120
+             Target Reset Timeout: 30
+             LUN Reset Timeout: 30
+             Abort Timeout: 15
+             *****
+             CHAP:
+             *****
+             username: <empty>
+             password: ********
+             username_in: <empty>
+             password_in: ********
+             ************************
+             Negotiated iSCSI params:
+             ************************
+             HeaderDigest: None
+             DataDigest: None
+             MaxRecvDataSegmentLength: 262144
+             MaxXmitDataSegmentLength: 1048576
+             FirstBurstLength: 262144
+             MaxBurstLength: 16776192
+             ImmediateData: Yes
+             InitialR2T: Yes
+             MaxOutstandingR2T: 1
+             ************************
+             Attached SCSI devices:
+             ************************
+             Host Number: 42	State: running
+             scsi42 Channel 00 Id 0 Lun: 0
+     Target: iqn.2010-06.com.nutanix:vg-backup-2c392880-0708-4911-86ed-16dfd4ff47f6
+         Current Portal: 192.168.1.86:3260,1
+         Persistent Portal: 192.168.1.86:3260,1
+             **********
+             Interface:
+             **********
+             Iface Name: default
+             Iface Transport: tcp
+             Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
+             Iface IPaddress: 192.168.0.43
+             Iface HWaddress: <empty>
+             Iface Netdev: <empty>
+             SID: 6
+             iSCSI Connection State: LOGGED IN
+             iSCSI Session State: LOGGED_IN
+             Internal iscsid Session State: NO CHANGE
+             *********
+             Timeouts:
+             *********
+             Recovery Timeout: 120
+             Target Reset Timeout: 30
+             LUN Reset Timeout: 30
+             Abort Timeout: 15
+             *****
+             CHAP:
+             *****
+             username: <empty>
+             password: ********
+             username_in: <empty>
+             password_in: ********
+             ************************
+             Negotiated iSCSI params:
+             ************************
+             HeaderDigest: None
+             DataDigest: None
+             MaxRecvDataSegmentLength: 262144
+             MaxXmitDataSegmentLength: 1048576
+             FirstBurstLength: 262144
+             MaxBurstLength: 16776192
+             ImmediateData: Yes
+             InitialR2T: Yes
+             MaxOutstandingR2T: 1
+             ************************
+             Attached SCSI devices:
+             ************************
+             Host Number: 8	State: running
+             scsi8 Channel 00 Id 0 Lun: 0
+                 Attached scsi disk sdb		State: running
+ 
  There is no string after scsi42 Channel 00 Id 0 Lun: 0:
  
-     Attached scsi disk sdd		State: running
-     
+     Attached scsi disk sdd              State: running
+ 
  But device is really exist:
  
-     > ll /dev/disk/by-path/
+     > ll /dev/disk/by-path/
  
  Result:
  
-     lrwxrwxrwx 1 root root   9 сер 22 15:18 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-backup-2c392880-0708-4911-86ed-16dfd4ff47f6-lun-0 -> ../../sdb
-     lrwxrwxrwx 1 root root   9 сер 23 11:52 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-backup-3943a3b9-3745-4dd7-ba0e-72f25b4a417b-lun-0 -> ../../sdc
-     lrwxrwxrwx 1 root root   9 сер 23 19:02 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879-lun-0 -> ../../sdd
-     lrwxrwxrwx 1 root root   9 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
-     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
-     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
-     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part5 -> ../../sda5
-     
+     lrwxrwxrwx 1 root root   9 сер 22 15:18 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-backup-2c392880-0708-4911-86ed-16dfd4ff47f6-lun-0 -> ../../sdb
+     lrwxrwxrwx 1 root root   9 сер 23 11:52 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-backup-3943a3b9-3745-4dd7-ba0e-72f25b4a417b-lun-0 -> ../../sdc
+     lrwxrwxrwx 1 root root   9 сер 23 19:02 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879-lun-0 -> ../../sdd
+     lrwxrwxrwx 1 root root   9 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
+     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
+     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
+     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part5 -> ../../sda5
+ 
  As we can see my target/lun connected to sdd.
  
  If I make full re-login then all is ok:
  
-     > sudo iscsiadm -m node --logout
-     > ll /dev/disk/by-path/
- 
-     lrwxrwxrwx 1 root root   9 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
-     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
-     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
-     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part5 -> ../../sda5
- 
-     > sudo -s iscsiadm --mode node --portal 192.168.1.86 --targetname iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879 --login 2>&1
-     
-     Logging in to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] (multiple)
-     Login to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] successful.
+     > sudo iscsiadm -m node --logout
+     > ll /dev/disk/by-path/
+ 
+     lrwxrwxrwx 1 root root   9 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
+     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
+     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
+     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part5 -> ../../sda5
+ 
+     > sudo -s iscsiadm --mode node --portal 192.168.1.86 --targetname
+ iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879
+ --login 2>&1
+ 
+     Logging in to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] (multiple)
+     Login to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] successful.
  
  Result:
-     
-     > ll /dev/disk/by-path/
-     
-     lrwxrwxrwx 1 root root   9 сер 24 14:38 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879-lun-0 -> ../../sdb
-     lrwxrwxrwx 1 root root   9 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
-     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
-     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
-     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part5 -> ../../sda5
-     
-     > sudo -s iscsiadm -m session -P 3 2>&1
-     
-     Target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879
- 	Current Portal: 192.168.1.86:3260,1
- 	Persistent Portal: 192.168.1.86:3260,1
- 		**********
- 		Interface:
- 		**********
- 		Iface Name: default
- 		Iface Transport: tcp
- 		Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
- 		Iface IPaddress: 192.168.0.43
- 		Iface HWaddress: <empty>
- 		Iface Netdev: <empty>
- 		SID: 41
- 		iSCSI Connection State: LOGGED IN
- 		iSCSI Session State: LOGGED_IN
- 		Internal iscsid Session State: NO CHANGE
- 		*********
- 		Timeouts:
- 		*********
- 		Recovery Timeout: 120
- 		Target Reset Timeout: 30
- 		LUN Reset Timeout: 30
- 		Abort Timeout: 15
- 		*****
- 		CHAP:
- 		*****
- 		username: <empty>
- 		password: ********
- 		username_in: <empty>
- 		password_in: ********
- 		************************
- 		Negotiated iSCSI params:
- 		************************
- 		HeaderDigest: None
- 		DataDigest: None
- 		MaxRecvDataSegmentLength: 262144
- 		MaxXmitDataSegmentLength: 1048576
- 		FirstBurstLength: 262144
- 		MaxBurstLength: 16776192
- 		ImmediateData: Yes
- 		InitialR2T: Yes
- 		MaxOutstandingR2T: 1
- 		************************
- 		Attached SCSI devices:
- 		************************
- 		Host Number: 43	State: running
- 		scsi43 Channel 00 Id 0 Lun: 0
- 			Attached scsi disk sdb		State: running
+ 
+     > ll /dev/disk/by-path/
+ 
+     lrwxrwxrwx 1 root root   9 сер 24 14:38 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879-lun-0 -> ../../sdb
+     lrwxrwxrwx 1 root root   9 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
+     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
+     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
+     lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part5 -> ../../sda5
+ 
+     > sudo -s iscsiadm -m session -P 3 2>&1
+ 
+     Target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879
+  Current Portal: 192.168.1.86:3260,1
+  Persistent Portal: 192.168.1.86:3260,1
+   **********
+   Interface:
+   **********
+   Iface Name: default
+   Iface Transport: tcp
+   Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
+   Iface IPaddress: 192.168.0.43
+   Iface HWaddress: <empty>
+   Iface Netdev: <empty>
+   SID: 41
+   iSCSI Connection State: LOGGED IN
+   iSCSI Session State: LOGGED_IN
+   Internal iscsid Session State: NO CHANGE
+   *********
+   Timeouts:
+   *********
+   Recovery Timeout: 120
+   Target Reset Timeout: 30
+   LUN Reset Timeout: 30
+   Abort Timeout: 15
+   *****
+   CHAP:
+   *****
+   username: <empty>
+   password: ********
+   username_in: <empty>
+   password_in: ********
+   ************************
+   Negotiated iSCSI params:
+   ************************
+   HeaderDigest: None
+   DataDigest: None
+   MaxRecvDataSegmentLength: 262144
+   MaxXmitDataSegmentLength: 1048576
+   FirstBurstLength: 262144
+   MaxBurstLength: 16776192
+   ImmediateData: Yes
+   InitialR2T: Yes
+   MaxOutstandingR2T: 1
+   ************************
+   Attached SCSI devices:
+   ************************
+   Host Number: 43	State: running
+   scsi43 Channel 00 Id 0 Lun: 0
+    Attached scsi disk sdb		State: running
  
  After re-login the string with device name is exist:
  
-     Attached scsi disk sdb              State: running
- 
- Cross link of this on stackoverflow:
- 
-     https://stackoverflow.com/questions/45861219/iscsiadm-sometimes-
- does-not-show-attached-device-iscsiadm-m-session-but-devic
+     Attached scsi disk sdb              State: running

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to open-iscsi in Ubuntu.
https://bugs.launchpad.net/bugs/1712811

Title:
  iscsiadm sometimes does not show attached device (iscsiadm -m session)
  but device is really exist and attached

Status in open-iscsi package in Ubuntu:
  New

Bug description:
  Hi colleagues.

  I have some troubles with iscsiadm. iscsiadm sometimes creates LUN but
  does not show attached disk. My device is really exist.

  Login:

      >sudo -s iscsiadm --mode node --portal 192.168.1.86 --targetname
  iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-
  4df5-8955-d3f6ffa27879 --login 2>&1

      Logging in to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] (multiple)
      Login to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] successful.

  Check result:

      >sudo -s iscsiadm -m session -P 3 2>&1

      Target: iqn.2010-06.com.nutanix:vg-backup-3943a3b9-3745-4dd7-ba0e-72f25b4a417b
          Current Portal: 192.168.1.86:3260,1
          Persistent Portal: 192.168.1.86:3260,1
              **********
              Interface:
              **********
              Iface Name: default
              Iface Transport: tcp
              Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
              Iface IPaddress: 192.168.0.43
              Iface HWaddress: <empty>
              Iface Netdev: <empty>
              SID: 10
              iSCSI Connection State: LOGGED IN
              iSCSI Session State: LOGGED_IN
              Internal iscsid Session State: NO CHANGE
              *********
              Timeouts:
              *********
              Recovery Timeout: 120
              Target Reset Timeout: 30
              LUN Reset Timeout: 30
              Abort Timeout: 15
              *****
              CHAP:
              *****
              username: <empty>
              password: ********
              username_in: <empty>
              password_in: ********
              ************************
              Negotiated iSCSI params:
              ************************
              HeaderDigest: None
              DataDigest: None
              MaxRecvDataSegmentLength: 262144
              MaxXmitDataSegmentLength: 1048576
              FirstBurstLength: 262144
              MaxBurstLength: 16776192
              ImmediateData: Yes
              InitialR2T: Yes
              MaxOutstandingR2T: 1
              ************************
              Attached SCSI devices:
              ************************
              Host Number: 12	State: running
              scsi12 Channel 00 Id 0 Lun: 0
                  Attached scsi disk sdc		State: running
      Target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879
          Current Portal: 192.168.1.86:3260,1
          Persistent Portal: 192.168.1.86:3260,1
              **********
              Interface:
              **********
              Iface Name: default
              Iface Transport: tcp
              Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
              Iface IPaddress: 192.168.0.43
              Iface HWaddress: <empty>
              Iface Netdev: <empty>
              SID: 40
              iSCSI Connection State: LOGGED IN
              iSCSI Session State: LOGGED_IN
              Internal iscsid Session State: NO CHANGE
              *********
              Timeouts:
              *********
              Recovery Timeout: 120
              Target Reset Timeout: 30
              LUN Reset Timeout: 30
              Abort Timeout: 15
              *****
              CHAP:
              *****
              username: <empty>
              password: ********
              username_in: <empty>
              password_in: ********
              ************************
              Negotiated iSCSI params:
              ************************
              HeaderDigest: None
              DataDigest: None
              MaxRecvDataSegmentLength: 262144
              MaxXmitDataSegmentLength: 1048576
              FirstBurstLength: 262144
              MaxBurstLength: 16776192
              ImmediateData: Yes
              InitialR2T: Yes
              MaxOutstandingR2T: 1
              ************************
              Attached SCSI devices:
              ************************
              Host Number: 42	State: running
              scsi42 Channel 00 Id 0 Lun: 0
      Target: iqn.2010-06.com.nutanix:vg-backup-2c392880-0708-4911-86ed-16dfd4ff47f6
          Current Portal: 192.168.1.86:3260,1
          Persistent Portal: 192.168.1.86:3260,1
              **********
              Interface:
              **********
              Iface Name: default
              Iface Transport: tcp
              Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
              Iface IPaddress: 192.168.0.43
              Iface HWaddress: <empty>
              Iface Netdev: <empty>
              SID: 6
              iSCSI Connection State: LOGGED IN
              iSCSI Session State: LOGGED_IN
              Internal iscsid Session State: NO CHANGE
              *********
              Timeouts:
              *********
              Recovery Timeout: 120
              Target Reset Timeout: 30
              LUN Reset Timeout: 30
              Abort Timeout: 15
              *****
              CHAP:
              *****
              username: <empty>
              password: ********
              username_in: <empty>
              password_in: ********
              ************************
              Negotiated iSCSI params:
              ************************
              HeaderDigest: None
              DataDigest: None
              MaxRecvDataSegmentLength: 262144
              MaxXmitDataSegmentLength: 1048576
              FirstBurstLength: 262144
              MaxBurstLength: 16776192
              ImmediateData: Yes
              InitialR2T: Yes
              MaxOutstandingR2T: 1
              ************************
              Attached SCSI devices:
              ************************
              Host Number: 8	State: running
              scsi8 Channel 00 Id 0 Lun: 0
                  Attached scsi disk sdb		State: running

  There is no string after scsi42 Channel 00 Id 0 Lun: 0:

      Attached scsi disk sdd              State: running

  But device is really exist:

      > ll /dev/disk/by-path/

  Result:

      lrwxrwxrwx 1 root root   9 сер 22 15:18 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-backup-2c392880-0708-4911-86ed-16dfd4ff47f6-lun-0 -> ../../sdb
      lrwxrwxrwx 1 root root   9 сер 23 11:52 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-backup-3943a3b9-3745-4dd7-ba0e-72f25b4a417b-lun-0 -> ../../sdc
      lrwxrwxrwx 1 root root   9 сер 23 19:02 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879-lun-0 -> ../../sdd
      lrwxrwxrwx 1 root root   9 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
      lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
      lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
      lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part5 -> ../../sda5

  As we can see my target/lun connected to sdd.

  If I make full re-login then all is ok:

      > sudo iscsiadm -m node --logout
      > ll /dev/disk/by-path/

      lrwxrwxrwx 1 root root   9 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
      lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
      lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
      lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part5 -> ../../sda5

      > sudo -s iscsiadm --mode node --portal 192.168.1.86 --targetname
  iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-
  4df5-8955-d3f6ffa27879 --login 2>&1

      Logging in to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] (multiple)
      Login to [iface: default, target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879, portal: 192.168.1.86,3260] successful.

  Result:

      > ll /dev/disk/by-path/

      lrwxrwxrwx 1 root root   9 сер 24 14:38 ip-192.168.1.86:3260-iscsi-iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879-lun-0 -> ../../sdb
      lrwxrwxrwx 1 root root   9 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda
      lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1
      lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2
      lrwxrwxrwx 1 root root  10 сер 22 14:17 pci-0000:00:10.0-scsi-0:0:0:0-part5 -> ../../sda5

      > sudo -s iscsiadm -m session -P 3 2>&1

      Target: iqn.2010-06.com.nutanix:vg-restore-99079f45-f62d-4df5-8955-d3f6ffa27879
   Current Portal: 192.168.1.86:3260,1
   Persistent Portal: 192.168.1.86:3260,1
    **********
    Interface:
    **********
    Iface Name: default
    Iface Transport: tcp
    Iface Initiatorname: iqn.1993-08.org.debian:01:5bb3c3d5f39
    Iface IPaddress: 192.168.0.43
    Iface HWaddress: <empty>
    Iface Netdev: <empty>
    SID: 41
    iSCSI Connection State: LOGGED IN
    iSCSI Session State: LOGGED_IN
    Internal iscsid Session State: NO CHANGE
    *********
    Timeouts:
    *********
    Recovery Timeout: 120
    Target Reset Timeout: 30
    LUN Reset Timeout: 30
    Abort Timeout: 15
    *****
    CHAP:
    *****
    username: <empty>
    password: ********
    username_in: <empty>
    password_in: ********
    ************************
    Negotiated iSCSI params:
    ************************
    HeaderDigest: None
    DataDigest: None
    MaxRecvDataSegmentLength: 262144
    MaxXmitDataSegmentLength: 1048576
    FirstBurstLength: 262144
    MaxBurstLength: 16776192
    ImmediateData: Yes
    InitialR2T: Yes
    MaxOutstandingR2T: 1
    ************************
    Attached SCSI devices:
    ************************
    Host Number: 43	State: running
    scsi43 Channel 00 Id 0 Lun: 0
     Attached scsi disk sdb		State: running

  After re-login the string with device name is exist:

      Attached scsi disk sdb              State: running

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1712811/+subscriptions



More information about the foundations-bugs mailing list