命令行工具

Curve 命令行工具代码仓库地址:https://github.com/opencurve/curve/blob/master/tools-v2/README.md

工具目前还在继续开发完善之中,欢迎提交issue或pr。

How to use curve tool

Install

install curve tool

  1. wget https://curve-tool.nos-eastchina1.126.net/release/curve-latest
  2. chmod +x curve-latest
  3. mv curve-latest /usr/bin/curve

set configure file

  1. wget https://raw.githubusercontent.com/opencurve/curve/master/tools-v2/pkg/config/curve.yaml

or

  1. wget https://curve-tool.nos-eastchina1.126.net/config/curve.yaml

Please modify the mdsAddr, mdsDummyAddr, etcdAddr under curvefs/bs in the template.yaml file as required

  1. mv curve.yaml ~/.curve/curve.yaml

or

  1. mv curve.yaml /etc/curve/curve.yaml

Introduction

Here’s how to use the tool

  1. curve COMMAND [options]

When you are not sure how to use a command, —help can give you an example of use:

  1. curve COMMAND --help

For example:

  1. curve fs status mds --help
  2. Usage: curve fs status mds [flags]
  3. get the inode usage of curvefs
  4. Flags:
  5. -c, --conf string config file (default is $HOME/.curve/curve.yaml or /etc/curve/curve.yaml)
  6. -f, --format string Output format (json|plain) (default "plain")
  7. -h, --help Print usage
  8. --httptimeout duration http timeout (default 500ms)
  9. --mdsaddr string mds address, should be like 127.0.0.1:6700,127.0.0.1:6701,127.0.0.1:6702
  10. --mdsdummyaddr string mds dummy address, should be like 127.0.0.1:7700,127.0.0.1:7701,127.0.0.1:7702
  11. --showerror display all errors in command
  12. Examples:
  13. $ curve fs status mds

In addition, this tool reads the configuration from $HOME/.curve/curve.yaml or /etc/curve/curve.yaml by default, and can be specified by --conf or -c.

Command

version

show the version of curve tool

Usage:

  1. curve --version

Output:

  1. curve v1.2

completion

generate curve bash/zsh/fish completion script

Take bash as an example:

  1. curve completion bash > /etc/bash_completion.d/curve

If you perform completion you get the following error:

  1. curve [tab]bash: _get_comp_words_by_ref: command not found

You need to install bash-completion:

  1. sudo apt install bash-completion
  2. source /usr/share/bash-completion/bash_completion

upgrade

Upgrade curve to latest version

Usage:

  1. curve upgrade

If you want to upgrade to the specified version(ee500438):

  1. CURVE_VERSION=ee500438 curve upgrade

If you are in an offline environment, you can also set up a temporary http server to provide upgrade services for other machines:

  1. # 192.168.1.1
  2. echo "123456" > __version
  3. cp curve curve-123456
  4. python3 -m http.server 1234

In this way, it can be upgraded on other machines

  1. CURVE_BASE_URL=http://192.168.1.1:1234/ curve upgrade

fs

check

check copyset

check copysets health in curvefs

Usage:

  1. curve fs check copyset --copysetid 1 --poolid 1

Output:

  1. +------------+-----------+--------+--------+---------+
  2. | COPYSETKEY | COPYSETID | POOLID | STATUS | EXPLAIN |
  3. +------------+-----------+--------+--------+---------+
  4. | 4294967297 | 1 | 1 | ok | |
  5. +------------+-----------+--------+--------+---------+

create

create fs

create a fs in curvefs

Usage:

  1. curve fs create fs --fsname test3

Output:

  1. +--------+-------------------------------------------+
  2. | FSNAME | RESULT |
  3. +--------+-------------------------------------------+
  4. | test3 | fs exist, but s3 info is not inconsistent |
  5. +--------+-------------------------------------------+
create topology

create curvefs topology

Usage:

  1. curve fs create topology --clustermap topology.json

Output:

  1. +-------------------+--------+-----------+--------+
  2. | NAME | TYPE | OPERATION | PARENT |
  3. +-------------------+--------+-----------+--------+
  4. | pool2 | pool | del | |
  5. +-------------------+--------+ +--------+
  6. | zone4 | zone | | pool2 |
  7. +-------------------+--------+ +--------+
  8. | **.***.***.**_3_0 | server | | zone4 |
  9. +-------------------+--------+-----------+--------+

delete

delete fs

delete a fs from curvefs

Usage:

  1. curve fs delete fs --fsname test1
  2. WARNING:Are you sure to delete fs test1?
  3. please input [test1] to confirm: test1

Output:

  1. +--------+-------------------------------------+
  2. | FSNAME | RESULT |
  3. +--------+-------------------------------------+
  4. | test1 | delete fs failed!, error is FS_BUSY |
  5. +--------+-------------------------------------+

list

list copyset

list all copyset info of the curvefs

Usage:

  1. curve fs list copyset

Output:

  1. +------------+-----------+--------+-------+--------------------------------+------------+
  2. | KEY | COPYSETID | POOLID | EPOCH | LEADERPEER | PEERNUMBER |
  3. +------------+-----------+--------+-------+--------------------------------+------------+
  4. | 4294967302 | 6 | 1 | 2 | id:1 | 3 |
  5. | | | | | address:"**.***.***.**:6801:0" | |
  6. +------------+-----------+ +-------+ +------------+
  7. | 4294967303 | 7 | | 1 | | 3 |
  8. | | | | | | |
  9. +------------+-----------+ +-------+ +------------+
  10. | 4294967304 | 8 | | 1 | | 3 |
  11. | | | | | | |
  12. +------------+-----------+ +-------+ +------------+
  13. | 4294967307 | 11 | | 1 | | 3 |
  14. | | | | | | |
  15. +------------+-----------+ +-------+--------------------------------+------------+
  16. | 4294967297 | 1 | | 1 | id:2 | 3 |
  17. | | | | | address:"**.***.***.**:6802:0" | |
  18. +------------+-----------+ +-------+ +------------+
  19. | 4294967301 | 5 | | 1 | | 3 |
  20. | | | | | | |
  21. +------------+-----------+ +-------+ +------------+
  22. | 4294967308 | 12 | | 1 | | 3 |
  23. | | | | | | |
  24. +------------+-----------+ +-------+--------------------------------+------------+
  25. | 4294967298 | 2 | | 1 | id:3 | 3 |
  26. | | | | | address:"**.***.***.**:6800:0" | |
  27. +------------+-----------+ +-------+ +------------+
  28. | 4294967299 | 3 | | 1 | | 3 |
  29. | | | | | | |
  30. +------------+-----------+ +-------+ +------------+
  31. | 4294967300 | 4 | | 1 | | 3 |
  32. | | | | | | |
  33. +------------+-----------+ +-------+ +------------+
  34. | 4294967305 | 9 | | 1 | | 3 |
  35. | | | | | | |
  36. +------------+-----------+ +-------+ +------------+
  37. | 4294967306 | 10 | | 1 | | 3 |
  38. | | | | | | |
  39. +------------+-----------+--------+-------+--------------------------------+------------+
list fs

list all fs info in the curvefs

Usage:

  1. curve fs list fs

Output:

  1. +----+-------+--------+--------------+-----------+---------+----------+-----------+----------+
  2. | ID | NAME | STATUS | CAPACITY | BLOCKSIZE | FSTYPE | SUMINDIR | OWNER | MOUNTNUM |
  3. +----+-------+--------+--------------+-----------+---------+----------+-----------+----------+
  4. | 2 | test1 | INITED | 107374182400 | 1048576 | TYPE_S3 | false | anonymous | 1 |
  5. +----+-------+--------+--------------+-----------+ +----------+ +----------+
  6. | 3 | test3 | INITED | 107374182400 | 1048576 | | false | | 0 |
  7. +----+-------+--------+--------------+-----------+---------+----------+-----------+----------+
list mountpoint

list all mountpoint of the curvefs

Usage:

  1. curve fs list mountpoint

Output:

  1. +------+--------+-------------------------------------------------------------------+
  2. | FSID | FSNAME | MOUNTPOINT |
  3. +------+--------+-------------------------------------------------------------------+
  4. | 2 | test1 | siku-QiTianM420-N000:9002:/curvefs/client/mnt/home/siku/temp/mnt1 |
  5. + + +-------------------------------------------------------------------+
  6. | | | siku-QiTianM420-N000:9003:/curvefs/client/mnt/home/siku/temp/mnt2 |
  7. +------+--------+-------------------------------------------------------------------+
list partition

list partition in curvefs by fsid

Usage:

  1. curve fs list partition

Output:

  1. +-------------+------+--------+-----------+----------+----------+-----------+
  2. | PARTITIONID | FSID | POOLID | COPYSETID | START | END | STATUS |
  3. +-------------+------+--------+-----------+----------+----------+-----------+
  4. | 14 | 2 | 1 | 10 | 1048676 | 2097351 | READWRITE |
  5. +-------------+ + + +----------+----------+-----------+
  6. | 20 | | | | 7340732 | 8389407 | READWRITE |
  7. +-------------+ + +-----------+----------+----------+-----------+
  8. | 13 | | | 11 | 0 | 1048675 | READWRITE |
  9. +-------------+ + + +----------+----------+-----------+
  10. | 16 | | | | 3146028 | 4194703 | READWRITE |
  11. +-------------+ + + +----------+----------+-----------+
  12. | 22 | | | | 9438084 | 10486759 | READWRITE |
  13. +-------------+ + +-----------+----------+----------+-----------+
  14. | 21 | | | 5 | 8389408 | 9438083 | READWRITE |
  15. +-------------+ + +-----------+----------+----------+-----------+
  16. | 23 | | | 7 | 10486760 | 11535435 | READWRITE |
  17. +-------------+ + + +----------+----------+-----------+
  18. | 24 | | | | 11535436 | 12584111 | READWRITE |
  19. +-------------+ + +-----------+----------+----------+-----------+
  20. | 15 | | | 8 | 2097352 | 3146027 | READWRITE |
  21. +-------------+ + + +----------+----------+-----------+
  22. | 18 | | | | 5243380 | 6292055 | READWRITE |
  23. +-------------+ + +-----------+----------+----------+-----------+
  24. | 17 | | | 9 | 4194704 | 5243379 | READWRITE |
  25. +-------------+ + + +----------+----------+-----------+
  26. | 19 | | | | 6292056 | 7340731 | READWRITE |
  27. +-------------+------+ +-----------+----------+----------+-----------+
  28. | 26 | 3 | | 2 | 1048676 | 2097351 | READWRITE |
  29. +-------------+ + + +----------+----------+-----------+
  30. | 30 | | | | 5243380 | 6292055 | READWRITE |
  31. +-------------+ + +-----------+----------+----------+-----------+
  32. | 34 | | | 3 | 9438084 | 10486759 | READWRITE |
  33. +-------------+ + +-----------+----------+----------+-----------+
  34. | 29 | | | 4 | 4194704 | 5243379 | READWRITE |
  35. +-------------+ + + +----------+----------+-----------+
  36. | 32 | | | | 7340732 | 8389407 | READWRITE |
  37. +-------------+ + +-----------+----------+----------+-----------+
  38. | 35 | | | 5 | 10486760 | 11535435 | READWRITE |
  39. +-------------+ + + +----------+----------+-----------+
  40. | 27 | | | | 2097352 | 3146027 | READWRITE |
  41. +-------------+ + + +----------+----------+-----------+
  42. | 33 | | | | 8389408 | 9438083 | READWRITE |
  43. +-------------+ + +-----------+----------+----------+-----------+
  44. | 25 | | | 6 | 0 | 1048675 | READWRITE |
  45. +-------------+ + + +----------+----------+-----------+
  46. | 36 | | | | 11535436 | 12584111 | READWRITE |
  47. +-------------+ + +-----------+----------+----------+-----------+
  48. | 28 | | | 8 | 3146028 | 4194703 | READWRITE |
  49. +-------------+ + +-----------+----------+----------+-----------+
  50. | 31 | | | 9 | 6292056 | 7340731 | READWRITE |
  51. +-------------+------+--------+-----------+----------+----------+-----------+
list topology

list the topology of the curvefs

Usage:

  1. curve fs list topology

Output:

  1. +----+------------+--------------------+------------+-----------------------+
  2. | ID | TYPE | NAME | CHILDTYPE | CHILDLIST |
  3. +----+------------+--------------------+------------+-----------------------+
  4. | 1 | pool | pool1 | zone | zone3 zone2 zone1 |
  5. +----+------------+--------------------+------------+-----------------------+
  6. | 3 | zone | zone3 | server | **.***.***.**_2_0 |
  7. +----+ +--------------------+ +-----------------------+
  8. | 2 | | zone2 | | **.***.***.**_1_0 |
  9. +----+ +--------------------+ +-----------------------+
  10. | 1 | | zone1 | | **.***.***.**_0_0 |
  11. +----+------------+--------------------+------------+-----------------------+
  12. | 3 | server | **.***.***.**_2_0 | metaserver | curvefs-metaserver.2 |
  13. +----+ +--------------------+ +-----------------------+
  14. | 2 | | **.***.***.**_1_0 | | curvefs-metaserver.1 |
  15. +----+ +--------------------+ +-----------------------+
  16. | 1 | | **.***.***.**_0_0 | | curvefs-metaserver.3 |
  17. +----+------------+--------------------+------------+-----------------------+
  18. | 3 | metaserver | curvefs-metaserver | | |
  19. +----+ +--------------------+------------+-----------------------+
  20. | 2 | | curvefs-metaserver | | |
  21. +----+ +--------------------+------------+-----------------------+
  22. | 1 | | curvefs-metaserver | | |
  23. +----+------------+--------------------+------------+-----------------------+

query

query copyset

query copysets in curvefs

Usage:

  1. curve fs query copyset --copysetid 1 --poolid 1

Output:

  1. +------------+-----------+--------+--------------------------------------+-------+
  2. | copysetKey | copysetId | poolId | leaderPeer | epoch |
  3. +------------+-----------+--------+--------------------------------------+-------+
  4. | 4294967297 | 1 | 1 | id:2 address:"**.***.***.**:6802:0" | 1 |
  5. +------------+-----------+--------+--------------------------------------+-------+
query fs

query fs in curvefs by fsname or fsid

Usage:

  1. curve fs query fs --fsname test1

Output:

  1. +----+-------+--------+--------------+-----------+---------+----------+-----------+----------+
  2. | id | name | status | capacity | blocksize | fsType | sumInDir | owner | mountNum |
  3. +----+-------+--------+--------------+-----------+---------+----------+-----------+----------+
  4. | 2 | test1 | INITED | 107374182400 | 1048576 | TYPE_S3 | false | anonymous | 2 |
  5. +----+-------+--------+--------------+-----------+---------+----------+-----------+----------+
query inode

query the inode of fs

Usage:

  1. curve fs query inode --fsid 2 --inodeid 5243380

Output:

  1. +-------+----------+-----------+---------+-------+--------+
  2. | fs id | inode id | length | type | nlink | parent |
  3. +-------+----------+-----------+---------+-------+--------+
  4. | 2 | 5243380 | 352321536 | TYPE_S3 | 1 | [1] |
  5. +-------+----------+-----------+---------+-------+--------+
query metaserver

query metaserver in curvefs by metaserverid or metaserveraddr

Usage:

  1. curve fs query metaserver --metaserveraddr **.***.***.**:6801,**.***.***.**:6802

Output:

  1. +----+--------------------+--------------------+--------------------+-------------+
  2. | id | hostname | internalAddr | externalAddr | onlineState |
  3. +----+--------------------+--------------------+--------------------+-------------+
  4. | 1 | curvefs-metaserver | **.***.***.**:6801 | **.***.***.**:6801 | ONLINE |
  5. | 2 | curvefs-metaserver | **.***.***.**:6802 | **.***.***.**:6802 | ONLINE |
  6. +----+--------------------+--------------------+--------------------+-------------+
query partition

query the copyset of partition

Usage:

  1. curve fs query partition --partitionid 14

Output:

  1. +----+--------+-----------+--------+----------------------+
  2. | id | poolId | copysetId | peerId | peerAddr |
  3. +----+--------+-----------+--------+----------------------+
  4. | 14 | 1 | 10 | 1 | **.***.***.**:6801:0 |
  5. | 14 | 1 | 10 | 2 | **.***.***.**:6802:0 |
  6. | 14 | 1 | 10 | 3 | **.***.***.**:6800:0 |
  7. +----+--------+-----------+--------+----------------------+

status

status mds

get status of mds

Usage:

  1. curve fs status mds

Output:

  1. +--------------------+--------------------+----------------+----------+
  2. | addr | dummyAddr | version | status |
  3. +--------------------+--------------------+----------------+----------+
  4. | **.***.***.**:6700 | **.***.***.**:7700 | 8fc48476+debug | follower |
  5. | **.***.***.**:6701 | **.***.***.**:7701 | 8fc48476+debug | follower |
  6. | **.***.***.**:6702 | **.***.***.**:7702 | 8fc48476+debug | leader |
  7. +--------------------+--------------------+----------------+----------+
status metaserver

get status of metaserver

Usage:

  1. curve fs status metaserver

Output:

  1. +--------------------+--------------------+----------------+--------+
  2. | externalAddr | internalAddr | version | status |
  3. +--------------------+--------------------+----------------+--------+
  4. | **.***.***.**:6800 | **.***.***.**:6800 | 8fc48476+debug | online |
  5. | **.***.***.**:6802 | **.***.***.**:6802 | 8fc48476+debug | online |
  6. | **.***.***.**:6801 | **.***.***.**:6801 | 8fc48476+debug | online |
  7. +--------------------+--------------------+----------------+--------+
status etcd

get status of etcd

Usage:

  1. curve fs status etcd

Output:

  1. +---------------------+---------+----------+
  2. | addr | version | status |
  3. +---------------------+---------+----------+
  4. | **.***.***.**:23790 | 3.4.10 | follower |
  5. | **.***.***.**:23791 | 3.4.10 | follower |
  6. | **.***.***.**:23792 | 3.4.10 | leader |
  7. +---------------------+---------+----------+
status copyset

get status of copyset

Usage:

  1. curve fs status copyset

Output:

  1. +------------+-----------+--------+--------+---------+
  2. | copysetKey | copysetId | poolId | status | explain |
  3. +------------+-----------+--------+--------+---------+
  4. | 4294967297 | 1 | 1 | ok | |
  5. | 4294967298 | 2 | 1 | ok | |
  6. | 4294967299 | 3 | 1 | ok | |
  7. | 4294967300 | 4 | 1 | ok | |
  8. | 4294967301 | 5 | 1 | ok | |
  9. | 4294967302 | 6 | 1 | ok | |
  10. | 4294967303 | 7 | 1 | ok | |
  11. | 4294967304 | 8 | 1 | ok | |
  12. | 4294967305 | 9 | 1 | ok | |
  13. | 4294967306 | 10 | 1 | ok | |
  14. | 4294967307 | 11 | 1 | ok | |
  15. | 4294967308 | 12 | 1 | ok | |
  16. +------------+-----------+--------+--------+---------+
status cluster

get status of cluster

Usage:

  1. curve fs status cluster

Output:

  1. etcd:
  2. +---------------------+---------+----------+
  3. | addr | version | status |
  4. +---------------------+---------+----------+
  5. | **.***.***.**:23790 | 3.4.10 | follower |
  6. | **.***.***.**:23791 | 3.4.10 | follower |
  7. | **.***.***.**:23792 | 3.4.10 | leader |
  8. +---------------------+---------+----------+
  9. mds:
  10. +--------------------+--------------------+----------------+----------+
  11. | addr | dummyAddr | version | status |
  12. +--------------------+--------------------+----------------+----------+
  13. | **.***.***.**:6700 | **.***.***.**:7700 | 8fc48476+debug | follower |
  14. | **.***.***.**:6701 | **.***.***.**:7701 | 8fc48476+debug | follower |
  15. | **.***.***.**:6702 | **.***.***.**:7702 | 8fc48476+debug | leader |
  16. +--------------------+--------------------+----------------+----------+
  17. meataserver:
  18. +--------------------+--------------------+----------------+--------+
  19. | externalAddr | internalAddr | version | status |
  20. +--------------------+--------------------+----------------+--------+
  21. | **.***.***.**:6800 | **.***.***.**:6800 | 8fc48476+debug | online |
  22. | **.***.***.**:6802 | **.***.***.**:6802 | 8fc48476+debug | online |
  23. | **.***.***.**:6801 | **.***.***.**:6801 | 8fc48476+debug | online |
  24. +--------------------+--------------------+----------------+--------+
  25. copyset:
  26. +------------+-----------+--------+--------+---------+
  27. | copysetKey | copysetId | poolId | status | explain |
  28. +------------+-----------+--------+--------+---------+
  29. | 4294967297 | 1 | 1 | ok | |
  30. | 4294967298 | 2 | 1 | ok | |
  31. | 4294967299 | 3 | 1 | ok | |
  32. | 4294967300 | 4 | 1 | ok | |
  33. | 4294967301 | 5 | 1 | ok | |
  34. | 4294967302 | 6 | 1 | ok | |
  35. | 4294967303 | 7 | 1 | ok | |
  36. | 4294967304 | 8 | 1 | ok | |
  37. | 4294967305 | 9 | 1 | ok | |
  38. | 4294967306 | 10 | 1 | ok | |
  39. | 4294967307 | 11 | 1 | ok | |
  40. | 4294967308 | 12 | 1 | ok | |
  41. +------------+-----------+--------+--------+---------+
  42. Cluster health is: ok

umount

umount fs

umount fs from the curvefs cluster

Usage:

  1. curve fs umount fs --fsname test1 --mountpoint siku-QiTianM420-N000:9002:/curvefs/client/mnt/home/siku/temp/mnt1

Output:

  1. +--------+-------------------------------------------------------------------+---------+
  2. | fsName | mountpoint | result |
  3. +--------+-------------------------------------------------------------------+---------+
  4. | test1 | siku-QiTianM420-N000:9003:/curvefs/client/mnt/home/siku/temp/mnt2 | success |
  5. +--------+-------------------------------------------------------------------+---------+

usage

usage inode

get the inode usage of curvefs

Usage:

  1. curve fs usage inode

Output:

  1. +------+----------------+-----+
  2. | fsId | fsType | num |
  3. +------+----------------+-----+
  4. | 2 | inode_num | 3 |
  5. | 2 | type_directory | 1 |
  6. | 2 | type_file | 0 |
  7. | 2 | type_s3 | 2 |
  8. | 2 | type_sym_link | 0 |
  9. | 3 | inode_num | 1 |
  10. | 3 | type_directory | 1 |
  11. | 3 | type_file | 0 |
  12. | 3 | type_s3 | 0 |
  13. | 3 | type_sym_link | 0 |
  14. +------+----------------+-----+
usage metadata

get the usage of metadata in curvefs

Usage:

  1. curve fs usage metadata

Output:

  1. +--------------------+---------+---------+---------+
  2. | metaserverAddr | total | used | left |
  3. +--------------------+---------+---------+---------+
  4. | **.***.***.**:6800 | 2.0 TiB | 182 GiB | 1.8 TiB |
  5. | **.***.***.**:6802 | 2.0 TiB | 182 GiB | 1.8 TiB |
  6. | **.***.***.**:6801 | 2.0 TiB | 182 GiB | 1.8 TiB |
  7. +--------------------+---------+---------+---------+

warmup

warmup add

warmup a file(directory), or given a list file contains a list of files(directories) that you want to warmup.

Usage:

  1. curve fs warmup add /mnt/curvefs/warmup
  2. curve fs warmup add --filelist /mnt/curvefs/warmup.list

curve fs warmup add /mnt/curvefs/warmup will warmup a file(directory). /mnt/curvefs/warmup.list

bs

list

list logical-pool

list all logical pool information

Usage:

  1. curve bs list logical-pool

Output:

  1. +----+-------+-----------+----------+-------+------+--------+------+--------+---------+
  2. | ID | NAME | PHYPOOLID | TYPE | ALLOC | SCAN | TOTAL | USED | LEFT | RECYCLE |
  3. +----+-------+-----------+----------+-------+------+--------+------+--------+---------+
  4. | 1 | pool1 | 1 | PAGEFILE | ALLOW | true | 44 GiB | 0 B | 44 GiB | 0 B |
  5. +----+-------+-----------+----------+-------+------+--------+------+--------+---------+
list server

list all server information in curvebs

Usage:

  1. curve bs list server

Output:

  1. +----+---------------------+------+---------+-------------------+-------------------+
  2. | ID | HOSTNAME | ZONE | PHYPOOL | INTERNALADDR | EXTERNALADDR |
  3. +----+---------------------+------+---------+-------------------+-------------------+
  4. | 1 | ***************_0_0 | 1 | 1 | **.***.**.**:**** | **.***.**.**:**** |
  5. +----+---------------------+------+ +-------------------+-------------------+
  6. | 2 | ***************_1_0 | 2 | | **.***.**.**:**** | **.***.**.**:**** |
  7. +----+---------------------+------+ +-------------------+-------------------+
  8. | 3 | ***************_2_0 | 3 | | **.***.**.**:**** | **.***.**.**:**** |
  9. +----+---------------------+------+---------+-------------------+-------------------+
list client

list all client information in curvebs

  1. curve bs list client

Output:

  1. +------------+------+
  2. | IP | PORT |
  3. +------------+------+
  4. | 172.17.0.2 | 9000 |
  5. +------------+------+
list dir

list dir information in curvebs

  1. curve bs list dir --path /

Output:

  1. +------+-------------+----------+-----------------+------------+---------------------+---------------+-------------+
  2. | ID | FILENAME | PARENTID | FILETYPE | OWNER | CTIME | ALLOCATEDSIZE | FILESIZE |
  3. +------+-------------+----------+-----------------+------------+---------------------+---------------+-------------+
  4. | 1 | /RecycleBin | 0 | INODE_DIRECTORY | root | 2022-11-12 16:38:25 | 0 B | 0 B |
  5. +------+-------------+----------+-----------------+------------+---------------------+---------------+-------------+
list space

show curvebs all disk type space, include total space and used space

  1. curve bs list space

Output:

  1. +----------+---------+---------+---------+------------+---------+
  2. | TYPE | TOTAL | USED | LEFT | RECYCLABLE | CREATED |
  3. +----------+---------+---------+---------+------------+---------+
  4. | physical | *** GiB | *** GiB | *** GiB | - | - |
  5. +----------+---------+---------+---------+------------+---------+
  6. | logical | *** GiB | *** GiB | *** GiB | *** GiB | *** GiB |
  7. +----------+---------+---------+---------+------------+---------+
list chunkserver

list chunkserver information in curvebs

  1. curve bs list chunkserver

Output:

  1. +----+------+-----------+------+-----------+------------+------------+-----------------------------------------------+--------------+-------------+------------------+-----------+
  2. | ID | TYPE | IP | PORT | RWSTATUS | DISKSTATE | COPYSETNUM | MOUNTPOINT | DISKCAPACITY | DISKUSED | UNHEALTHYCOPYSET | EXTADDR |
  3. +----+------+-----------+------+-----------+------------+------------+-----------------------------------------------+--------------+-------------+------------------+-----------+
  4. | 1 | nvme | 127.0.0.1 | 8201 | READWRITE | DISKNORMAL | 100 | local:///curvebs/playground/chunkserver1/data | 39 GiB | 42140479488 | 0 % | 127.0.0.1 |
  5. +----+ + +------+ + +------------+-----------------------------------------------+--------------+-------------+------------------+ +
  6. | 2 | | | 8202 | | | 100 | local:///curvebs/playground/chunkserver2/data | 39 GiB | 42140479488 | 0 % | |
  7. +----+ + +------+ + +------------+-----------------------------------------------+--------------+-------------+------------------+ +
  8. | 3 | | | 8200 | | | 100 | local:///curvebs/playground/chunkserver0/data | 39 GiB | 42140479488 | 0 % | |
  9. +----+------+-----------+------+-----------+------------+------------+-----------------------------------------------+--------------+-------------+------------------+-----------+
list scan-status

list curvebs all copyset that scanning is false

  1. curve bs list scan-status

Output:

  1. +-------------+-----------+
  2. | LOGICALPOOL | COPYSETID |
  3. +-------------+-----------+
  4. | 1 | 1 |
  5. +-------------+-----------+
  6. | 1 | 10 |
  7. +-------------+-----------+
  8. | 1 | 100 |
  9. +-------------+-----------+
  10. | 1 | 11 |
  11. +-------------+-----------+
  12. | 1 | 12 |
  13. +-------------+-----------+
  14. | 1 | 13 |
  15. +-------------+-----------+
  16. | 1 | 14 |
  17. +-------------+-----------+
  18. | 1 | 15 |
  19. +-------------+-----------+
  20. | 1 | 16 |
  21. +-------------+-----------+
  22. | 1 | 17 |
  23. +-------------+-----------+
  24. | 1 | 18 |
  25. +-------------+-----------+
  26. | 1 | 19 |
  27. +-------------+-----------+
  28. | 1 | 2 |
  29. +-------------+-----------+
  30. | 1 | 20 |
  31. +-------------+-----------+
  32. | 1 | 21 |
  33. +-------------+-----------+
  34. | 1 | 22 |
  35. +-------------+-----------+
  36. | 1 | 23 |
  37. +-------------+-----------+
  38. | 1 | 24 |
  39. +-------------+-----------+
  40. | 1 | 25 |
  41. +-------------+-----------+
  42. | 1 | 26 |
  43. +-------------+-----------+
  44. | 1 | 27 |
  45. +-------------+-----------+
  46. | 1 | 28 |
  47. +-------------+-----------+
  48. | 1 | 29 |
  49. +-------------+-----------+
  50. | 1 | 3 |
  51. +-------------+-----------+
  52. | 1 | 30 |
  53. +-------------+-----------+
  54. | 1 | 31 |
  55. +-------------+-----------+
  56. | 1 | 32 |
  57. +-------------+-----------+
  58. | 1 | 33 |
  59. +-------------+-----------+
  60. | 1 | 34 |
  61. +-------------+-----------+
  62. | 1 | 35 |
  63. +-------------+-----------+
  64. | 1 | 36 |
  65. +-------------+-----------+
  66. | 1 | 37 |
  67. +-------------+-----------+
  68. | 1 | 38 |
  69. +-------------+-----------+
  70. | 1 | 39 |
  71. +-------------+-----------+
  72. | 1 | 4 |
  73. +-------------+-----------+
  74. | 1 | 40 |
  75. +-------------+-----------+
  76. | 1 | 41 |
  77. +-------------+-----------+
  78. | 1 | 42 |
  79. +-------------+-----------+
  80. | 1 | 43 |
  81. +-------------+-----------+
  82. | 1 | 44 |
  83. +-------------+-----------+
  84. | 1 | 45 |
  85. +-------------+-----------+
  86. | 1 | 46 |
  87. +-------------+-----------+
  88. | 1 | 47 |
  89. +-------------+-----------+
  90. | 1 | 48 |
  91. +-------------+-----------+
  92. | 1 | 49 |
  93. +-------------+-----------+
  94. | 1 | 5 |
  95. +-------------+-----------+
  96. | 1 | 50 |
  97. +-------------+-----------+
  98. | 1 | 51 |
  99. +-------------+-----------+
  100. | 1 | 52 |
  101. +-------------+-----------+
  102. | 1 | 53 |
  103. +-------------+-----------+
  104. | 1 | 54 |
  105. +-------------+-----------+
  106. | 1 | 55 |
  107. +-------------+-----------+
  108. | 1 | 56 |
  109. +-------------+-----------+
  110. | 1 | 57 |
  111. +-------------+-----------+
  112. | 1 | 58 |
  113. +-------------+-----------+
  114. | 1 | 59 |
  115. +-------------+-----------+
  116. | 1 | 6 |
  117. +-------------+-----------+
  118. | 1 | 60 |
  119. +-------------+-----------+
  120. | 1 | 61 |
  121. +-------------+-----------+
  122. | 1 | 62 |
  123. +-------------+-----------+
  124. | 1 | 63 |
  125. +-------------+-----------+
  126. | 1 | 64 |
  127. +-------------+-----------+
  128. | 1 | 65 |
  129. +-------------+-----------+
  130. | 1 | 66 |
  131. +-------------+-----------+
  132. | 1 | 67 |
  133. +-------------+-----------+
  134. | 1 | 68 |
  135. +-------------+-----------+
  136. | 1 | 69 |
  137. +-------------+-----------+
  138. | 1 | 7 |
  139. +-------------+-----------+
  140. | 1 | 70 |
  141. +-------------+-----------+
  142. | 1 | 71 |
  143. +-------------+-----------+
  144. | 1 | 72 |
  145. +-------------+-----------+
  146. | 1 | 73 |
  147. +-------------+-----------+
  148. | 1 | 74 |
  149. +-------------+-----------+
  150. | 1 | 75 |
  151. +-------------+-----------+
  152. | 1 | 76 |
  153. +-------------+-----------+
  154. | 1 | 77 |
  155. +-------------+-----------+
  156. | 1 | 78 |
  157. +-------------+-----------+
  158. | 1 | 79 |
  159. +-------------+-----------+
  160. | 1 | 8 |
  161. +-------------+-----------+
  162. | 1 | 80 |
  163. +-------------+-----------+
  164. | 1 | 81 |
  165. +-------------+-----------+
  166. | 1 | 82 |
  167. +-------------+-----------+
  168. | 1 | 83 |
  169. +-------------+-----------+
  170. | 1 | 84 |
  171. +-------------+-----------+
  172. | 1 | 85 |
  173. +-------------+-----------+
  174. | 1 | 86 |
  175. +-------------+-----------+
  176. | 1 | 87 |
  177. +-------------+-----------+
  178. | 1 | 88 |
  179. +-------------+-----------+
  180. | 1 | 89 |
  181. +-------------+-----------+
  182. | 1 | 9 |
  183. +-------------+-----------+
  184. | 1 | 90 |
  185. +-------------+-----------+
  186. | 1 | 91 |
  187. +-------------+-----------+
  188. | 1 | 92 |
  189. +-------------+-----------+
  190. | 1 | 93 |
  191. +-------------+-----------+
  192. | 1 | 94 |
  193. +-------------+-----------+
  194. | 1 | 95 |
  195. +-------------+-----------+
  196. | 1 | 96 |
  197. +-------------+-----------+
  198. | 1 | 97 |
  199. +-------------+-----------+
  200. | 1 | 98 |
  201. +-------------+-----------+
  202. | 1 | 99 |
  203. +-------------+-----------+
list may-broken-vol

list may broken volumes

Usage:

  1. curve bs list may-broken-vol

Output:

  1. +----------+
  2. | FILENAME |
  3. +----------+
  4. | test |
  5. +----------+

clean-recycle

clean the recycle bin

Usage:

  1. curve bs clean-recycle --recycleprefix=/test --expiredtime=1h

Output:

  1. +---------+
  2. | RESULT |
  3. +---------+
  4. | success |
  5. +---------+

query

query file

query the file info and actual space

Usage:

  1. curve bs query file --path=/test

Output:

  1. +------+------+----------------+-------+--------+---------+--------+-----+---------------------+--------------+---------+-----------------+----------+
  2. | ID | NAME | TYPE | OWNER | CHUNK | SEGMENT | LENGTH | SEQ | CTIME | STATUS | STRIPE | THROTTLE | ALLOC |
  3. +------+------+----------------+-------+--------+---------+--------+-----+---------------------+--------------+---------+-----------------+----------+
  4. | 1003 | test | INODE_PAGEFILE | test | 16 MiB | 1.0 GiB | 10 GiB | 1 | 2022-08-29 17:00:55 | kFileCreated | count:0 | type:IOPS_TOTAL | size:0 B |
  5. | | | | | | | | | | | uint:0 | limit:2000 | |
  6. | | | | | | | | | | | | type:BPS_TOTAL | |
  7. | | | | | | | | | | | | limit:125829120 | |
  8. +------+------+----------------+-------+--------+---------+--------+-----+---------------------+--------------+---------+-----------------+----------+
query chunk

query the location of the chunk corresponding to the offset

Usage:

  1. curve bs query chunk --path /test1 --offset 1008600000

Output:

  1. +-------+-------------+---------+------------+----------------------+
  2. | CHUNK | LOGICALPOOL | COPYSET | GROUP | LOCATION |
  3. +-------+-------------+---------+------------+----------------------+
  4. | 61 | 1 | 61 | 4294967357 | ***.***.***.***:**** |
  5. | | | | | ***.***.***.***:**** |
  6. | | | | | ***.***.***.***:**** |
  7. +-------+-------------+---------+------------+----------------------+
query segment

query the segments info of the file

Usage:

  1. curve bs query seginfo --path /test1

Output:

  1. +-------------+-------------+-----------+------------+---------+-------+
  2. | LOGICALPOOL | SEGMENTSIZE | CHUNKSIZE | START | COPYSET | CHUNK |
  3. +-------------+-------------+-----------+------------+---------+-------+
  4. | 1 | 1073741824 | 16777216 | 0 | 1 | 1 |
  5. + + + + +---------+-------+
  6. | ...... |
  7. + + + +------------+---------+-------+
  8. | | | | 9663676416 | 1 | 101 |
  9. + + + + +---------+-------+
  10. | ...... |
  11. + + + + +---------+-------+
  12. | | | | | 99 | 99 |
  13. +-------------+-------------+-----------+------------+---------+-------+
query scan-status

quey ScanStatus Info in bs

Usage:

  1. curve bs query scan-satus --copysetid 1 --logicalpoolid 1

Output:

  1. +-------------+-----------+-------+-------------+--------------------+
  2. | LOGICALPOOL | COPYSETID | SCAN | LASTSCANSEC | LASTSCANCONSISTENT |
  3. +-------------+-----------+-------+-------------+--------------------+
  4. | 1 | 1 | false | 1684425801 | true |
  5. +-------------+-----------+-------+-------------+--------------------+

status

status etcd

get the etcd status of curvebs

Usage:

  1. curve bs status etcd

Output:

  1. +---------------------+---------+----------+
  2. | ADDR | VERSION | STATUS |
  3. +---------------------+---------+----------+
  4. | ***.***.*.***:***** | 3.4.10 | follower |
  5. +---------------------+ + +
  6. | ***.***.*.***:***** | | |
  7. +---------------------+ +----------+
  8. | ***.***.*.***:***** | | leader |
  9. +---------------------+---------+----------+
status mds

get the mds status of curvebs

Usage:

  1. curve bs status mds

Output:

  1. +-------------------+-------------------+-------------------+----------+
  2. | ADDR | DUMMYADDR | VERSION | STATUS |
  3. +-------------------+-------------------+-------------------+----------+
  4. | **.***.**.**:**** | **.***.**.**:**** | ci+562296c7+debug | follower |
  5. +-------------------+-------------------+ + +
  6. | **.***.**.**:**** | **.***.**.**:**** | | |
  7. +-------------------+-------------------+ +----------+
  8. | **.***.**.**:**** | **.***.**.**:**** | | leader |
  9. +-------------------+-------------------+-------------------+----------+
status client

get the client status of curvebs

Usage:

  1. curve bs status client

Output:

  1. +-------------+----------------+---------------------+-----+
  2. | TYPE | VERSION | ADDR | NUM |
  3. +-------------+----------------+---------------------+-----+
  4. | nebd-server | 9.9.9+2c4861ca | ***.***.**.***:**** | 2 |
  5. + + +---------------------+ +
  6. | | | ***.***.**.***:**** | |
  7. +-------------+----------------+---------------------+-----+
status snapshotserver

get the mds status of curvebs

Usage:

  1. curve bs status snapshotserver

Output:

  1. +---------------------+---------------------+-------------------+----------+
  2. | ADDR | DUMMYADDR | VERSION | STATUS |
  3. +---------------------+---------------------+-------------------+----------+
  4. | ***.***.**.***:**** | ***.***.**.***:**** | ci+562296c7+debug | follower |
  5. +---------------------+---------------------+ + +
  6. | ***.***.**.***:**** | ***.***.**.***:**** | | |
  7. +---------------------+---------------------+ +----------+
  8. | ***.***.**.***:**** | ***.***.**.***:**** | | leader |
  9. +---------------------+---------------------+-------------------+----------+
status chunkserver

get the chunkserver status of curvebs

Usage:

  1. curve bs status chunkserver

Output:

  1. +------------------+------------------+----------------+--------+------------+
  2. | EXTERNALADDR | INTERNALADDR | VERSION | STATUS | RECOVERING |
  3. +------------------+------------------+----------------+--------+------------+
  4. | **************** | **************** | d9b6bb98+debug | online | false |
  5. +------------------+------------------+ + + +
  6. | **************** | **************** | | | |
  7. +------------------+------------------+ + + +
  8. | **************** | **************** | | | |
  9. +------------------+------------------+----------------+--------+------------+
status copyset

get the copyset status of curvebs

Usage:

  1. curve bs status copyset

Output:

  1. +------------+-----------+--------+--------+--------+---------+
  2. | COPYSETKEY | COPYSETID | POOLID | STATUS | LOGGAP | EXPLAIN |
  3. +------------+-----------+--------+--------+--------+---------+
  4. | 4294967297 | 1 | 1 | ok | 0 | |
  5. +------------+-----------+ + +--------+---------+
  6. | ...... | ...... | ...... | ...... | ...... | ...... |
  7. +------------+-----------+ + +--------+---------+
  8. | 4294967395 | 99 | | | 0 | |
  9. +------------+-----------+--------+--------+--------+---------+

delete

delete peer

delete the peer from the copyset

Usage:

  1. curve bs delete peer

Output:

  1. +------------------+------------------+---------+---------+--------+
  2. | LEADER | PEER | COPYSET | RESULT | REASON |
  3. +------------------+------------------+---------+---------+--------+
  4. | 127.0.0.1:8201:0 | 127.0.0.1:8202:0 | (1:29) | success | null |
  5. +------------------+------------------+---------+---------+--------+
delete volume
delete volume clone

delete volume clone tasks in curvebs cluster

Usage:

  1. curve bs delete volume clone

Output:

  1. +------+--------------------------------------+--------------------------------------+-------+---------+
  2. | USER | SRC | TASK ID | FILE | RESULT |
  3. +------+--------------------------------------+--------------------------------------+-------+---------+
  4. | root | a19b5e5e-b306-488f-8e6d-d87282c869cb | d26e27a8-fcbd-4f7a-adf8-53795217cbb0 | /root | success |
  5. +------+--------------------------------------+--------------------------------------+-------+---------+
delete volume recover

delete volume recover tasks in curvebs cluster

Usage:

  1. curve bs delete volume recover

Output:

  1. +------+--------------------------------------+--------------------------------------+-------+---------+
  2. | USER | SRC | TASK ID | FILE | RESULT |
  3. +------+--------------------------------------+--------------------------------------+-------+---------+
  4. | root | a19b5e5e-b306-488f-8e6d-d87282c869cb | 9dfa8699-a275-4891-8ec2-e447a0ccc77c | /root | success |
  5. +------+--------------------------------------+--------------------------------------+-------+---------+

update

update peer

reset peer

Usage:

  1. curve bs update peer 127.0.0.0:8200:0 --logicalpoolid=1 --copysetid=1

Output:

  1. +----------------------+---------+---------+--------+
  2. | PEER | COPYSET | RESULT | REASON |
  3. +----------------------+---------+---------+--------+
  4. | 127.0.0.0:8200:0 | (1:1) | success | null |
  5. +----------------------+---------+---------+--------+
update leader

transfer leader

Usage:

  1. curve bs update leader 127.0.0.1:8202:0 --logicalpoolid=1 --copysetid=1 --peers=127.0.0.1:8200:0,127.0.0.1:8201:0,127.0.0.1:8202:0

Output:

  1. +-----------------------+-----------------------+---------+---------+
  2. | LEADER | OLDLEADER | COPYSET | RESULT |
  3. +-----------------------+-----------------------+---------+---------+
  4. | ***.***.**.***:****:* | ***.***.**.***:****:* | (1:1) | success |
  5. +-----------------------+-----------------------+---------+---------+
update file

expand pagefile

Usage:

  1. curve bs update file --path /test2/test1 --size 10

Output:

  1. +---------+
  2. | RESULT |
  3. +---------+
  4. | success |
  5. +---------+
update throttle

update file throttle params

Usage:

  1. curve bs update throttle --path /test1 --type=bps_total --limit 20000

Output:

  1. +---------+
  2. | RESULT |
  3. +---------+
  4. | success |
  5. +---------+
update scan-state

enable/disable scan for logical pool

Usage:

  1. curve bs update scan-state --logicalpoolid 1 [--scan=true/false]

Output:

  1. +----+------+---------+--------+
  2. | ID | SCAN | RESULT | REASON |
  3. +----+------+---------+--------+
  4. | 1 | true | success | null |
  5. +----+------+---------+--------+
update copyset availflag

update copyset availflag

Usage:

  1. curve bs update copyset availflag --availflag=true [--dryrun=true/false]

Output:

  1. +--------+-----------+---------------+--------+
  2. | POOLID | COPYSETID | AVAILFLAG | DRYRUN |
  3. +--------+-----------+---------------+--------+
  4. | 1 | 1 | false => true | true |
  5. +--------+-----------+---------------+--------+
update leader-schedule

“rapidly transfer leader

Usage:

  1. curve bs update leader-schedule --logicalpoolid 1
  2. curve bs update leader-schedule --all

Output:

  1. +---------+--------+
  2. | RESULT | REASON |
  3. +---------+--------+
  4. | success | null |
  5. +---------+--------+

create

create file

create pagefile

Usage:

  1. curve bs create file --path /test2/test4 --size 10

Output:

  1. +---------+
  2. | RESULT |
  3. +---------+
  4. | success |
  5. +---------+
create dir

create directory

Usage:

  1. curve bs create dir --path /test2/test5

Output:

  1. +---------+
  2. | RESULT |
  3. +---------+
  4. | success |
  5. +---------+

check

check copyset

check copysets health in curvebs

Usage:

  1. curve bs check copyset --copysetid 1 --logicalpoolid 1

Output:

  1. +------------+-----------+--------+--------+--------+---------+
  2. | COPYSETKEY | COPYSETID | POOLID | STATUS | LOGGAP | EXPLAIN |
  3. +------------+-----------+--------+--------+--------+---------+
  4. | 4294967297 | 1 | 1 | ok | 0 | |
  5. +------------+-----------+--------+--------+--------+---------+
check chunkserver

check chunkserver health in curvebs

Usage:

  1. curve bs check chunkserver --chunkserverid 1

Output:

  1. +------------+-----------+--------+--------+--------+---------+
  2. | CHUNKSERVERID | HELATHYCOUNT | UNHEALTHYCOUNT | UNHEALTHYRATIO |
  3. +------------+-----------+--------+--------+--------+---------+
  4. | 1 | 100 | 0 | 0.00% |
  5. +------------+-----------+--------+--------+--------+---------+
check server

check copysets health in server

Usage:

  1. curve bs check server --serverid 1
  2. curve bs check server --ip 127.0.0.1 --port 8200

Output:

  1. +--------+-----------+-------+------------------+
  2. | SERVER | IP | TOTAL | UNHEALTHYCOPYSET |
  3. +--------+-----------+-------+------------------+
  4. | 1 | 127.0.0.1 | 100 | 0(0%) |
  5. +--------+-----------+-------+------------------+

snapshot

snapshot copyset

take snapshot for copyset

Usage:

  1. curve bs snapshot copyset 127.0.0.0:8200:0 --logicalpoolid=1 --copysetid=1

Output:

  1. +-----------------------+---------+---------+
  2. | PEER | COPYSET | RESULT |
  3. +-----------------------+---------+---------+
  4. | ***.***.**.***:****:* | (**:**) | success |
  5. +-----------------------+---------+---------+
  1. curve bs snapshot copyset --all

Output:

  1. +----------------+---------+
  2. | CHUNKSERVER | RESULT |
  3. +----------------+---------+
  4. | **.*.*.**:8200 | failed |
  5. +----------------+---------+
  6. | **.*.*.**:8201 | success |
  7. +----------------+ +
  8. | **.*.*.**:8202 | |
  9. +----------------+---------+

Comparison of old and new commands

curve fs

oldnew
curvefs_tool check-copysetcurve fs check copyset
curvefs_tool create-fscurve fs create fs
curvefs_tool create-topologycurve fs create topology
curvefs_tool delete-fscurve fs delete fs
curvefs_tool list-copysetcurve fs list copyset
curvefs_tool list-fscurve fs list fs
curvefs_tool list-fscurve fs list mountpoint
curvefs_tool list-partitioncurve fs list partition
curvefs_tool query-copysetcurve fs query copyset
curvefs_tool query-fscurve fs query fs
curvefs_tool query-inodecurve fs query inode
curvefs_tool query-metaservercurve fs query metaserver
curvefs_tool query-partitioncurve fs query partition
curvefs_tool status-mdscurve fs status mds
curvefs_tool status-metaservercurve fs status metaserver
curvefs_tool status-etcdcurve fs status etcd
curvefs_tool status-copysetcurve fs status copyset
curvefs_tool status-clustercurve fs status cluster
curvefs_tool umount-fscurve fs umount fs
curvefs_tool usage-inodecurve fs usage inode
curvefs_tool usage-metadatacurve fs usage metadata

curve bs

oldnew
curve_ops_tool logical-pool-listcurve bs list logical-pool
curve_ops_tool get -fileName=curve bs query file -path
curve_ops_tool etcd-statuscurve bs status etcd
curve_ops_tool mds-statuscurve bs status mds
curve_ops_tool server-listcurve bs list server
curve_ops_tool client-listcurve bs list client
curve_ops_tool deletecurve bs delete file
curve_ops_tool listcurve bs list dir
curve_ops_tool createcurve bs create file/dir
curve_ops_tool seginfocurve bs query seginfo
curve_ops_tool chunk-locationcurve bs query chunk
curve_ops_tool remove-peercurve bs delete peer
curve_ops_tool reset-peercurve bs update peer
curve_ops_tool spacecurve bs list space
curve_ops_tool update-throttlecurve bs update throttle
curve_ops_tool check-copysetcurve bs check copyset
curve_ops_tool client-statuscurve bs status client
curve_ops_tool check-operatorcurve bs check operator
curve_ops_tool snapshot-clone-statuscurve bs status snapshotserver
curve_ops_tool transfer-leadercurve bs update leader
curve_ops_tool do-snapshotcurve bs snapshot copyset
curve_ops_tool set-scan-statecurve bs update scan-state
curve_ops_tool chunkserver-statuscurve bs status chunkserver
curve_ops_tool chunkserver-listcurve bs list chunkserver
curve_ops_tool set-copyset-availflagcurve bs update copyset availflag
curve_ops_tool scan-statuscurve bs list/query scan-status
curve_ops_tool clean-recyclecurve bs clean-recycle
curve_ops_tool copysets-statuscurve bs status copyset
curve_ops_tool list-may-broken-volcurve bs list may-broken-vol
curve_ops_tool rapid-leader-schedulecurve bs update leader-schedule
curve_ops_tool do-snapshot-allcurve bs snapshot —all
curve_ops_tool check-chunkservercurbe bs check chunkserver
curve_ops_tool status
curve_ops_tool check-consistency
curve_ops_tool check-servercurve bs check server