HP-UX Reference (11i v2 03/08) - 1M System Administration Commands A-M (vol 3)

a
amcfg(1M) amcfg(1M)
NAME
amcfg - manages LUN (logical drive) configuration on the disk array
SYNOPSIS
amcfg -L cntrlrID:LUN -d channel:ID,channel:ID,...
{-r RAIDlevel [-c capacity ][
-s SegmentSize][-force]} [-V][-?] ArrayID
amcfg -R cntrlrID:LUN -d channel:ID,channel:ID,...
{-r RAIDlevel [-c capacity ][
-s SegmentSize][-force]} [-V][-?] ArrayID
amcfg -C -d channel:ID,channel:ID,... {
-r RAIDlevel [-s SegmentSize]} [-V][-?] ArrayID
amcfg -D LUN [-V][
-?] ArrayID
amcfg -M LUN -c cntrlrID [-V][-?] ArrayID
DESCRIPTION
amcfg manages the LUN configuration on the disk array identified by ArrayID. This involves creating,
deleting, replacing, and assigning ownership of all LUNS on the disk array.
WARNING: Deleting a LUN will destroy all the data on the LUN. Backup all vital data before deleting
a LUN.
The ArrayID used to address the disk array can be the disk array serial number or name, if one has been
assigned to the disk array.
Identifying Disk Modules
Disk modules are identified within Array Manager 60 using a numbered pair of the form n:n. The first
number identifies the SCSI channel (or bus) connecting the array controller to the enclosure containing
the disk module. The channel number is indicated on the back of the array controller enclosure. The
second number is the disk module SCSI ID. The SCSI ID is determined by the slot in which the disk
module is installed, but is not the same as the physical slot number (0-9).
For example, the numbered pair
2:1 identifies the disk module on channel 2 with a SCSI ID of 1. Refer
to the Disk Array FC/60 User’s Guide for more information on disk module addressing.
Options
amcfg supports the following options:
-c capacity Indicates the capacity of the LUN being created. The capacity can be specified in
megabytes (M), or gigabytes (G) by appending the appropriate letter to the value. If
not specified, the default is gigabytes.
By default, the LUN will use the entire capacity available from all the disks. It is
possible to specify a lower value for LUN capacity, but this will result in unused
disk capacity. Any capacity not included in the LUN will be inaccessible and is
essentially wasted capacity.
-C Calculate the capacity of a LUN using the specified disks, RAID level, and stripe
segment size. This command does not actually create the LUN. It simply returns
the capacity available if a LUN is created using the specified values.
-d channel:ID,channel:ID
Identifies the disks used for the LUN. Multiple disks can be specified. Each disk is
identified by channel number (1-6) and SCSI ID (0-4, 8-12). Note that multiple
disks must be specified with no spaces between each disk.
To ensure high-availability, each disk should be in a differenet disk enclosure. This
protects the LUN against an enclosure failure.
NOTE: When selecting disks for a RAID 0/1 LUN, the order in which you specify
disks is important. The first half of the disks you specify will be the primary data
disks, and the second half of the disks will be the disk mirrors. To maintain data
availability, the disk mirrors must be in a different enclosure than the data disks.
For example, assume you are creating a 4-disk RAID 0/1 LUN using one disk enclo-
sure on channel 1, and a second disk enclosure on channel 2. Specifying the disks
in the order
1:2, 1:3, 2:2, 2:3 would result in mirrored pairs of 1:2/2:2 and
1:3/2:3. This would ensure availability because the data disks are on channel 1,
and the mirror disks are on channel 2. However, specifying disks in the order 1:2,
HP-UX 11i Version 2: August 2003 1 Hewlett-Packard Company Section 1M17