System information
Examp le 25.17. Fu ll i scsi ad m co mman d
Using our previous example (where proper_target_name is eq ual l o g i c-i scsi 1), the full
command would be:
# iscsiadm --mode node --targetname \ iqn.2001-05.com.equallogic:6-
8a0900-ac3fe0101-63aff113e344a4a2-dl585-03-1 \ --portal
10.16.41.155:3260,0 --login
[10]
25.13. Logging in t o an iSCSI T arget
As mentioned in Section 25.2, “iSCSI” , the iSCSI service must be running in order to discover or log
into targets. To start the iSCSI service, run:
# service iscsi start
When this command is executed, the iSCSI i ni t scripts will automatically log into targets where the
no d e. startup setting is configured as auto mati c. This is the default value of no d e. startup for
all targets.
To prevent automatic login to a target, set no d e. startup to manual . To do this, run the following
command:
# iscsiadm -m node --targetname proper_target_name -p target_IP:port -o
update -n node.startup -v manual
Deleting the entire record will also prevent automatic login. To do this, run:
# iscsiadm -m node --targetname proper_target_name -p target_IP:port -o
delete
To automatically mount a file system from an iSCSI device on the network, add a partition entry for
the mount in /etc/fstab with the _netd ev option. For example, to automatically mount the iSCSI
device sd b to /mo unt/i scsi during startup, add the following line to /etc/fstab:
/dev/sdb /mnt/iscsi ext3 _netdev 0 0
To manually log in to an iSCSI target, use the following command:
# iscsiadm -m node --targetname proper_target_name -p target_IP:port -l
Note
The proper_target_name and target_IP:port refer to the full name and IP address/port
combination of a target. For more information, refer to Section 25.2.1, “ iSCSI API” and
Section 25.12, “Scanning iSCSI Interconnects” .
25.14 . Resizing an Online Logical Unit
Chapt er 2 5. O nline St orag e Manag ement
189