0% found this document useful (0 votes)
97 views1 page

Configure The iSCSI in Linux

The document discusses configuring an iSCSI initiator service on a Linux system to automatically connect to iSCSI storage targets on boot. It involves starting the iscsid service, enabling it to start at boot, discovering available targets on the network storage server, manually logging into the targets, and configuring automatic login of the targets on boot.

Uploaded by

gkiran_ch
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views1 page

Configure The iSCSI in Linux

The document discusses configuring an iSCSI initiator service on a Linux system to automatically connect to iSCSI storage targets on boot. It involves starting the iscsid service, enabling it to start at boot, discovering available targets on the network storage server, manually logging into the targets, and configuring automatic login of the targets on boot.

Uploaded by

gkiran_ch
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Configure the iSCSI (Initiator) Service After verifying that the iscsi-initiator-utils package is installed, start the iscsid

service and enable it to automatically start when the system boots. I will also configure the iscsi service to automatically start which logs into iSCSI targets needed at system start up.

[root@linux3 ~]# service iscsid start Turning off network shutdown. Starting iSCSI daemon: [ [ OK ] [root@linux3 ~]# chkconfig iscsid on [root@linux3 ~]# chkconfig iscsi on

OK

Now that the iSCSI service is started, use the iscsiadm command-line interface to discover all available targets on the network storage server:

[root@linux3 ~]# iscsiadm -m discovery -t sendtargets -p openfiler1-san [Link]:3260,1 [Link]:scsi.linux3-data-1 Manually Login to iSCSI Target(s) At this point the iSCSI initiator service has been started and the client node was able to discover the available target(s) from the network storage server. The next step is to manually login to the available target(s) which can be done using the iscsiadm command-line interface. Note that I had to specify the IP address and not the host name of the network storage server (openfiler1-san) - I believe this is required given the discovery (above) shows the targets using the IP address. [root@linux3 ~]# iscsiadm -m node -T [Link]:scsi.linux3data-1 -p [Link] --login Logging in to [iface: default, target: [Link]:scsi.linux3data-1, portal: [Link],3260] Login to [iface: default, target: [Link]:scsi.linux3-data1, portal: [Link],3260]: successful Configure Automatic Login The next step is to make certain the client will automatically login to the target(s) listed above when the machine is booted (or the iSCSI initiator service is started/restarted): [root@linux3 ~]# iscsiadm -m node -T [Link]:scsi.linux3data-1 -p [Link] --op update -n [Link] -v automatic

You might also like