maprcli dump balancerinfo command enables you to see how much space is used in storage pools and to track active container moves. For best results, use the
-json option when running
dump balancerinfo from the command line.
The disk space balancer is a tool that balances disk space usage on a cluster by moving containers between storage pools. Whenever a storage pool is over 70% full (or a threshold defined by the
cldb.balancer.disk.threshold.percentage parameter), the disk space balancer distributes containers to other storage pools that have lower utilization than the average for that cluster. The disk space balancer aims to ensure that the percentage of space used on all the disks in the node is similar. For more information, see Disk Space Balancer.
maprcli dump balancerinfo [-cluster <cluster name>]
The cluster on which to run the command. If this parameter is omitted, the command is run on the same cluster where it is issued. In multi-cluster contexts, you can use this parameter to specify a different cluster on which to run the command.
maprcli dump balancerinfo command returns detailed information about the storage pools on a cluster. If there are any active container moves, the command returns information about the source and destination storage pools.
The unique ID number of the storage pool.
The unique ID number of the file server. The FSID identifies an MapR-FS instance or a node that has MapR-FS running in the cluster. Typically, each node has a group of storage pools, so the same FSID will correspond to multiple SPIDs.
The host IP address and MapR-FS port.
The total capacity of the storage pool (in MB).
The amount of space used on the storage pool (in MB).
The percentage of the storage pool currently utilized. A ratio of the space used (usedMB) to the total capacity (capacityMB) of the storage pool.
The fullness of the storage pool relative to the fullness of the rest of the cluster. Possible values are OverUsed, AboveAverage, Average, BelowAverage, and UnderUsed. For more information, see Monitoring storage pool space usage below.
The amount of data (in MB) that the disk space balancer is currently moving into a storage pool.
The amount of data (in MB) that the disk space balancer is currently moving out of a storage pool.
The following fields are returned only if the disk space balancer is actively moving one or more containers at the time the command is run.
The unique ID number of the container.
The amount of data (in MB) being moved.
The FSID (file server ID number) of the source file server.
The IP address and port number of the source node.
The SPID (storage pool ID) of the source storage pool.
The FSID (file server ID number) of the destination file server.
The IP address and port number of the destination node.
The SPID (storage pool ID number) of the destination storage pool.
Monitoring storage pool space usage
You can use the
maprcli dump balancerinfo command to monitor space usage on storage pools.
Tracking active container moves
maprcli dump balancerinfo command you can monitor the activity of the disk space balancer. Whenever there are active container moves, the command returns information about the source and destination storage pools.
The example shows that a container (7840) is being moved from a storage pool on node 10.50.60.64 to a storage pool on node 10.50.60.73.
You can use the storage pool IDs (SPIDs) to search the CLDB and MFS logs for activity (balancer moves, container moves, creates, deletes, etc.) related to specific storage pools.