Ozone Debug

调试 OM

师成师成· 更新于 2026-09-28· 阅读 3 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

与 OM 相关的调试命令。

它包含以下子命令:

generate-compaction-dag

为 OM.db 实例的当前压缩日志生成一张 DAG 图像,并将其下载到指定位置。

Usage: ozone debug om generate-compaction-dag [-hV] [--verbose] --db=<dbPath>
       -o=<imageLocation>
Create an image of the current compaction log DAG. This command is an offline
command. i.e., it can run on any instance of om.db and does not require OM to
be up.
      --db=<dbPath>   Path to OM RocksDB
  -h, --help          Show this help message and exit.
  -o, --output-file=<imageLocation>
                      Path to location at which image will be downloaded.
                        Should include the image file name with ".png"
                        extension.
  -V, --version       Print version information and exit.
      --verbose       More verbose output. Show the stack trace of the errors.

prefix

解析前缀的内容。

Usage: ozone debug om prefix [--verbose] --bucket=<bucket> --db=<dbPath>
                             --path=<filePath> --volume=<volume>
Parse prefix contents
      --bucket=<bucket>   bucket name
      --db=<dbPath>       Path to OM RocksDB
      --path=<filePath>   prefixFile Path
      --verbose           More verbose output. Show the stack trace of the
                            errors.
      --volume=<volume>   volume name

下一步 >>

评论

登录后参与评论

正在加载评论…