docs: add debug mode steps to troubleshooting docs
Debug mode spport is added in the krew plugin
So adding it in the docs so user can use it
Closes: https://github.com/rook/rook/issues/5709
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit f59374b7a8)
This commit is contained in:
1 parent
28c785c790
commit
e4752ce15a
4 files changed
+36
-10
No files matched your search
@@ -37,7 +37,7 @@ labels: bug
|
||||
|
||||
To get the health of the cluster, use `kubectl rook-ceph health`
|
||||
To get the status of the cluster, use `kubectl rook-ceph ceph status`
|
||||
For other commands and how to use Krew Read [Krew Plugin](https://rook.io/docs/rook/latest/Troubleshooting/krew-plugin)
|
||||
For more details, see the [Rook Krew Plugin](https://rook.io/docs/rook/latest-release/Troubleshooting/krew-plugin)
|
||||
|
||||
**Environment**:
|
||||
* OS (e.g. from /etc/os-release):
|
||||
@@ -47,4 +47,4 @@ labels: bug
|
||||
* Storage backend version (e.g. for ceph do `ceph -v`):
|
||||
* Kubernetes version (use `kubectl version`):
|
||||
* Kubernetes cluster type (e.g. Tectonic, GKE, OpenShift):
|
||||
* Storage backend status (e.g. for Ceph use `ceph health` in the [Rook Ceph toolbox](https://rook.io/docs/rook/latest/Troubleshooting/ceph-toolbox/#interactive-toolbox)):
|
||||
* Storage backend status (e.g. for Ceph use `ceph health` in the [Rook Ceph toolbox](https://rook.io/docs/rook/latest-release/Troubleshooting/ceph-toolbox/#interactive-toolbox)):
|
||||
@@ -1,4 +1,5 @@
|
||||
nav:
|
||||
- krew-plugin.md
|
||||
- ceph-toolbox.md
|
||||
- common-issues.md
|
||||
- ceph-common-issues.md
|
||||
|
||||
@@ -13,6 +13,9 @@ The toolbox can be run in two modes:
|
||||
!!! hint
|
||||
Before running the toolbox you should have a running Rook cluster deployed (see the [Quickstart Guide](../Getting-Started/quickstart.md)).
|
||||
|
||||
!!! note
|
||||
The toolbox is not necessary if you are using [Krew plugin](krew-plugin.md) to execute Ceph commands.
|
||||
|
||||
## Interactive Toolbox
|
||||
|
||||
The rook toolbox can run as a deployment in a Kubernetes cluster where you can connect and
|
||||
|
||||
@@ -2,21 +2,27 @@
|
||||
title: Krew Plugin
|
||||
---
|
||||
|
||||
The Rook Krew plugin is a tool to help troubleshoot your Rook cluster. Here are a few of the operations that the plugin will assist with:
|
||||
- Health of the Rook pods
|
||||
- Health of the Ceph cluster
|
||||
- Create "debug" pods for mons and OSDs that are in need of special Ceph maintenance operations
|
||||
- Restart the operator
|
||||
- Purge an OSD
|
||||
- Run any `ceph` command
|
||||
|
||||
See the [kubectl-rook-ceph documentation](https://github.com/rook/kubectl-rook-ceph) for more details.
|
||||
|
||||
## Installation
|
||||
|
||||
* Install [Krew](https://krew.sigs.k8s.io/docs/user-guide/setup/install/)
|
||||
* Install Krew rook-ceph plugin
|
||||
* Install Rook plugin
|
||||
```console
|
||||
kubectl krew install rook-ceph
|
||||
```
|
||||
|
||||
## Working
|
||||
## Ceph Commands
|
||||
|
||||
Krew rook-ceph plugin will help in troubleshooting the cluster as by getting the stauts of the working cluster.
|
||||
|
||||
### Example:
|
||||
|
||||
* Get the ceph status:
|
||||
* Run any `ceph` command with `kubectl rook-ceph ceph <args>`. For example, get the Ceph status:
|
||||
```console
|
||||
kubectl rook-ceph ceph status
|
||||
```
|
||||
@@ -44,4 +50,20 @@ Krew rook-ceph plugin will help in troubleshooting the cluster as by getting the
|
||||
client: 1.2 KiB/s rd, 2 op/s rd, 0 op/s wr
|
||||
```
|
||||
|
||||
Reference: [kubectl-rook-ceph](https://github.com/rook/kubectl-rook-ceph#kubectl-rook-ceph)
|
||||
Reference: [Ceph Status](https://github.com/rook/kubectl-rook-ceph/blob/master/README.md#run-a-ceph-command)
|
||||
|
||||
## Debug Mode
|
||||
|
||||
Debug mode can be useful when a MON or OSD needs advanced maintenance operations that require the daemon to be stopped. Ceph tools such as `ceph-objectstore-tool`, `ceph-bluestore-tool`, or `ceph-monstore-tool` are commonly used in these scenarios. Debug mode will set up the MON or OSD so that these commands can be run.
|
||||
|
||||
* Start the debug pod for mon b
|
||||
```console
|
||||
kubectl rook-ceph debug start rook-ceph-mon-b
|
||||
```
|
||||
|
||||
* Stop the debug pod for mon b
|
||||
```console
|
||||
kubectl rook-ceph debug stop rook-ceph-mon-b
|
||||
```
|
||||
|
||||
Reference: [Debug Mode](https://github.com/rook/kubectl-rook-ceph/blob/master/README.md#debug-mode)
|
||||
Reference in new issue
Block a user