yati1998/odf-cli

ODF CLI tool

★ 0Forks 0GitHub ↗Compare

README

odf-cli

The ODF CLI tool provides configuration and troubleshooting commands for OpenShift Data Foundation.

Commands

  • odf set recovery-profile <profile>: Set the recovery profile to favor new IO, recovery, or balanced mode with options high_client_ops, high_recovery_ops, or balanced. The default is balanced.
  • odf get recovery-profile: Get the recovery profile value.
  • odf set log-level <ceph-daemon> <log-level>: Set the log level for Ceph daemons like OSD, mon, mds etc.
  • odf help : Display help text

Documentation

Visit docs below for complete details about each command and their flags uses.

Root args

These are the arguments that apply to all commands:

  • -h|--help: this will print brief command help text.

    odf -h
  • -n|--namespace='openshift-storage': the Openshift namespace in which the StorageCluster resides. (optional, default: openshift-storage)

    odf -n test-cluster [commands]
  • -o|--operator-namespace : the Openshift namespace in which the rook operator resides, when the arg -n is passed but -o is not then -o will equal to the -n. (default: openshift-storage)

    odf --operator-namespace test-operator -n test-cluster [commands]
  • --context: the name of the Openshift context to be used (optional).

    odf --context=$(oc config current-context) [commands]

Contributors

openshift-merge-bot[bot]subhamkraitravisnsp98

Issues