The members object in the partition definition has actions
available for managing the members after the partition has been created.
The commands on this page will not work unless the Cray CLI has been initialized on the node where the commands are being run. For more information, see Configure the Cray CLI.
Retrieving members of a partition is very similar to how group members are
retrieved and modified. No filtering options are available in partitions.
However, there are partition and group filtering parameters for the
/hsm/v2/State/Components
and /hsm/v2/memberships
collections, with
both essentially working the same way.
(ncn-mw#
) Retrieve only the members array for a single partition:
cray hsm partitions members list PARTITION_NAME --format json
Example output:
{
"ids" : [
"x0c0s0b0n0","x0c0s0b0n1","x0c0s0b1n0","x0c0s0b1n1"
]
}
Components can be added to a partition’s member list, assuming that the component is not already a member of any partition.
(ncn-mw#
) Add a component to a partition:
cray hsm partitions members create --id COMPONENT_ID PARTITION_NAME
For example:
cray hsm partitions members create --id x1c0s0b0n0 partition1
Single components may be removed from a given partition, assuming that they are currently a member of that partition. After being removed, the component will no longer be in any partition and is free to be assigned to a new one.
(ncn-mw#
) Remove a member from a partition:
cray hsm partitions members delete MEMBER_ID PARTITION_NAME
For example:
cray hsm partitions members delete x1c0s0b0n0 partition1