This section describes various error conditions that can occur while
using the iSCSI client and its command-line tools.
Symptom
| Recommended actions
|
The device /dev/iscsi does not open.
|
- Verify that you have root permission (su root).
- Verify that the device exists by typing ls -l /dev/iscsi
and pressing Enter. A list of devices is displayed.
If you do not see the device in the list, create it by typing mknod
/dev/iscsi c 196 0 and pressing Enter.
- Verify that the iSCSI client was loaded successfully by typing
lsmod and pressing Enter.
|
Adding a target failed.
|
- Verify your configuration by typing iscsi_check_config
/etc/iscsiclient.conf and pressing Enter.
- Verify the network connection with the target by typing the following
command and pressing Enter:
ping targetHostName
where targetHostName is the host name or IP address of the
target.
- Verify that the target running and operating correctly using the
Administrative Console by clicking Storage -->
Virtualization and verifying that the correct VLUNs are listed.
If the VLUNs are not listed, view the debug messages from the Service and
Recovery Console:
- Connect to the target through the serial port.
- Type iscsi and press Enter.
- Type dmesg and press Enter.
- Verify that the IP address and log-in parameters for the target are
properly specified in the /etc/iscsiclient.conf file.
|
Removing a target failed, and the message Disks are used or
busy is displayed.
|
- Verify that all disks associated with the target that you are attempting
to remove are unmounted.
- Verify that there are no applications (such as mkfs or fdisk) that are
using the disks on the target .
|
Unresolved symbols are encountered.
|
- Verify that the iSCSI client code matches the version of the Linux kernel
source. If it does not, recompile the iSCSI client code for the correct
version of Linux.
- Verify that /usr/scr/linux points to the current Linux kernel source
tree.
- Verify that Linux has built-in SCSI support.
- Verify that the VLUNs are configured properly in the target.
- Verify that the VLUNs are assigned properly in your login.
|
The iSCSI client driver does not load or unload, and the message
Device or resource busy is displayed.
|
- Verify that the iSCSI client is loaded by typing lsmod and
pressing Enter.
- Verify that the /etc/iscsiclient.conf file exists.
- Verify that all file systems using the disks are unmounted.
|
fdisk gives incorrect sizes for large disks (for example, larger than 500
GB).
| Upgrade your util-linux code to version 2.10m or later. You
can obtain the latest util-linux code from the Web at
www.kernel.org.
|
You receive a SCSI disk error or a SCSI disk I/O error.
| The connection to the target has been lost. To reconnect to the
target:
- Unmount all iSCSI drives currently connected to the failed target (for
example, unmount /dev/sda1 /mnt).
- Type the following command and press
Enter:
echo "scsi remove-single-device host channel ID LUN"
> /proc/scsi/scsi
The variables host, channel, ID, and LUN can be determined by
typing cat /proc/scsi/scsi and pressing Enter.
- Determine and fix the connection problem (for example, reattach the cable
or fix the network problem).
- Type the following command and press Enter:
echo "scsi add-single-device host channel ID LUN" > /proc/scsi/scsi
The variables host, channel, ID, and LUN are the same as those
used in step 2.
- Run fsck on the lost disk (for example, fsck
/dev/sda1).
- Remount the drive (for example, mount /dev/sda /mnt).
|