OS Manuals

/usr/bin/ceph-mon

Ceph Monitor daemon

From ceph-fips-19-mon 19.2.7-r4 (enterprise-packages), captured 2026-11-08 by running ceph-mon --help (exit 0). permalink

usage: ceph-mon -i <ID> [flags]
  --debug_mon n
        debug monitor level (e.g. 10)
  --mkfs
        build fresh monitor fs
  --force-sync
        force a sync from another mon by wiping local data (BE CAREFUL)
  --yes-i-really-mean-it
        mandatory safeguard for --force-sync
  --compact
        compact the monitor store
  --osdmap <filename>
        only used when --mkfs is provided: load the osdmap from <filename>
  --inject-monmap <filename>
        write the <filename> monmap to the local monitor store and exit
  --extract-monmap <filename>
        extract the monmap from the local monitor store and exit
  --use-mon-keyring
        use the mon keyring as authoritative for the mon. secret
  --mon-data <directory>
        where the mon store and keyring are located
  --set-crush-location <bucket>=<foo>        sets monitor's crush bucket location (only for stretch mode)
  --conf/-c FILE    read configuration from the given configuration file
  --id/-i 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

  -d                run in foreground, log to stderr
  -f                run in foreground, log to usual location

  --debug_ms N      set message debug level (e.g. 1)
Options (21)
OptionDescriptionSource
--debug_mon ndebug monitor level (e.g. 10)help
--mkfsInitialize the mon data directory with seed information to form and initial ceph file system or to join an existing monitor cluster.help + man
--force-syncforce a sync from another mon by wiping local data (BE CAREFUL)help
--yes-i-really-mean-itmandatory safeguard for --force-synchelp
--compactcompact the monitor storehelp
--osdmap filenameonly used when --mkfs is provided: load the osdmap from <filename>help
--inject-monmap filenamewrite the <filename> monmap to the local monitor store and exithelp
--extract-monmap filenameextract the monmap from the local monitor store and exithelp
--use-mon-keyringUse the mon's keyring file as authoritative for the "mon." secret.help + man
--mon-data directorywhere the mon store and keyring are locatedhelp
--set-crush-location bucket>=<foosets monitor's crush bucket location (only for stretch mode)help
--cluster NAMEset cluster name (default: ceph)help
--setuser USERset uid to user or uid (and gid to user's gid)help + man
--setgroup GROUPset gid to group or gidhelp + man
--versionshow version and quithelp
-dDebug mode: like -f, but also send all log output to stderr.help + man
-f, --foregroundForeground: do not daemonize after startup (run in foreground).help + man
--debug_ms Nset message debug level (e.g. 1)help
-c, --conf ceph.confUse ceph.conf configuration file instead of the default /etc/ceph/ceph.conf to determine monitor addresses during startup. (in the manual page but not in --help)man
--keyringSpecify a keyring for use with --mkfs. (in the manual page but not in --help)man
--no-config-fileSignal that we don't want to rely on a ceph.conf, either user provided or the default, to run the daemon. (in the manual page but not in --help)man

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