Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 8 Internal Port SAS Controller and HP Multi-Port Internal SAS Controller Support Guide: HP-UX 11i v2, 11i v3 > Chapter 4 Configuring and Troubleshooting the Controller Online

Troubleshooting sasd

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Troubleshooting sasd requires the use of the following two utilities:

  • ioscan

  • sasmgr

The ioscan Utility

By default, ioscan scans the system and lists all reportable hardware found. The types of hardware reported include processors, memory, interface cards and I/O devices. For HP-UX 11i v2, the ioscan command syntax is as follows:

SYNTAX

/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

For HP-UX 11i v3, the ioscan command syntax is as follows:

SYNTAX

/usr/sbin/ioscan [-N] [-k|-u] [-e] [-d driver | -C class] [-I instance] 
[-H hw_path] [ -f[-n] | -F[-n] ] [devfile]

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

/usr/sbin/ioscan -t

/usr/sbin/ioscan -P property [-d driver | -C class] [-I instance] 
[-H hw_path] [devfile]

/usr/sbin/ioscan -m lun [-F] [-d driver | -C class] [-I instance] 
[-H lun hw_path] [devfile]

/usr/sbin/ioscan [-F] -m dsf [devfile]

/usr/sbin/ioscan -m hwpath [-F] [-H hw_path]

/usr/sbin/ioscan -s

/usr/sbin/ioscan -r -H hw_path

/usr/sbin/ioscan -B

/usr/sbin/ioscan -U

/usr/sbin/ioscan -a [-F]

For a complete explanation of ioscan command line options and parameters for the version of HP-UX that you are using, see the ioscan(1M) manpage.

Displaying Interface and Disk Information

The following example will display information about interface cards which use the sasd driver:

# ioscan -fnkd sasd
Class        I  H/W Path  Driver S/W State   H/W Type     Description
====================================================================
escsi_ctlr   0  0/4/1/0   sasd CLAIMED     INTERFACE    HP  PCI/PCI-X SAS MPT Adapter
                         /dev/sasd0

The following example will display information about disk devices:

# ioscan -fnkC disk
Class        I  H/W Path        Driver         S/W State   H/W Type     Descript
ion
====================================================================================
disk         0  0/0/2/1.0.16.0.0  sdisk          CLAIMED     DEVICE       TEAC    DV-28E-N
                               /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk         3  0/4/1/0.0.0.2.0   sdisk          CLAIMED     DEVICE       HP      DG072A9BB7
                               /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0
disk         4  0/4/1/0.0.0.3.0   sdisk          CLAIMED     DEVICE       HP      DG072A9BB7
                               /dev/dsk/c1t3d0   /dev/rdsk/c1t3d0
disk         5  0/4/1/0.0.0.4.0   sdisk          CLAIMED     DEVICE       HP      DG036A8B5B
                               /dev/dsk/c1t4d0   /dev/rdsk/c1t4d0
disk         8  0/4/1/0.0.0.7.0   sdisk          CLAIMED     DEVICE       HP      DG036A9BB6
                               /dev/dsk/c1t7d0     /dev/rdsk/c1t7d0  
                               /dev/dsk/c1t7d0s1   /dev/rdsk/c1t7d0s1
                               /dev/dsk/c1t7d0s2   /dev/rdsk/c1t7d0s2
                               /dev/dsk/c1t7d0s3   /dev/rdsk/c1t7d0s3
disk        11  0/4/1/0.0.0.10.0  sdisk          CLAIMED     DEVICE       HP      IR Volume
                               /dev/dsk/c1t10d0   /dev/rdsk/c1t10d0

For each hardware module on the system, ioscan displays by default the hardware path to the hardware module, the class of the hardware module, and a brief description. If the device is connected, but not found, then it is in a “no hardware” state. If the device is in a no hardware state, use sasmgr to further check the state of the I/O card; see “Displaying General Statistics and Information”.

The sasmgr Utility

You can use the sasmgr utility to manage HP-UX Serial Attached SCSI (SAS) mass storage core I/O controllers. The sasmgr command syntax is as follows:

SYNTAX

      Path:  /opt/sas/bin

      sasmgr [-h][-f] add -D device_file -q raid -q level=raid_level -q
         enc_bay=enc:bay[,enc:bay] [-q size=size] [-q rebuild_rate=rate]

      sasmgr [-h][-f] add -D device_file -q raid -q spare -q enc_bay=enc:bay

      sasmgr [-h][-f] bdr -D device_file -q lun={all | lun_dsf}

      sasmgr [-h] clear_stat -D device_file

      sasmgr [-h] clear_stat -D device_file -q all

      sasmgr [-h] clear_stat -D device_file -q phy={all | phy_id}

      sasmgr [-h] clear_stat -D device_file -q phy_in_port={all | phy_id}

      sasmgr [-h] clear_stat -D device_file -q target={all | sasaddr}

      sasmgr [-h][-f] delete -D device_file -q raid -q raid_vol={rvol_id |
         all}

      sasmgr [-h][-f] delete -D device_file -q raid -q spare

      sasmgr [-h][-f] disable -D device_file

      sasmgr [-h][-f] download -D device_file -q downloadfile=filename -q
         enc_bay=enc:bay

      sasmgr [-h] enable -D device_file

      sasmgr [-h] get_info -D device_file

      sasmgr [-h] get_info -D device_file -q lun={all | lun_dsf}

      sasmgr [-h][-N] get_info -D device_file -q lun=all

      sasmgr [-h][-v] get_info -D device_file -q lun={all | lun_dsf} -q
         lun_locate

      sasmgr [-h][-v][-N] get_info -D device_file -q lun=all -q lun_locate

      sasmgr [-h] get_info -D device_file -q pci_id

      sasmgr [-h] get_info -D device_file -q phy={all | phy_id}

      sasmgr [-h] get_info -D device_file -q phy_in_port={all | phy_id}

      sasmgr [-h][-N] get_info -D device_file -q raid

      sasmgr [-h] get_info -D device_file -q reg={all | offset} [-q
         reg_type={ pci_config | mmio }]

      sasmgr [-h] get_info -D device_file -q smp=file_name

      sasmgr [-h] get_info -D device_file -q smp_addr

      sasmgr [-h] get_info -D device_file -q target={all | sasaddr}

      sasmgr [-h] get_info -D device_file -q vpd

      sasmgr [-h] get_stat -D device_file

      sasmgr [-h] get_stat -D device_file -q phy={all | phy_id}

      sasmgr [-h] get_stat -D device_file -q phy_in_port={all | phy_id}

      sasmgr [-h] get_stat -D device_file -q target={all | sasaddr}

      sasmgr [-h][-f] replace_tgt -D device_file -q old_dev=lun_dsf -q
         new_tgt_hwpath=new_hw_path

      sasmgr [-h][-f] reset -D device_file

      sasmgr [-h] set_attr -D device_file -q lun=lun_dsf -q locate_led={on |
         off}

      sasmgr [-h][-f] set_attr -D device_file -q raid -q raid_vol=rvol_id -q
         state=vol_state

      sasmgr [-h][-f] set_attr -D device_file -q raid -q raid_vol=rvol_id -q
         rebuild_rate=rebuild_rate

A -N option has been added to the sasmgr utility for HP-UX 11i v3. For example:

     sasmgr -N get_info -D /dev/sasd0 -q raid

When this option is specified for some commands, it enables you to specify the persistent device file as input to a qualifier. For some commands, when this option is specified, the output will display persistent device file information.

If the -N option is not specified, sasmgr will accept and display only legacy device file information. This provides backward compatibility with previous versions of HP-UX. For more information on persistent device files in HP-UX 11i v3, see the intro(7) manpage.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.