mmaddcomp command

Adds one or more storage components.

Synopsis

mmaddcomp PartNumber
             [--serial-number SerialNumber] [--name Name]
             [--display-id DisplayId] [--replace] [--dry-run]
or
mmaddcomp -F StanzaFile [--replace] [--dry-run]

Availability

Available with the Elastic Storage Server.

Description

The mmaddcomp command adds one or more new storage components. A default name is assigned if one is not specified.

Parameters

PartNumber
Specifies the part number or model type of the component to be added.
--serial-number SerialNumber
Specifies a serial number to be assigned to the component. If this serial number matches that of an existing component, the command will fail unless --replace is also specified.
--name Name
Specifies a name to be assigned to the component. A default name is assigned if one is not specified.
--display-id DisplayID
Specifies a display ID to be assigned to the component. This applies to storage enclosures only.
-F StanzaFile
Specifies the name of a stanza file from which input values are to be read. The stanza file can include stanzas for multiple components.
The correct format for the component definitions in the stanza file is as follows:
%comp:
 partNumber=PartNumber
 serialNumber=SerialNumber
 name=Name
 displayId=DisplayId
where:
partNumber=PartNumber
Specifies the part number or model type of the component to be added. This is a required parameter.
serialNumber=SerialNumber
Specifies a serial number to be assigned to the component. If this serial number matches that of an existing component, the command will fail unless --replace is also specified.
name=Name
Specifies a name to be assigned to the component. A default name is assigned if one is not specified.
displayId=DisplayId
Specifies a display ID to be assigned to the component. This applies to storage enclosures only.
--replace
Indicates that the command is to replace an existing component that has a matching serial number or component ID.
--dry-run
Indicates that the changes resulting from the command are not to be recorded in the configuration file.

Exit status

0
Successful completion.
nonzero
A failure has occurred.

Security

You must have root authority to run the mmaddcomp command.

The node on which the command is issued must be able to execute remote shell commands on any other node in the cluster without the use of a password and without producing any extraneous messages. For additional details, see the following IBM Storage Scale RAID: Administration topic: Requirements for administering IBM Storage Scale RAID.

Examples

To define a rack and see the result, enter the following commands:

mmaddcomp 1410HPA --name R01C01
mmlscomp

The system displays output similar to this:

    Rack Components
 
Comp ID  Part Number  Serial Number  Name
-------  -----------  -------------  ------
      9  1410HPA                     R01C01
 
    Storage Enclosure Components
 
Comp ID  Part Number  Serial Number  Name                Display ID
-------  -----------  -------------  ------------------  ----------
      1  1818-80E     SV12345001     1818-80E-SV12345001
      2  1818-80E     SV12345007     1818-80E-SV12345007
      3  1818-80E     SV12345003     1818-80E-SV12345003
      4  1818-80E     SV12345005     1818-80E-SV12345005
      5  1818-80E     SV12345004     1818-80E-SV12345004
      6  1818-80E     SV12345002     1818-80E-SV12345002
      7  1818-80E     SV12345008     1818-80E-SV12345008
      8  1818-80E     SV12345006     1818-80E-SV12345006

See also

Location

/usr/lpp/mmfs/bin