我要评分
获取效率
正确性
完整性
易理解

Index CLI Commands

db show io

  • Function

    Views the I/O statistics of an index.

  • Syntax

    db show io

  • Parameters

    Parameter

    Description

    Value

    N/A

    N/A

    N/A

db show label

  • Function

    Displays label statistics of an index.

  • Syntax

    db show label

  • Parameters

    Parameter

    Description

    Value

    N/A

    N/A

    N/A

db show db

  • Function

    Views the database statistics of an index, that is, the index database that stores different types of metadata.

  • Syntax

    db show db {all | lunmap | fp | op | dt | st | fpinuse | <dbid>} [detail | sg]

  • Parameters

    Parameter

    Description

    Value

    all

    Queries all metadata database statistics at the index layer.

    all

    lunmap

    Queries statistics of the database corresponding to the data mapping table.

    lunmap

    fp

    Queries the statistics of the database corresponding to the deduplication fingerprint table. Currently, deduplication is not supported. Therefore, the number of databases is fixed at 0.

    fp

    op

    Queries the statistics of the database corresponding to the deduplication reverse mapping table. Currently, deduplication is not supported. Therefore, the number of databases is fixed at 0.

    op

    dt

    Queries statistics about the database for garbage collection.

    dt

    st

    Queries statistics about the database corresponding to the key metadata of an index.

    st

    fpinuse

    Queries the statistics of the database corresponding to the fingerprint that is being used for deduplication. Currently, deduplication is not supported. Therefore, the number of databases is fixed at 0.

    spinuse

    <dbid>

    Collects database statistics based on the database ID.

    0 - 264–1

    detail

    (Optional) Lists the detailed table information of the corresponding database.

    detail

    sg

    (Optional) Lists the group information of a database.

    sg

db show keynum

  • Function

    Views the number of keys in the index database (that is, the database where the index stores different types of metadata).

  • Syntax

    db show keynum <dbid>

  • Parameters

    Parameter

    Description

    Value

    <dbid>

    Collects database statistics based on the database ID.

    0 - 2^64-1

kvs show storageinfo

  • Function

    Views the storage volume, usage, and maximum capacity of Ceph. You are advised to use the default features to create an RBD image and enable the fast-diff features. Otherwise, the capacity query may time out.

  • Syntax

    kvs show storageinfo

  • Parameters

    Parameter

    Description

    Value

    N/A

    N/A

    N/A

kvs show all diskpoolstats

  • Function

    Views the space statistics of the disk pool.

  • Syntax

    kvs show all diskpoolstats <diskpoolid>

  • Parameters

    Parameter

    Description

    Value

    <diskpoolid>

    Specifies the ID of the disk pool to be queried.

    127

kvs show all cephpoolstats

  • Function

    Views the compression rate of a Ceph pool.

  • Syntax

    kvs show all cephpoolstats <cephpoolid>

  • Parameters

    Parameter

    Description

    Value

    <cephpoolid>

    Specifies the ID of the Ceph pool to be queried.

    0 - (232–1)