Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1518367 - Boot from iSCSI not establishing all sessions persistently
Summary: Boot from iSCSI not establishing all sessions persistently
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: iscsi-initiator-utils
Version: 7.4
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Chris Leech
QA Contact: Filip Suba
Depends On:
TreeView+ depends on / blocked
Reported: 2017-11-28 18:09 UTC by John Pittman
Modified: 2019-03-26 12:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

Description John Pittman 2017-11-28 18:09:25 UTC
Description of problem:

When using a boot from iSCSI system, increasing nr_sessions to duplicate paths, not all sessions are being established at boot.

Version-Release number of selected component (if applicable):


How reproducible:

Install system with 2 paths, configuring multipath.

[root@db006-finaltest ~]# iscsiadm -m session -P0
tcp: [1],1040 (non-flash)
tcp: [2],1039 (non-flash)

[root@db006-finaltest ~]# multipath -ll
3600a09803830416b735d4b6656774245 dm-0 NETAPP  ,LUN C-Mode
size=125G features='4 queue_if_no_path pg_init_retries 50 retain_attached_hw_handle' hwhandler='1 alua' wp=rw
`-+- policy='service-time 0' prio=50 status=active
  |- 1:0:0:0 sda 8:0  active ready running
  `- 2:0:0:0 sdb 8:16 active ready running

Post-install, create static interfaces, and login through those interfaces.  Additionally, increase nr_sessions to 2.  This should translate to 8 paths, but with the paths coming in through the default iface, it ends up being 10.

# iscsiadm -m iface -I ibft0-iscsi -o new
# iscsiadm -m iface -I ibft1-iscsi -o new

# iscsiadm -m iface -I ibft0-iscsi -o update -n iface.hwaddress -v  00:25:b5:00:00:34
# iscsiadm -m iface -I ibft1-iscsi -o update -n iface.hwaddress -v  00:25:b5:00:00:35

# iscsiadm -m discovery -t st -p -I ibft0-iscsi --login
# iscsiadm -m discovery -t st -p -I ibft0-iscsi --login
# iscsiadm -m discovery -t st -p -I ibft1-iscsi --login
# iscsiadm -m discovery -t st -p -I ibft1-iscsi --login

Sessions before boot:

[root@db006-finaltest ~]# iscsiadm -m session
tcp: [1],1040 (non-flash)
tcp: [10],1040 (non-flash)
tcp: [2],1039 (non-flash)
tcp: [3],1039 (non-flash)
tcp: [4],1039 (non-flash)
tcp: [5],1040 (non-flash)
tcp: [6],1040 (non-flash)
tcp: [7],1039 (non-flash)
tcp: [8],1039 (non-flash)
tcp: [9],1040 (non-flash)

Sessions after boot:

root@db006-test ~]# iscsiadm -m session
tcp: [1],1040 (non-flash)
tcp: [2],1039 (non-flash)
tcp: [3],1039 (non-flash)
tcp: [4],1039 (non-flash)
tcp: [5],1039 (non-flash)

Actual results:

Many missing sessions at reboot.

Expected results:

All sessions should be present after reboot.

Note You need to log in before you can comment on or make changes to this bug.