OS Manuals

/usr/bin/cephfs-data-scan

Common utilities to mount and interact with a Ceph storage cluster

From ceph-20-common 20.2.5-r0 (os), captured 2026-11-05 by running cephfs-data-scan --help (exit 0). permalink

Usage:
  cephfs-data-scan init [--force-init]
  cephfs-data-scan scan_extents [--force-pool] [--worker_n N --worker_m M] [<data pool name> [<extra data pool name> ...]]
  cephfs-data-scan scan_inodes [--force-pool] [--force-corrupt] [--worker_n N --worker_m M] [<data pool name>]
  cephfs-data-scan pg_files <path> <pg id> [<pg id>...]
  cephfs-data-scan scan_links

    --force-corrupt: overrite apparently corrupt structures
    --force-init: write root inodes even if they exist
    --force-pool: use data pool even if it is not in FSMap
    --worker_m: Maximum number of workers
    --worker_n: Worker number, range 0-(worker_m-1)

  cephfs-data-scan scan_frags [--force-corrupt]
  cephfs-data-scan cleanup [<data pool name>]

  --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 (5)
OptionDescriptionSource
--id IDset ID portion of my namehelp
--cluster NAMEset cluster name (default: ceph)help
--setuser USERset uid to user or uid (and gid to user's gid)help
--setgroup GROUPset gid to group or gidhelp
--versionshow version and quithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.