mmcrnodeclass command
Creates user-defined node classes.
Synopsis
mmcrnodeclass ClassName -N {Node[,Node...] | NodeFile | NodeClass}
Availability
Available on all IBM Spectrum Scale editions.
Description
Use the mmcrnodeclass command to create user-defined node classes. After a node class is created, it can be specified as an argument on commands that accept the -N NodeClass option.
Parameters
- ClassName
- Specifies a name that uniquely identifies the user-defined node classes to create. An existing node name cannot be specified. Class names that end with nodes or system-defined node classes are reserved for use by GPFS.
- -N {Node[,Node...] | NodeFile | NodeClass}
- Specifies the nodes and node classes that will become members
of the user-defined node class ClassName. NodeClass cannot be a node class that already contains other node classes. For example, two user-defined node classes called siteA and siteB could be used to create a new node class called siteAandB, as follows:
The siteAandB node class cannot later be specified for NodeClass when creating new node classes.mmcrnodeclass siteAandB -N siteA,siteB
For general information on how to specify node names, see Specifying nodes as input to GPFS commands.
Exit status
- 0
- Successful completion.
- nonzero
- A failure has occurred.
Security
You must have root authority to run the mmcrnodeclass 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 more information, see Requirements for administering a GPFS file system.
Examples
To create a user-defined node
class called siteA that contains nodes c8f2c4vp1 and c8f2c4vp2,
issue this command:
mmcrnodeclass siteA -N c8f2c4vp1,c8f2c4vp2
The
system displays information similar to: mmcrnodeclass: Propagating the cluster configuration data to all
affected nodes. This is an asynchronous process.
To display the member list of siteA,
issue this command: mmlsnodeclass siteA
The
system displays information similar to: Node Class Name Members
--------------------- -----------------------------------------------------------
siteA c8f2c4vp1,c8f2c4vp2