Just tested SRU and it works fine. By setting:

# To prevent doing automatic scans that would add unwanted luns to the system
# we can disable them and have sessions only do manually requested scans.
# Automatic scans are performed on startup, on login, and on AEN/AER reception
# on devices supporting it.  For HW drivers all sessions will use the value
# defined in the configuration file.  This configuration option is independent
# of scsi_mod scan parameter. (The default behavior is auto):
node.session.scan = manual

to /etc/iscsi/iscsid.conf files BEFORE the discovery happens

OR by making sure to have:

(k)rafaeldtinoco@clusterg02:~/scripts$ sudo iscsiadm -m session -o show
tcp: [1] 10.250.94.10:3260,1 
iqn.2003-01.org.linux-iscsi.storage.x8664:sn.0f3632993d26 (non-flash)
tcp: [2] 10.250.94.10:3260,1 
iqn.2003-01.org.linux-iscsi.storage.x8664:sn.0f3632993d26 (non-flash)
tcp: [3] 10.250.93.10:3260,1 
iqn.2003-01.org.linux-iscsi.storage.x8664:sn.0f3632993d26 (non-flash)
tcp: [4] 10.250.93.10:3260,1 
iqn.2003-01.org.linux-iscsi.storage.x8664:sn.0f3632993d26 (non-flash)

(k)rafaeldtinoco@clusterg02:~/scripts$ sudo iscsiadm -m node -o show | grep scan
node.session.scan = manual
node.session.scan = manual
node.session.scan = manual
node.session.scan = manual

node.session.scan set to manual in all configured sessions...

Scan won't happen automatically.. but if you change it to "auto", then:

(k)rafaeldtinoco@clusterg01:~$ ls -1 /dev/sd*
/dev/sda
/dev/sdb
/dev/sdc
/dev/sdd
/dev/sde
/dev/sdf
/dev/sdg
/dev/sdh
/dev/sdi
/dev/sdj
/dev/sdk
/dev/sdl
/dev/sdm
/dev/sdn
/dev/sdo
/dev/sdp
/dev/sdq
/dev/sdr
/dev/sds
/dev/sdt

all luns are scanned by default.

** Tags removed: block-proposed-focal block-proposed-groovy verification-needed 
verification-needed-bionic verification-needed-eoan verification-needed-focal
** Tags added: verification-done verification-done-bionic 
verification-done-eoan verification-done-focal

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

Title:
  Automatic scans cause instability for cloud use cases

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to