Iscsi discovery configuration and saving of nodes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.