Tool Command Description
The following table lists the supported commands. The BCM can be used on both the server and client, which is called bcmtool_c and bcmtool_s respectively. Parameters in square brackets [] are mandatory, and parameters in round brackets () are optional.
Syntax |
Description |
Input Requirement |
|---|---|---|
bcm_tool import |
Reads the XML configuration file and adds it to the BCM ZooKeeper. The configuration file directory is /opt/gcache/conf/bcm.xml. |
- |
bcm_tool export (filename) |
Exports the BCM ZooKeeper configuration information to an XML file in the /opt/gcache/conf/file_name directory. |
The default filename is bcm_export.xml. |
bcm_tool addpool [poolId] [clusterId] |
Adds a pool to a specified cluster and updates the pool to the BCM ZooKeeper. |
The pool ID is not added to the cluster, and the cluster ID exists. The pool ID exists in Ceph, and the pool is empty. |
bcm_tool delpool [poolId] |
Searches for a specified pool in the cluster, deletes the pool, and updates the deletion to the BCM ZooKeeper. |
The pool ID exists in the BCM ZooKeeper, and the pool is empty. |
bcm_tool addcluster [clusterId] [serverlist] |
Adds a cluster, specifies the server list, and updates the addition to the BCM ZooKeeper. |
The value of clusterId ranges from 1 to 4. The format of serverlist is ceph1:2181,ceph2:2181,ceph3:2181. Replace the host names and ports with the actual ones. |
bcm_tool delcluster [clusterid] |
Deletes a specified cluster and updates the deletion to the BCM ZooKeeper. |
The cluster exists, and pools in the cluster are empty. |
bcm_tool delall |
Deletes all clusters and updates the deletion to the BCM ZooKeeper. |
- |
bcm_tool qryccm [poolId] |
Queries and displays the CCM IP address of the cluster to which the pool belongs based on the pool ID. |
The pool ID has been added to a valid cluster. |
bcm_tool qrypools [clusterId] |
Queries and displays the pool list of a specified cluster. |
The cluster exists. |
bcm_tool alarmall [clusterId] |
Queries and displays all alarm information in a specified cluster. |
The cluster exists. |
bcm_tool alarmlevel [clusterId] [level] |
Queries and displays the alarm information of a specified level. |
The cluster exists, and the alarm level is error or warn. |
bcm_tool alarmcomp [cluster] [component] |
Queries and displays the alarm information of a specified component. |
The cluster exists, and the component is node, disk, network, or logsystem. |
bcm_tool alarmlimit [cluster] |
Queries the maximum number of alarms and displays the query result. |
The cluster exists. |
bcm_tool showZkStatus |
Queries the cluster status of bcm-zk and ccm-zk. |
- |
The following alarm information is supported:
Alarm Type |
Alarm Level |
Component Type |
Alarm Content |
|---|---|---|---|
Temporary faulty node |
ERROR |
NODE |
temporarily faulty and cannot provide services temporarily |
Permanent faulty node |
ERROR |
NODE |
permanently faulty and removed from the cluster |
Drive fault |
ERROR |
DISK |
disk is faulty |
Ceph pool drive capacity reaching 80% |
WARN |
DISK |
disk capacity of the ceph pool reaches 80% |
Insufficient Ceph pool drive capacity |
ERROR |
DISK |
disk capacity of the ceph pool is insufficient |
Log space usage reaching 80% |
WARN |
DISK |
disk capacity of the log system reaches 80% |
Insufficient log space |
ERROR |
DISK |
disk capacity of the log system is insufficient |
Network error |
ERROR |
NETWORK |
the network connection is abnormal |
Failed to open a log file |
WARN |
LOGSYSTEM |
failed to open the log file |
Failed to write a log file |
WARN |
LOGSYSTEM |
failed to write the log file |
Failed to rename a log file |
WARN |
LOGSYSTEM |
failed to rename the log file |
Failed to remove a log file |
WARN |
LOGSYSTEM |
failed to remove the log file |
Abnormal PTs |
ERROR |
DISK |
the disk has fault state pt |
Slow drive |
ERROR |
DISK |
disk is slow |