Maintenance commands for OpenShift vSphere
Service level commands are related to maintenance of drives and drive pools. The most common cases would be for Disk addition
Here are some of the commands that are needed for maintenance operations
Some general maintenance commands
Enter Maintenance Mode
Run the following command:
pxctl service maintenance --enter
This takes Portworx out of an "Operational" state for a given node. Perform whatever physical maintenance is needed.
RestartPortworx
Run "docker restart px-enterprise". This restarts the Portworx fabric on a given node.
Exit Maintenance Mode
Run pxctl service maintenance --exit.
This puts Portworx back in to "Operational" state for a given node.
Drive management example
The drive management commands are organized under pxctl service drive command
pxctl service drive
NAME:
pxctl service drive - Storage drive maintenance
USAGE:
pxctl service drive command [command options] [arguments...]
COMMANDS:
show Show drives
add Add storage
rebalance, rs Rebalance storage
OPTIONS:
--help, -h show help
Here is a typical workflow on how to identify and replace drives.