stcli node Commands

stcli node Commands

Operations performed on the storage cluster nodes.


Note

Do not perform conflicting actions simultaneously. For example, do not run node add and node remove at the same time: stcli node add --node-ips NODEIPS remove --id-1 ID1


stcli nodes [-h] {discover | list | info | identify | disks | disk | add | remove | maintenanceMode}

Syntax Description

Option

Required or Optional

Description

add

One of set required.

Adds the set of nodes to the storage cluster.

discover

One of set required.

Lists the storage cluster nodes discoverable on the same subnet as this node.

disk

One of set required.

Locate a physical disk in the node.

disks

One of set required.

Provides information about the physical disks of the storage cluster node.

identify

One of set required.

Turns on/off the node beacon to identify a node.

info

One of set required.

Provides information about the specified storage cluster node.

list

One of set required.

Lists the storage cluster nodes in the storage cluster.

maintenanceMode

One of set required.

Enter or exit maintenance mode.

remove

One of set required.

Removes the node from the storage cluster.

Command Default

None. One option from the set is required.

Usage Guidelines

Accompany the stcli node command with one of the positional arguments enclosed in { } or optional arguments enclosed in [ ].

stcli node add Command

Adds the specified nodes to the storage cluster.


Note

  • Please enter password when prompted.

  • Only use the stcli node add command when the storage cluster is online and healthy.

  • Do not perform conflicting actions simultaneously. For example, do not run node add and node remove at the same time: stcli node add --node-ips NODEIPS remove --id-1 ID1


For standard cluster or edge cluster:

stcli node add [-h] --node-ips NODEIPS [NODEIPS . . .] [--esx-username ESXUSERNAME] [--dryrun]

For stretched cluster:

stcli node add [-h] --node-ips NODEIPS [NODEIPS . . .]:<Site Name> [--esx-username ESXUSERNAME] [--dryrun]

Syntax Description

Option

Required or Optional

Description

--node-ips NODEIPS [NODEIPS . . .]

Required

ESXi management/vmk0 IP addresses of the nodes to be add to the storage cluster.

--dryrun

Optional

Only validate input parameters.

Site Name

Required for stretched cluster

Site name of the node.

--esx-username ESCUSERNAME

Optional

User name of ESX administrator.

Enter ESX administrator password when prompted.

Controller VM root user password

Optional

All nodes must have the same password.

Enter controller VM password when prompted.

Command Default

None. Node identification is required.

Usage Guidelines

Accompany the stcli node add command with the --node-ips and optionally, the arguments enclosed in [ ].


Note

When you add a new node to a storage cluster, if the storage cluster is in an Out of Space condition, the system automatically rebalances the storage cluster. Otherwise, it schedules a nightly rebalance.


stcli node discover Command

Lists the storage cluster nodes discoverable on the same subnet as this node.

stcli node discover [-h]

Command Default

None. No additional parameters.

Usage Guidelines

Run the stcli node discover command on the storage cluster.

# stcli node discover
state:
storfsIp:
  addr:
  stService:
  gateway:
  subnetMask:
  method:
host:
  state:
  about:
    serviceType:
    instanceUuid:
    name:
    locale:
    serialNumber:
    apiVersion:
    modelNumber:
    build:
    fullName:
    productVersion:
  stctlvm:
    name:
    ip:
    guestHostname:
    storageNetworkIp:
    moid:
    role:
    entityRef:
      type:
      id: v
      name:
    version:
    passthrough:
    guestState:
    mgmtNetworkIp:
  name:
  ip:
    addr:
    stService:
    vlanId:
    gateway:
    subnetMask:
    method:
  moid:
  ipmiSettings:
    addr:
    stService:
    gateway:
    subnetMask:
    method:
  ioVisor:
    about:
      serviceType:
      instanceUuid:
      name:
      locale:
      serialNumber:
      apiVersion:
      modelNumber:
      build:
      fullName:
      productVersion:
    state:
  bootTime:
  entityRef:
    type:
    id:
    name:
  vMotionIp:
    addr:
    vlanId:
    gateway:
    subnetMask:
    method:
  enclosureSerialNumber:
entityRef:
  type:
  id:
  name:
progress:

stcli node disk Command

Locate a physical disk in the node.

stcli node disk [-h] {--id ID | --ip NAME} [--lighton | lightoff]

Syntax Description

Option

Required or Optional

Description

--id ID

One of set required.

A unique ID number for the storage cluster node. The ID is listed in the stcli cluster info command under the stNode field id.

--ip NAME

One of set required.

IP address of storage cluster node. The IP is listed in the stcli cluster info command under the stNode field name.

--lighton

Optional.

Turn the ID light on the disk on.

--lightoff

Optional.

Turn the ID light on the disk off.

Command Default

None. One option from the set is required.

Usage Guidelines

Accompany the stcli node disk command with one of the positional arguments enclosed in { }, and optionally arguments enclosed in [ ].

stcli node disks Command

Provides information about the physical disks of the storage cluster node.

stcli node disks [-h] {--id ID | --ip NAME}

Syntax Description

Option

Required or Optional

Description

--id ID

One of set required.

A unique ID number for the storage cluster node. The ID is listed in the stcli cluster info command under the stNode field id.

--ip NAME

One of set required.

IP address of storage cluster node. The IP is listed in the stcli cluster info command under the stNode field name.

Command Default

None. One option from the set is required.

Usage Guidelines

Accompany the stcli node disks command with one of the positional arguments enclosed in { }.

stcli node identify Command

Turns on/off the node beacon to identify a node.


Important

Please enter password when prompted.


stcli node identify [-h] --ipmiIp IPMIIP [--interval INTERVAL] [--user USER]

Syntax Description

Option

Required or Optional

Description

--ipmiIp IPMIIP

Required

Ipmi IP address.

--interval INTERVAL

Optional

Number of seconds to turn the beacon on. If not specified, turns the beacon off.

---user USER

Optional

The IPMI admin user name.

Enter IPMI admin password when prompted.

Command Default

None.

Usage Guidelines

Accompany the stcli node identify command with the required arguments with leading two dashes (--), and optionally, one or more of the positional arguments enclosed in [ ].

stcli node info Command

Provides information about the specified storage cluster node.

stcli node info [-h] {--id ID | --ip NAME} [--summary]

Syntax Description

Option

Required or Optional

Description

--id ID

One of set required.

A unique ID number for the storage cluster node. The ID is listed in the stcli cluster info command under the stNode field id.

--ip NAME

One of set required.

IP address of storage cluster node. The IP is listed in the stcli cluster info command under the stNode field name.

The --ip option is currently not supported.

--summary

Optional.

Display summary only.

Command Default

None. One option from the set is required.

Usage Guidelines

Accompany the stcli node info command with one of the positional arguments enclosed in { } or optional arguments enclosed in [ ].

stcli node list Command

Lists the nodes in the storage cluster.

stcli node list [-h] --summary

Syntax Description

Option

Required or Optional

Description

--summary

Optional.

Display summary only.

Command Default

None.

Usage Guidelines

Run the stcli node list command and optionally include arguments enclosed in [ ].

# stcli node list
----------------------------------------
upgradeState:
state:
storfsIp:
  addr:
  stService:
  vlanId:
  gateway:
  subnetMask:
  method:
pNode:
  about:
    serviceType:
    instanceUuid:
    name:
    locale:
    serialNumber:
    apiVersion:
    modelNumber:
    build:
    displayVersion:
    fullName:
    productVersion:
  retired:
  compression:
  ip:
  dedup:
  nsPrimary:
  dataWriteThruEnabled:
  state:
  bootTime:
  master:
  entityRef:
    type:
    id:
    name:
  version:
  lastModifiedTime:
  name:
host:
  state:
  about:
    serviceType:
    instanceUuid:
    name:
    locale:
    serialNumber:
    apiVersion:
    modelNumber:
    build:
    fullName:
    productVersion:
  stctlvm:
    name:
    storageClusterIp:
    ip:
    guestHostname:
    mgmtClusterIp:
    storageNetworkIp:
    moid:
    role:
    entityRef:
      type:
      id:
      name:
    version:
    passthrough:
    guestState:
    mgmtNetworkIp:
  name:
  ip:
    addr:
    stService:
    vlanId:
    gateway:
    subnetMask:
    method:
  moid:
  ipmiSettings:
    addr:
    stService:
    gateway:
    subnetMask:
    method:
  ioVisor:
    about:
      serviceType:
      instanceUuid:
      name:
      locale:
      serialNumber:
      apiVersion:
      modelNumber:
      build:
      fullName:
      productVersion:
    state:
  bootTime:
  entityRef:
    type:
    id:
    name:
  vMotionIp:
    addr:
    vlanId:
    gateway:
    subnetMask:
    method:
  enclosureSerialNumber:
entityRef:
  type:
  id:
  name:
upgradeVersion:
----------------------------------------

stcli node maintenanceMode Command

Puts the ESX server in the storage cluster into HX maintenance mode.

stcli node maintenanceMode [-h] {--id ID | ip NAME} --mode MODE {enter | exit} [--timeout TIMEOUT]

Syntax Description

Option

Required or Optional

Description

--id ID

One of set required.

A unique ID number for the storage cluster node. The ID is listed in the stcli cluster info command under the stNode field id.

--ip NAME

One of set required.

IP address of storage cluster node. The IP is listed in the stcli cluster info command under the stNode field name.

--mode MODE

Required

Mode to set enter or exit HX maintenance mode.

--timeout TIMEOUT

Optional.

Set timeout in seconds for HX maintenance mode.

Command Default

None. One option from the set is required and the --mode type

Usage Guidelines

Accompany the stcli node maintenanceMode command with one of the positional arguments enclosed in { } and the --mode type, plus optionally arguments enclosed in [ ].

stcli node remove Command

IMPORTANT: Use the stcli node remove command to permanently remove a node from the cluster. Do not run the stcli node remove command if you intend to add the same node back into the same cluster later. Adding a node back into a cluster that it was already part of is not supported.


Note

Do not perform conflicting actions simultaneously. For example, do not run node add and node remove at the same time: stcli node add --node-ips NODEIPS remove --id-1 ID1



Warning

Prior to removing a node or nodes for HyperFlex clusters with Logical Availability Zones (LAZ) configured, LAZ must be disabled.

If LAZ is utilized in the HyperFlex cluster, then the number of remaining nodes must be in a balanced configuration that supports LAZ per the LAZ Guidelines and Considerations prior to reenabling LAZ.


Command Default

None. One option from the set is required.

Usage Guidelines

Accompany the stcli node remove command with one of the positional arguments enclosed in { }, or optional arguments enclosed in [ ].

  • Before you remove a node from a storage cluster, ensure that DRS is enabled. DRS migrates only powered-on VMs.

  • For ESXi nodes, you must first put the node in Maintenance Mode before performing a node remove.

  • For cluster sizes less than 5, please schedule a maintenance window and shut down the cluster before performing a node removal.

  • If your network has powered-off VMs, you must manually migrate them to the storage cluster. Otherwise, they are inaccessible after you remove the node.

  • If DRS is not enabled, manually migrate the VMs.

  • Removing a node requires that the storage cluster is healthy and that removing the node will not reduce the number of available nodes below the minimum 3 nodes which would make the storage cluster unhealthy.