IBM iSCSI Client for Linux Installation and Configuration Instructions
Each iSCSI client maintains configuration information concerning the
various targets it may access. In Linux, this configuration information
is kept in a configuration file called /etc/iscsiclient.conf.
The targets are configured by editing the /etc/iscsiclient.conf
file. Each line in the file defines a single target. You may
specify a maximum of 16 targets. You can also add comments to the file
by preceding it with a number sign (#).
To add a target to your iSCSI client:
- Edit the /etc/iscsiclient.conf file using an ASCII editor.
- Add a new line to the configuration file for each new target using the
following syntax:
target=host portNumber numberOfConnections Initiator:userID,password
where:
- host
- The IP address of the target (for example,
111.222.333.444).
- portNumber
- The port number of the target. This value must be set to
47274.
- numberOfConnections
- The maximum number of open sockets to this target. This value must
be set to 1.
- userID
- A login parameter that specifies the user ID of the iSCSI client.
This ID is assigned to you by the system administrator.
- password
- A login parameter that specifies the password associated with your user
ID. This password is also assigned to you by the system
administrator.
For example:
target=192.45.31.14 47274 1 Initiator:Shuri_20,pwd
- Save and close the configuration file.
- Unmount all iSCSI drives that are currently mounted.
- Type ./iscsi.sh restart and press
Enter to establish the connection to the new target.
- Remount the iSCSI drives.
Note: | All disks associated with the target will not be available after removing
the target.
|
To remove a target from your iSCSI client:
- Unmount the file systems on the target you want to delete.
- Edit the /etc/iscsiclient.conf file using an ASCII editor.
- Delete or comment out one or more target configurations.
- Save and close the configuration file.
- Unmount all iSCSI drives that are currently mounted.
- Type ./iscsi.sh restart and press
Enter to terminate the connection to the removed target.
- Remount the iSCSI drives.
To verify the syntax of the configuration file, type the following
command from a command line and press Enter:
iscsi_check_config /etc/iscsiclient.conf
[ Top of Page | Previous Page | Next Page | Table of Contents ]