20
Figure 39 Configuring the local IP address
2.
Execute the
cat
initiatorname
.
iscsi
command in the
/etc/iscsi
directory to view the
IQN of the local iSCSI initiator. If no IQN is specified, use the
vi
command to specify one
manually.
Figure 40 Configuring the name of the local iSCSI initiator
3.
Execute the
iscsiadm
-m -discovery -t st -p
target
-
ip
command to probe the
IQN of the iSCSI target (peer iSCSI storage device). The
target
-
ip
argument represents the
IP address of the peer iSCSI storage device.
Figure 41 Probing the IQN of the iSCSI target
4.
Execute the
iscsiadm
-m node -T
iqn
-
name
-p
target
-
ip
-l
command to connect
the iSCSI target. The
iqn
-
name
argument represents the IQN of the iSCSI target. The
target
-
ip
argument represents the IP address of the iSCSI target.
Figure 42 Connecting the iSCSI target
NOTE:
•
To disconnect the iSCSI target, execute the
iscsiadm
-m node -T
iqn-name
-p
target-ip
-u
command.
•
To delete the iSCSI target node information, execute the
iscsiadm -m node -o delete
-T
iqn-name
-p
target-ip
command.
5.
Execute the
lsblk
command to view the newly-added network disks.
Before viewing the newly-added network disks, make sure related configuration has been
finished on the network storage device.