Scenario: On Suse, the device discovery results are recorded in the/etc/iSCSI/node, which is effective upon startup and restart. In the RedHat system, the node found by the device is recorded in/var/lib/iSCSI/nodes. This file is created by the iSCSI initor program and can be found in/etc/init. d/iscsid service, view the START process, use this file.
From: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Online_Storage_Reconfiguration_Guide/iscsiconfig.html
The default iSCSI configuration file is/etc/iSCSI/iscsid. conf. This file contains
Iscsi configuration provided to iscsid and iscsiadm commands
During device discovery, the iscsiadm tool uses the/etc/iSCSI/iscsid. conf file.
To create two types of records.
Node records in the/var/lib/iSCSI/nodes directory
When logging on to a device, iscsiadm uses the configuration in this file
Found records in/var/lib/iSCSI/discovery_type
When the same device is found, iscsiam uses the configuration of this file
When using different configurations, you must first Delete the current discovery record (
/Var/lib/iSCSI/discovery_type) use the following command:
Iscsiadm-M discovery-T discovery_type-P target_ip: Port-O Delete [1]
Here discovery_type can be
Sendtargets, isns, or FW
There are two methods to reconfigure the record configuration of the device.
1) directly edit the/etc/iSCSI/iscsid. conf file and execute the "Discover" command:
Iscsiadm-M discovery-T discovery_type-P target_ip: Port
2) directly change the iscsiadm device discovery record Configuration:
Iscsiadm-M discovery-T discovery_type-P target_ip: Port-o Update-N setting-V % value
Refer to man iscsiadm for more valid information,
Iscsi discovery configuration and saving of nodes