scn(1M)
NAME
scn − scan an HP SCSI disk array LUN for parity consistency
SYNOPSIS
scn -i number_of_initiators device_file
DESCRIPTION
scn scans the disks of the LUN in an HP SCSI disk array identified by the character device file device_file. The parity information for any block reporting inconsistent parity is corrected by an immediate call to rpr.
RETURN VALUE
scn returns the following values:
0 Successful completion.
-1 Command failed (an error occurred).
DIAGNOSTICS AND ERRORS
Errors can originate from problems with:
• scn
• SCSI (device level) communications
• system calls
Error messages generated by scn:
usage: scn -i <num initiators> <special>
scn encountered an error in command syntax. Enter the command again with all required arguments, in the order shown.
scn: LUN # too big
The LUN number, derived from the device file name, is out of range.
scn: Not a raw file
Utilities must be able to open the device file for raw access. That is, you must specify a character device file rather than a block device file.
scn: LUN does not exist
The addressed LUN is not configured, and is not known to the array controller.
scn: Not an HP SCSI disk array
The device being addressed is not an HP SCSI disk array.
SCSI (device level) communication errors:
Sense data associated with the failed operation is printed.
Error messages generated by system calls:
scn uses the following system calls:
malloc(), free(), stat(), open(), close(), fopen(), fclose(), read(), write(), and ioctl().
Documentation for these HP-UX system calls contains information about the specific error conditions associated with each call. scn does not alter the value of errno. The interpretation of errno for printing purposes is performed by the system utility strerror().
EXAMPLES
To scan the LUN at /dev/rdsk/c2t0d0 on a Series 800 computer with two hosts (initiators) attached:
scn -i 2 /dev/rdsk/c2t0d0
DEPENDENCIES
The HP C2425 and HP C2427 disk arrays are only supported on Series 700 systems running HP-UX version 9.0X.
The HP C2430 disk array is supported on Series 700 and 800 systems running HP-UX versions 9.0X and 10.0X.
AUTHOR
scn was developed by HP.
SEE ALSO
Hewlett-Packard Company — HP-UX Release 10.20: July 1996