cluster command
Purpose
Creates a cluster that uses the Virtual I/O Server (VIOS) partitions and performs cluster-related operations.
Syntax
To create a cluster:
cluster -create -clustername ClusterName -repopvs PhysicalVolume ... -sp StoragePool -sppvs PhysicalVolume... [-addcompvs PhysicalVolume] [-hostname HostName]
cluster -create -clustername ClusterName -repopvs PhysicalVolume... -sp StoragePool -file -sppvs FileName[-addcompvs PhysicalVolume] [-hostname HostName]
cluster -create -clustername ClusterName -repopvs PhysicalVolume... -sp StoragePool[-systier [SysTierName:] PhysicalVolume...] -usrtier UsrTierName:PhysicalVolume... [-addcompvs PhysicalVolume] [-hostname HostName]
cluster -create -clustername ClusterName -repopvs PhysicalVolume... -sp StoragePool -file [-systier [SysTierName:] FileName] -usrtier UsrTierName:FileName1[-addcompvs PhysicalVolume] [-hostname HostName]
To add a VIOS partition node to the cluster:
cluster -addnode [-clustername ClusterName] -hostname HostName
To remove a VIOS partition node from the cluster:
cluster -rmnode [-f] [-clustername ClusterName] {-hostname HostName | -uuidHostUuid}
To remove a cluster from the system:
cluster -remove [-clustername ClusterName]
To display the health status of a cluster:
cluster -status [-clustername ClusterName] [-field FieldName...] [-fmt Delimiter] [-verbose ]
To synchronize the cluster and Object Data Manager (ODM):
cluster -sync [-clustername ClusterName]
To list all clusters:
To add a communication disk (comdisk) to an existing cluster:
cluster -addcompvs PhysicalVolume
To remove a comdisk from an existing cluster:
cluster -rmcompvs PhysicalVolume
To specify the IP addresses that are associated with the specified node that must be used for SSP communication:
cluster -addips IPs-hostname HostName
To specify the IP addresses that are associated with the specified node that must be removed for SSP communication:
cluster -rmips IPs -hostname HostName
Description
The cluster command is used to create and remove the cluster.
You can create a cluster with a separate restricted system tier (holds metadata only) and user tier (holds user data only) by using the -systier option and the -usrtier option. By default, a cluster is created with the single co-mingled tier (holds metadata and user data) by using the -sppvs option or only the -usrtier option.
The status subcommand displays a global cluster health status and the status for each node in the cluster. The cluster status can be OK, DEGRADED, or DOWN. If the cluster status is OK, all the nodes of the cluster are working. If the cluster health status is DEGRADED, cluster services might not be active on some of the nodes. If the cluster status is DOWN, the cluster services are not active on all the nodes. The node status is either OK or DOWN. A node is in the OK state, if the cluster services are active, and a node is in the DOWN state, if the cluster services are not active on that node. A pool status is provided for each node that is not DOWN. The pool status is OK for a node if the node can service the shared storage pool (SSP) virtualized storage to the client logical partitions (LPARs). The pool status is DOWN if it is not usable from the node.
If the -verbose option is requested, additional status details such as the number of nodes in each state is provided. For each node that is not DOWN, it displays the node roles and the storage pool status from the point of view of the node.
If the -fmt option is requested, status output is displayed in a format of delimiter-separated value report.
With the -field option, you can specify which fields to display. If no pool information is requested, the command does not retrieve pool status on each node, thus accelerating the command response time.
With the -addcompvs option, you can specify a dedicated disk that must be used for communication between nodes among the cluster. This disk will be used by the SSP (SFStore) when the network communication is disrupted on a set of nodes in a cluster.
With the -rmcompvs option, you can specify a dedicated disk that must be removed from communication between nodes among the cluster.
With the -addips option, you can specify a list of IP addresses that are associated with the specified node that must be used for SSP communication.
With the -rmips option, you can specify a list of IP addresses that are associated with the specified node that must be removed from the SSP communication.
Flags
| Flag name | Description |
|---|---|
| -addnode | Adds a member node to the cluster. |
| -addcompvs | Specifies the physical volume that must be used for disk communication. |
| -addips | Specifies the IP addresses that are associated with the specified node that must be used for SSP communication. |
| -clustername | Specifies the name of the cluster. |
| -create | Creates a cluster. |
| -remove | Removes a cluster. |
| -f | Forces the removal of the VIOS partitions from the cluster. |
| -field |
Supports the following fields if the -list flag is
specified:
Supports the following fields if the -status flag is
specified:
Supports the following fields if the -status flag is specified with the
-verbose
option:
|
| -file | Specifies that you must specify a file name with the -sppvs option. The file must contain physical volume names that are separated by a space. |
| -fmt | Divides output by a user-specified delimiter. |
| -hostname | Specifies the host name or IP address of the VIOS partition. |
| -list | Lists all clusters that have membership of the current node. |
| -repopvs | Lists physical volumes on which a repository can be created. |
| -rmcompvs | Specifies the physical volume that must be removed from disk communication. |
| -rmnode | Removes the member node from the cluster. |
| -rmips | Specifies the IP addresses that are associated with the specified node that must be removed from the SSP communication. |
| -sp | Specifies the name of the storage pool. |
| -sppvs | Lists the physical volumes on which a shared storage pool can be created. If you specify the -file option, this flag lists the file name with the list of physical volume names. |
| -systier |
Specifies the optional name of the system tier. A list of physical volumes or file names follows, which is used to create a system tier. |
| -usrtier |
Specifies the name of the user tier. A list of physical volumes or file names follows, which is used to create a user tier. Without the -systier option, the cluster command creates a co-mingled type tier. |
| -status | Displays the health status of the cluster. |
| -sync | Synchronizes the cluster and the ODM. |
| -uuid | Specifies the UUID of a node. |
| -verbose | Displays additional detailed information. |
Examples
- To create a cluster with a co-mingled tier, type the following
command:
The system displays the output as follows:cluster -create -clustername testcluster -repopvs hdisk1 -sp testpool -sppvs hdisk2Cluster testcluster has been created successfully.
- To create a cluster with a co-mingled tier by using the -file flag, type
the following
command:
The system displays the output as follows:cluster -create -clustername testcluster -repopvs hdisk1 -sp testpool -file -sppvs pvlist.txtCluster testcluster has been created successfully.
- To create a cluster with a restricted system tier and a user tier, type the following
command:
The system displays the output as follows:cluster -create -clustername testcluster -repopvs repo_hdisk -sp testsp -systier metadatatier: hdisk2 -usrtier datatier: hdisk3Cluster testcluster has been created successfully.
- To create a cluster with a co-mingled tier, type the following
command:
The system displays the output as follows:cluster -create -clustername testcluster -repopvs hdisk1 -sp testsp -usrtier mixedtier: hdisk2Cluster testcluster has been created successfully.
- To remove a cluster from the system, type the following
command:
The system displays the output as follows:cluster -removeCluster testcluster has been removed successfully.
- To add a member node in a cluster, type the following
command:
The system displays the output as follows:cluster -addnode -hostname testhost2testhost2 has been added to the testcluster cluster.
- To remove a member node from a cluster, type the following
command:
The system displays the output as follows:cluster -rmnode -hostname testhost2testhost2 has been removed from the testcluster cluster.
- To display the health status summary, type the following
command:
The system displays the output as follows:cluster -statusCluster Name State testcluster OK Node Name Pool State MTM Partition #State testhost1 OK 9115-505031006A2A 1 OK testhost2 DOWN 9115-5050310069FA 1 OK - To display a detailed health status report, type the following
command:
The system displays the output as follows:cluster -status -verboseCluster Name: testcluster Cluster Id: d23624fe335f11e0bd510011257e1447 Cluster State: OK Repository Mode: EVENT Number of Nodes: 2 Nodes OK: 2 Nodes DOWN: 0 Pool Name: testpool Pool Id: b118d73c42b322d0a5850011257e1447 Pool Mirror State: NOT_MIRRORED Pool MFS Node: testhost2 Pool Leader Node: testhost1 Node Name: testhost2 Node Id: 4d5012722f9f11e0813c0011257e1447 Node MTM: 8233-E8B020687AER Node Partition Num: 2 Node State: OK Node Repos State: OK Node Upgrade Status: 4.1.1.00 ON_LEVEL Node Roles: Pool Name: testpool Pool Id: b118d73c42b322d0a5850011257e1447 Pool State: OK Node Name: testhost1 Node Id: 3d5012722f9f11e0813c0011257e13444 Node MTM: 8233-E8B020687AER Node Partition Num: 6 Node State: OK Node Repos State: OK Node Upgrade Status: 4.1.1.00 ON_LEVEL Node Roles: DBN Pool Name: testpool Pool Id: b118d73c42b322d0a5850011257e1447 Pool State: OK - To display a formatted health status report, type the following
command:
The system displays the output as follows:cluster -status -fmt ’,’testcluster,OK,testhost1,9115-505031006A2A,4,OK,OK testcluster,OK,testhost2,9115-5050310069FA,9,OK,OK - To display a formatted and detailed health status report, type the following
command:
The system displays the output as follows:cluster -status -fmt ’,’ -verbosetestcluster,d23624fe335f11e0bd510011257e1447,OK,ASSERT,2,2,0, testhost1,da18d52a32b211e0a5850011257e1447,9115-505031006A2A,4,OK,OK,ON_LEVEL,DBN,testpool, b118d73c42b322d0a5850011257e1447,OK testcluster,d23624fe335f11e0bd510011257e1447,OK,ASSERT,2,2,0, testhost2,4d5012722f9f11e0813c0011257e1447,9115-5050310069FA,9,OK,OK,ON_LEVEL,,testpool, b118d73c42b322d0a5850011257e1447,OK - To display a formatted health status report with some specific fields, type the following
command:
The system displays the output as follows:cluster -status -fmt ’:’ -field cluster_name node_name pool_label pool_state -verbosetestcluster:testhost1:testpool:OK testcluster:testhost2:testpool:OK - To display a specific health status report with specific fields, type the following
command:
The system displays the output as follows:cluster -status -field node_name node_state cluster_name cluster_stateNode Name: testhost1 Node State: OK Cluster Name: testcluster Cluster State: OK Node Name: testhost2 Node State: OK Cluster Name: testcluster Cluster State: OK - To display the cluster information on the current node, type the following
command:
The system displays the output as follows:cluster -listCLUSTER_NAME: testcluster CLUSTER_ID: a64c8c725bfc11e1993500215e188da0 - To display the cluster information on the current node in a formatted output by using the
-fmt flag, type the following command:
The system displays the output as follows:cluster -list -fmt ,testcluster,a64c8c725bfc11e1993500215e188da0 - To create a cluster in which comdisk is configured, type the following
command:
The system displays the output as follows:cluster -create -clustername testcluster -sp testpool -repopvs hdisk1 -sppvs hdisk2 -addcompvs hdisk3Cluster testcluster has been created successfully. - To add a comdisk to an existing cluster, type the following
command:
The system displays the output as follows:cluster -addcompvs hdisk4Add com disk(s) successful. - To remove a comdisk from an existing cluster, type the following
command:
The system displays the output as follows:cluster -rmcompvs hdisk4Remove com disk(s) successful. - To add the IP addresses that are associated with a specified node, type the following
command:
The system displays the output as follows:cluster -addips 10.10.10.21 2020::20 2021::21 -hostname vios164Additional IPs associated with hostname vios164 has been added to the mycluster cluster. - To remove the IP addresses that are associated with a specified node, type the following
command:
The system displays the output as follows:cluster -rmips 10.10.10.21 2020::20 -hostname vios164Additional IPs associated with hostname vios164 have been removed from the mycluster cluster. - In a mixed-mode cluster, different nodes can have different VIOS versions installed. For
example, consider a mixed-mode cluster in which some nodes are at VIOS version 3.1.1 and some nodes
are at VIOS version 2.2.6. In such a scenario, if you attempt to add the IP addresses on a VIOS
3.1.1 node, the following error message is
displayed:
cluster -addips 10.10.10.21 2020::20 2021::21 -hostname vios164 The requested operation can not be performed since the software capability is currently not enabled. Please upgrade all nodes within the cluster and retry the request once the upgrade has completed successfully.