mayactl
The mayactl is a command line tool for interacting with OpenEBS volumes and Pools. The mayactl is not used or required while provisioning or managing the OpenEBS volumes, but it is currently used while debugging and troubleshooting. OpenEBS volume and pool status can be get using the mayactl command.
Summary#
Commands used with mayactl#
The following commands can be run using mayactl to get the details of OpenEBS volume, StoragePool and installed version.
- OpenEBS volume related
- mayactl volume list
- mayactl volume stats
- mayactl volume describe
- OpenEBS StoragePool related
- mayactl pool list
- mayactl pool describe
- OpenEBS version related
- mayactl version
Accessing mayactl#
For getting access to mayactl command line tool, you have to login or execute into the maya-apiserver pod on Kubernetes. The steps are outlined below.
Find out the name of the maya-apiserver
Following is an example output.
It is possible that there are multiple instances of maya-apiserver pods for scaling purposes. You can run mayactl in any one of them. Shell into one of the pods using
kubectl execcommand . You can do as following way.You will get access to the bash shell of maya-apiserver pod like shown below.
Using mayactl#
Once you are inside the maya -apiserver,use mayactl help command for more details.
Example Output:
mayactl for OpenEBS Storage Volume#
OpenEBS storage volume command usage examples are shown below.
Example Output:
The following command shows the list of all OpenEBS volumes including both Jiva and cStor.
Example Output:
The following command shows the description of a OpenEBS volume.
Example Output:
The following command shows the live statistics of OpenEBS volume.
Example Output:
mayactl for OpenEBS Storage Pools#
OpenEBS storage pool command usage examples are shown below.
It will show the available commands which can run with mayactl for getting details of OpenEBS pools.
The following command shows the list of all OpenEBS StoragePools.
Example Output:
The following command show the description of OpenEBS StoragePool.
Example Output:
mayactl Version#
OpenEBS installed version can be obtained using the following command. This will show the status of maya-apiserver and its URL.
Example Output: