HP-UX Reference (11i v1 00/12) - 1M System Administration Commands N-Z (vol 4)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/naaagt.1m
________________________________________________________________
___ ___
s
spd(1M) spd(1M)
NAME
spd - set physical drive parameters on an HP SCSI disk array
SYNOPSIS
spd [-a][-c][-d][-f][-r][-x][-M] drive device_file
DESCRIPTION
spd changes the status of a drive on an HP SCSI disk array associated with device file device_file.
Options
-a Add drive. Adds a drive to the set of drives known by the controller.
-c Clear the warning, or "failed disk" error status. Parity checking via scn must be
performed immediately following this operation. See WARNING.
-d Delete drive. Deletes a drive from the set of drives known by the controller.
-f Fail drive. Marks the drive as failed, and may place the LUN(s) residing on it in a
dead or degraded state, depending on RAID level, and the presence of other failed
drives in the LUN.
-r Replace drive. Marks the drive as replaced, which instructs the controller to start
reconstructing the LUN(s) associated with this replaced drive.
-x Replace and format drive. Marks a drive as replaced, and instructs the controller to
physically format the drive before startingLUN reconstruction.
-M Force the selected option. By altering the state of individual disk mechanisms con-
tained within a disk array, the state of configured LUN devices may also be altered.
For example, if the disk array has a LUN configured into a RAID
5 configuration, and one
of the disk mechanisms used to create the
LUN is in a FAILED
state, the disk array
will be operating in a
DEGRADED mode. If the user selected the FAIL DRIVE option on
one of the functioning disk mechanisms of the
LUN, the state of the LUN would be
changed from
DEGRADED to DEAD. spd will warn the user of any significant change
in LUN state resulting from their selected option. The -M option suppresses these
warnings and performs the selected operation.
drive Specified in the form cXiY , where X (a decimal number) represents the
SCSI channel
number, and Y (a decimal number) represents the
SCSI-ID number of the disk drive.
RETURN VALUE
spd returns the following values:
0 Successful completion.
-1 Command failed (an error occurred).
DIAGNOSTICS AND ERRORS
Errors can originate from problems with:
• spd
• SCSI (device level) communications
• system calls
Error messages generated by spd:
usage: spd <-a | -c | -d | -f | -r | -x> <-M> <cXiY> <special>
An error in command syntax has occurred. Enter command again with all required arguments, in the
order shown.
spd: device busy
To ensure that spd does not modify a disk array that is being used by another process, spd
attempts to obtain exclusive access to the disk array. If the disk array is already opened by another
process (for example, LVM — the Logical Volume Manager), a ‘‘device busy’’ error message is
returned by the driver. To eliminate the ‘‘device busy’’ condition, determine what process has the
device open. In the case of LVM, it is necessary to deactivate the volume group containing the array
before configuring the array (see vgchange(1M)).
spd: Arg out of range
One of the arguments has exceeded its maximum or minimum size, or is incorrect in form. Check the
HP-UX Release 11i: December 2000 − 1 − Section 1M−−805
___
___