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

For the ccm_main Process

ccm show memberView

  • Function

    Displays the status of CCM cluster nodes.

  • Syntax

    ccm show memberView

  • Parameters

    N/A

  • Example
    root:/mgrtool>ccm show memberView
    -memberView-----------------------------------------------------------------------------
    -memberNum:   3
    nodeId:         2, state:    ACTIVE, ip:    192.168.3.30, role:    MASTER.
    nodeId:         0, state:    ACTIVE, ip:    192.168.3.45, role:     SLAVE.
    nodeId:         1, state:    ACTIVE, ip:    192.168.3.29, role:     SLAVE.

    Table 1 describes the parameters in the example.

    Table 1 Parameter description

    Field

    Description

    Example

    memberNum

    Number of CCM nodes

    3

    nodeId

    CCM node ID

    2

    state

    CCM node status

    ACTIVE/INACTIVE

    ip

    IP address of the CCM node

    192.168.3.30

    role

    CCM node role

    MASTER (primary)/SLAVE (secondary)

ccm show clusterNetConnection

  • Function

    Displays the cluster network connection status. Perform this operation on the primary CCM node.

  • Syntax

    ccm show clusterNetConnection

  • Parameters

    N/A

  • Example
    root:/mgrtool>ccm show clusterNetConnection
    nodeId 0 1 2 3 
    0 O O O O 
    1 O O O O 
    2	O	O	O	O	
    3	O	O	O	O	

    This table is a two-dimensional array. Each cell indicates the connection status between two nodes. O indicates that the two nodes are connected, and X indicates that the two nodes are disconnected.

ccm set permanentFault

  • Function

    Sets a node to the permanent faulty state. Perform this operation on the primary CCM node.

  • Syntax

    ccm set permanentFault [nodeId]

  • Parameters

    nodeId indicates the node ID.

  • Example
    globalcache:/mgrtool>ccm set permanentFault 0
    process node:0 permanent fault success.

ccm start scaleout

  • Function

    Starts the scale-out. Perform this operation on the primary CCM node.

  • Syntax

    ccm start scaleout

  • Parameters

    N/A

  • Example
    root:/mgrtool>ccm start scaleout      
    total 1 nodes in scaling:
    192.168.1.120

    This command is used to start the scale-out. If the scale-out is normally started, the CLI displays the IP address of the node to be added. If the scale-out fails to be started, the failure cause is displayed. If the scale-out fails in that the node to be added is faulty, you need to perform BDM formatting to format drives of the node and then restore the scale-out, so as to ensure that the number of nodes to added remains unchanged in the second scale-out attempt.

ccm start failback

  • Function

    Recovers a node from the permanent faulty state. Perform this operation on the primary CCM node.

  • Syntax

    ccm start failback

  • Parameters

    N/A

  • Example
    root:/mgrtool>ccm start failback      
    total 1 nodes in failback:
    192.168.1.120

    This command is used to start the restoration of an old node. If the startup is successful, the CLI displays the IP address of the node to be added. If the startup fails, the failure cause is displayed.

ccm show scaleout status

  • Function

    Checks the scale-out status. Perform this operation on the primary CCM node.

  • Syntax

    ccm show scaleout status

  • Parameters

    N/A

  • Example
    root:/mgrtool>ccm show scaleout status      
    current is in PREHANDLE
    Table 2 Parameter description

    Phase

    Description

    PREHANDLE

    Pre-handling phase: Pre-applies for resources on the new node.

    PREPARE

    Preparation phase: Splits old data.

    INDEX_COMMIT

    Commit phase: The index layer commits the latest written data.

    CACHE_SRC_COMMIT

    Commit phase: The cache layer of the source node commits the latest written data.

    CACHE_DST_COMMIT

    Commit phase: The cache layer of the destination node commits the latest written data.

    UPDATEVIEW

    View update: traffic switching

    FINISHE

    Completion phase: Old resources are cleared.

    After the scale-out task is complete, "no scale out event is running" is displayed.

ccm set compression config

  • Function

    Sets the compression status of a specified pool. Perform this operation on the primary CCM node.

  • Syntax

    ccm set compression config <cephPoolId> <compression> <algorithm Type> <algorithm Version> <compression Level>

  • Parameters

    Parameter

    Description

    Value

    <cephPoolId>

    ID of the Ceph pool to be set

    0 - 232–1

    <compression>

    Data compression switch

    0: disabled; 1: enabled

    <algorithm Type>

    Selects a compression algorithm type.

    0, 1

    <algorithm Version>

    Selects the compression algorithm version.

    0

    <compression Level>

    Selects the compression level of the compression algorithm.

    0

  • Example
    root:/mgrtool>ccm set compression 10 1 0 0 0
    Set Pool Config To CCM Succeeded.

ccm show compression config

  • Function

    Displays the compression status of a specified pool. Perform this operation on the primary CCM node.

  • Syntax

    ccm show compression config <cephPoolId>

  • Parameters

    Parameter

    Description

    Value

    <cephPoolId>

    ID of the Ceph pool to be set

    0 - 232–1

  • Example
    root:/mgrtool>ccm show compression config 10
    The cephPoolId is: 10
    The data_compression_enable is: 1
    The compression_algorithm_type is: 0
    The compression_algorithm_version is: 0
    The compression_level is: 0

ccm show qos

  • Function

    Displays the QoS configuration of the Global Cache cluster. Perform this operation on the primary CCM node.

  • Syntax

    ccm show qos

  • Example
    root:/mgrtool>ccm show qos
    writeOpThrottle:200, readOpThrottle:0, writeBWThrottle:600000, readBWThrottle:0.

ccm set qos

  • Function

    Sets QoS information for the Global Cache cluster. Perform this operation on the primary CCM node.

  • Syntax

    ccm set qos <writeOpThrottle> <readOpThrottle> <writeBWThrottle> <readBWThrottle>

  • Parameters

    Parameter

    Description

    Value

    writeOpThrottle

    Total number of I/Os that can be written at the same time

    0 - 264–1

    readOpThrottle

    Total number of I/Os that can be read at the same time

    0 - 264–1

    writeBWThrottle

    Total size of I/Os that can be written at the same time

    0 - 264–1

    readBWThrottle

    Total size of I/Os that can be read at the same time

    0 - 264–1

  • Example
    The setting is successful, and no command output is displayed.
    root:/mgrtool>ccm set qos 200 0 600000 0

ccm add trustip

  • Function

    Adds an IP address to the trustlist. Perform this operation on the primary CCM node.

  • Syntax

    ccm add trustip <ip address>

  • Parameters

    Parameter

    Description

    Value

    ip address

    IP address

    Example: 192.168.1.10

  • Example
    root:/mgrtool>ccm add trustip 192.168.1.10 
    ip is added to trustlist success.

ccm delete trustip

  • Function

    Deletes an IP address from the trustlist. Perform this operation on the primary CCM node.

  • Syntax

    ccm delete trustip <ip address>

  • Parameters

    Parameter

    Description

    Value

    ip address

    IP address

    Example: 192.168.1.10

  • Example
    root:/mgrtool>ccm delete trustip 192.168.1.10
    delete ip success.

ccm show trustip

  • Function

    Displays all IP addresses in the trustlist.

  • Syntax

    ccm show trustip

  • Example
    root:/mgrtool>ccm show trustip
    ip trustlist:
    192.168.1.10