Linux Scroll

Just another WordPress.com site

ioscan

ioscan – scan I/O system

/usr/sbin/ioscan [-k|-u] [-e] [-d driver|-C class] [-I instance]

[-H hw_path] [-f[-n]|-F[-n]] [devfile]

/usr/sbin/ioscan -M driver -H hw_path [-I instance]

/usr/sbin/ioscan -t

Scan for disk:

$ ioscan -funC disk

Class I H/W Path Driver S/W State H/W Type Description

====================================================================

disk 0 0/1/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP

/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2

/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3

disk 1 0/1/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP

/dev/dsk/c0t1d0 /dev/dsk/c0t1d0s2 /dev/rdsk/c0t1d0 /dev/rdsk/c0t1d0s2

/dev/dsk/c0t1d0s1 /dev/dsk/c0t1d0s3 /dev/rdsk/c0t1d0s1 /dev/rdsk/c0t1d0s3

Scan for fibre channel adapters:

$ ioscan -funC fc

-f Generate a full listing, displaying the
module's class, instance number, hardware path,
driver, software state, hardware type, and a
brief description.

-u Scan and list usable I/O system devices instead
of the actual hardware. Usable I/O devices are
those having a driver in the kernel and an
assigned instance number. The -d, -C, -I, and
-H options can be used to restrict listings.
The -u option cannot be used with -k.

-n List device file names in the output. Only
special files in the /dev directory and its
subdirectories are listed.

-C class Restrict the output listing to those devices
belonging to the specified class. Cannot be
used with -d.

Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
fc 0 0/0/2/1/0/4/0 fcd CLAIMED INTERFACE HP PCI/PCI-X Fibre Channel 2-port 4Gb FC/2-port 1000B-T Combo Adapter (FC Port 1)
/dev/fcd0

fc 1 0/0/2/1/0/4/1 fcd CLAIMED INTERFACE HP PCI/PCI-X Fibre Channel 2-port 4Gb FC/2-port 1000B-T Combo Adapter (FC Port 2)
/dev/fcd1

fc 2 0/0/8/1/0/4/0 fcd CLAIMED INTERFACE HP PCI/PCI-X Fibre Channel 2-port 4Gb FC/2-port 1000B-T Combo Adapter (FC Port 1)
/dev/fcd2

fc 3 0/0/8/1/0/4/1 fcd CLAIMED INTERFACE HP PCI/PCI-X Fibre Channel 2-port 4Gb FC/2-port 1000B-T Combo Adapter (FC Port 2)
/dev/fcd3

S/W State:

CLAIMED        software bound successfully

UNCLAIMED no associated software found
DIFF_HW software found does not match theassociated software
NO_HW the hardware at this address is nolonger responding
ERROR the hardware at this address isresponding but is in an error state
SCAN node locked, try again later

Scan for disks attach to /dev/fcd0:

$ ioscan -fnH 0/0/2/1/0/4/0 

$ ioscan -fn | grep 0/0/2/1/0/4/0
-H hw_path Restrict the scan and output listing to those
devices connected at the specified hardware
path. The hardware path must be a bus path.
Scanning below the bus level will not probe the
hardware and may produce incorrect results.
For example, specifying the path at the target
level will always change the state of the
device attached to it as NO_HW. The state of
the device may be restored by retrying ioscan
from a bus node above the NO_HW node. When
used with -M, this option specifies the full
hardware path at which to bind the software
modules.

Class I H/W Path Driver S/W State H/W Type Description

==========================================================================
fc 0 0/0/2/1/0/4/0 fcd CLAIMED INTERFACE HP PCI/PCI-X Fibre Channel 2-port 4Gb FC/2-port 1000B-T Combo Adapter (FC Port 1)

/dev/fcd0


No disk connected to fcd0. ok

fcmsutil — Fibre Channel Mass Storage Utility Command
The fcmsutil command is a diagnostic tool to be used for Fibre Channel Adapters.

#/opt/fcms/bin/fcmsutil /dev/fcd0

# autopath display
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: