3.2. Subcommands of odf operator command
- odf operator rook set
Sets the provided property value in the rook-ceph-operator config
configmapExample:
$ odf operator rook set ROOK_LOG_LEVEL DEBUG configmap/rook-ceph-operator-config patchedwhere,
ROOK_LOG_LEVELcan beDEBUG,INFO, orWARNING- odf operator rook restart
Restarts the Rook-Ceph operator
Example:
$ odf operator rook restart deployment.apps/rook-ceph-operator restarted- odf restore mon-quorum
Restores the mon quorum when the majority of mons are not in quorum and the cluster is down. When the majority of mons are lost permanently, the quorum needs to be restored to a remaining good mon in order to bring the Ceph cluster up again.
Example:
$ odf restore mon-quorum c- odf restore deleted <crd>
Restores the deleted Rook CR when there is still data left for the components, CephClusters, CephFilesystems, and CephBlockPools. Generally, when Rook CR is deleted and there is leftover data, the Rook operator does not delete the CR to ensure data is not lost and the operator does not remove the finalizer on the CR. As a result, the CR is stuck in the Deleting state and cluster health is not ensured. Upgrades are blocked too. This command helps to repair the CR without the cluster downtime.
注記A warning message seeking confirmation to restore appears. After confirming, you need to enter
continueto start the operator and expand to the full mon-quorum again.Example:
$ odf restore deleted cephclusters
Info: Detecting which resources to restore for crd "cephclusters"
Info: Restoring CR my-cluster
Warning: The resource my-cluster was found deleted. Do you want to restore it? yes | no
[...]