You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
The Rook toolbox is a container with common tools used for rook debugging and testing. The rook toolbox can run as a deployment in a Kubernetes cluster where you can connect and run arbitrary Ceph commands. Launch the rook-ceph-tools pod and enter inside
# The file is located in the folder "rook/cluster/examples/kubernetes/ceph"
$ kubectl create -f toolbox.yaml
# Once the rook-ceph-tools pod is running, you can connect to it with
$ kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- bash
Once inside the Pod you can check the status of the Ceph cluster with
# For the complete list of arguments use "ceph -h"
$ ceph status
cluster:
id: ac25fc89-881e-419c-8596-be26252f8b92
health: HEALTH_OK
services:
mon: 3 daemons, quorum a,b,c (age 93m)
mgr: a(active, since 6h)
osd: 3 osds: 3 up (since 6h), 3 in (since 6h)
data:
pools: 1 pools, 1 pgs
objects: 0 objects, 0 B
usage: 3.0 GiB used, 117 GiB / 120 GiB avail
pgs: 1 active+clean
$ ceph osd status
ID HOST USED AVAIL WR OPS WR DATA RD OPS RD DATA STATE
0 k8s-worker-3.novalocal 1028M 38.9G 0 0 0 0 exists,up
1 k8s-worker-2.novalocal 1028M 38.9G 0 0 0 0 exists,up
2 k8s-worker-1.novalocal 1028M 38.9G 0 0 0 0 exists,up
When you are done with the toolbox, you can remove the deployment kubectl -n rook-ceph delete deploy/rook-ceph-tools
.