HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)
n
newarray(1M) newarray(1M)
most I/O requests. A larger size will allocate more time to I/O processing.
-t LUN_type LUNs can be configured as regular LUNs (
reg), or sub-LUNs (sub). A regular LUN util-
izes all the available capacity of a disk group, or limits the LUN configuration to 2 GBytes if
the 2 GByte limiter is set. If a regular LUN configuration is used, the
-c option is
ignored. A sub-LUN allows logical partitioning of the disk group capacity into a maximum
of eight LUNs. Valid values for LUN_type are "
reg" and "sub".
Custom Configurations
You can create array configurations that might be better suited to a particular application by using
newarray’s command line parameters to override default values, or by creating special entries in the
array configuration table in the file
/etc/hpC2400/arraytab
. Before you do, see cautionary notes in
the WARNINGS section of this manpage.
RETURN VALUES
newarray will return the following values:
0 Successful completion.
-1 Command failed (an error occurred).
DIAGNOSTICS
newarray: device busy
To ensure that newarray does not modify a disk array that is being used by another process,
newar-
ray
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)).
EXAMPLES:
The following examples use configurations contained in /etc/hpC2400/arraytab
.
Raid Level Specification
To configure an HP C2425D with 5 internal disks to a five drive RAID level 0 configuration (on Series 700
computer):
newarray -rRAID_0 /dev/rdsk/c2t3d0
To configure an HP C2425D with 5 internal disks to a one drive RAID level 0 configuration (on Series 700):
newarray -rRAID_0 -d1 /dev/rdsk/c2t3d0
Name Specification
To configure an HP C2430D with five disks connected on SCSI channel 3 (on a Series 800) using the
configuration "Raid_3_5d" in /etc/hpC2400/arraytab
:
newarray -NRaid_3_5d /dev/rdsk/c2t3d0
WARNINGS
We strongly recommend that you use the array configurations that are specified, and delivered by Hewlett-
Packard, in the file /etc/hpC2400/arraytab.
These configurations have been tested and certified
for proper use on Hewlett-Packard computer systems. Custom configurations cannot be warranted for
proper operation.
Configuring a disk array causes the loss of user data on the array.
When using the
-L option, physical media is assigned to the logical unit in the order in which the logical
units are configured. Existing logical unit configurations are NOT removed prior to configuration with this
option. The use of this option is not recommended at this time.
DEPENDENCIES
File System Considerations
The disk array maps the address space of one or more physical disk mechanisms onto logical "disk" parti-
tions. The parameters defined in the configuration, together with the data access patterns of the user’s
application, determine the operating characteristics of the logical disk. Some configurations create multiple
logical partitions, that share a set of physical disks. I/O traffic to each of the logical partitions affects per-
formance, due to the common physical disk resources. The file system or application using the "logical"
disk may require or assume certain characteristics. For optimal system performance it is necessary that
Section 1M−−584 Hewlett-Packard Company − 3 − HP-UX 11i Version 1: September 2005