注意

本文档适用于 Ceph 开发版本。

欢迎世界模块

这是一个用于文档目的的简单模块骨架。

启用

运行以下命令以启用hello模块的示例:

ceph mgr module enable hello

运行以下命令以确保hello模块已启用:

ceph mgr module ls

编辑模块文件(位于src/pybind/mgr/hello/module.py)后,

ceph mgr module disable hello
ceph mgr module enable hello

或者,运行以下命令以重新加载hello模块并应用其设置的更改:

init-ceph restart mgr

运行以下命令以运行模块:

ceph hello

日志位于以下文件:

build/out/mgr.x.log

文档化

添加新的 mgr 模块后,请确保将其文档添加到doc/mgr/module_name.rst。此外,请将指向您新模块的链接添加到doc/mgr/index.rst.

由 Ceph 基金会带给您

Ceph 文档是一个社区资源,由非盈利的 Ceph 基金会资助和托管Ceph Foundation. 如果您想支持这一点和我们的其他工作,请考虑加入现在加入.