Comment 21 for bug 1877617

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

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.