Usage:
cephfs-journal-tool [options] journal <command>
<command>:
inspect
import <path> [--force]
export <path>
reset [--force] <--yes-i-really-really-mean-it>
cephfs-journal-tool [options] header <get|set> <field> <value>
<field>: [trimmed_pos|expire_pos|write_pos|pool_id]
cephfs-journal-tool [options] event <effect> <selector> <output> [special options]
<selector>:
--range=<start>..<end>
--path=<substring>
--inode=<integer>
--type=<UPDATE|OPEN|SESSION...><
--frag=<ino>.<frag> [--dname=<dentry string>]
--client=<session id integer>
<effect>: [get|recover_dentries|splice]
<output>: [summary|list|binary|json] [--path <path>]
General options:
--rank=filesystem:{mds-rank|all} journal rank or "all" ranks (mandatory)
--journal=<mdlog|purge_queue> Journal type (purge_queue means
this journal is used to queue for purge operation,
default is mdlog, and only mdlog support event mode)
Special options
--alternate-pool <name> Alternative metadata pool to target
when using recover_dentries.
--max-rss <bytes> Maximum RSS allowed per batch during
event recover_dentries.
--conf/-c FILE read configuration from the given configuration file
--id ID set ID portion of my name
--name/-n TYPE.ID set name
--cluster NAME set cluster name (default: ceph)
--setuser USER set uid to user or uid (and gid to user's gid)
--setgroup GROUP set gid to group or gid
--version show version and quit
Options (12)
| Option | Description | Source |
|---|
--range start>..<end | | help |
--path substring | | help |
--inode integer | | help |
--type UPDATE|OPEN|SESSION... | | help |
--journal mdlog|purge_queue | Journal type (purge_queue means this journal is used to queue for purge operation, default is mdlog, and only mdlog support event mode) | help |
--alternate-pool name | Alternative metadata pool to target when using recover_dentries. | help |
--max-rss bytes | Maximum RSS allowed per batch during event recover_dentries. | help |
--id ID | set ID portion of my name | help |
--cluster NAME | set cluster name (default: ceph) | help |
--setuser USER | set uid to user or uid (and gid to user's gid) | help |
--setgroup GROUP | set gid to group or gid | help |
--version | show version and quit | help |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.