The ODF CLI tool provides configuration and troubleshooting commands for OpenShift Data Foundation.
odf set recovery-profile <profile>: Set the recovery profile to favor new IO, recovery, or balanced mode with optionshigh_client_ops,high_recovery_ops, orbalanced. The default isbalanced.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
Visit docs below for complete details about each command and their flags uses.
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-nis passed but-ois not then-owill 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]