|
|
HP-UX Reference Volume 2 of 5 > nnewarray(1M) |
|
NAMEnewarray — configure a disk array DESCRIPTIONnewarray, a front-end program for the utility cfl (see cfl(1M)), facilitates the configuration of Hewlett-Packard SCSI disk arrays. It is the recommended utility for all array configuration. Array configuration maps a set of one or more physical disk mechanisms in an array to a set of one or more logical disks, addressable by HP-UX. Logical disks are addressed through device files. Each logical disk in an array (also known as a LUN, for Logical UNit), has its own device file. A logical disk can consist of a single physical disk, a portion of a single physical disk, multiple physical disks, or portions of multiple physical disks. For additional information about possible array configurations, see the array configuration table contained in the file /etc/hpC2400/arraytab, and arraytab(4). Supported configurations for the array device are pre-defined in the array configuration table, located in file /etc/hpC2400/arraytab. newarray can configure a complete set of logical partitions for an array in one operation. Due to the inter-dependency of logical partitions, this is the recommended method for configuration. A single logical partition can be added to an array configuration using an entry from the array configuration table by using the -L option. device_file is a character device file that specifies the I/O address, and driver to use when configuring the disk array. The way that this file is used by newarray is system dependent. See dependencies below. Logical partitions in an array are independently addressable by using the appropriate device file to address the logical unit assigned to a partition. Prior to configuring the array (except with the -L option ), all currently configured logical partitions are removed from the configuration. To simplify array configuration newarray obtains much of the necessary information directly from the array device, and its attached disk mechanisms. The array model number, and the number of available physical disks available, is determined by querying the device. This information is used to locate the appropriate configuration entry in the array configuration table. Optional parameters can be used to override the default, and inquiry values. The preferred configuration method is to use the -N option to specify a configuration by name. The name determines which configuration newarray uses from the array configuration table. Configuration parameters are obtained from the named configuration entry. Parameters of the chosen configuration can be overridden using options to newarray, or by creating and using a custom configuration entry in the array configuration table. See the WARNINGS section of this manpage. Because the array controller type, and disk mechanism types are used in addition to the configuration name to select an entry from the array configuration table the configuration name does not have to be unique within the array configuration table. However, the combination of configuration name, array controller type, and disk mechanism types must be unique within the array configuration table. During configuration, the array controller type, and disk mechanism types are obtained by querying the devices. The -r option specifies an operating mode, rather than specifying a configuration by name. The -d option, which specifies the size of a disk group, is often used with the -r option. If -d is not used, newarray selects the configuration in the array configuration table that most closely matches the disks in the array. When the configuration parameters have been determined, newarray calls cfl. If the -V option is used, newarray prints its actions, and the parameters it passes to cfl to configure the array (see cfl(1M)). Array Configurationnewarray obtains its configuration values from the array configuration table. If not specified there, default values are provided by cfl (see cfl(1M)). Configuration values can be overridden by newarray options. Options
Custom ConfigurationsYou 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 VALUESnewarray will return the following values:
ERRORSnewarray: device busy To ensure that newarray does not modify a disk array that is being used by another process, newarray 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 SpecificationTo 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 WARNINGSWe 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. DEPENDENCIESFile System ConsiderationsThe disk array maps the address space of one or more physical disk mechanisms onto logical "disk" partitions. 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 performance, 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 the file system configuration and application be compatible with the array configuration. Your choice of segment size directly affects the performance of the disk array. Choose this parameter in concert with the choice of the parameters used when building the file system on the device. In general, the segment size determines how much data from a single I/O will be stored on a single disk within the array. A smaller value will involve more of the disks with the I/O, whereas a larger value will involve fewer disks. If input/output operations tend to be very long, the involvement of multiple disks may hasten the completion of each I/O. In this case the access time is the same as a single disk, but the disk data transfer time is shared across the set of disks. If input/output operations are short, the access time will dominate relative to the disk data transfer time, and more input/output operations may be processed in parallel by involving fewer disks in each I/O. In all cases the relative locality of data and the access pattern will affect the performance. For highly sequential data, it may be advantageous to locate the data for a single I/O on a single disk, to take advantage of read-ahead caching within each disk. Configurations for the HP C2430 disk array should enable the automatic data reconstruction LUN flag as part of the configuration specification. |
|