HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)

s
scn(1M) 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 argu-
ments, 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 dev-
ice 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 associ-
ated 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.
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1M811