HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
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 starting
LUN 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
Section 1M−−856 Hewlett-Packard Company − 1 − HP-UX 11i Version 1: September 2005