The Problem
How can an administrator check the available disk space on their cluster
The Solution
There are kubectl commands that can be run to output the disk space—
To get the overall disk space:
Command
kubectl -n rook-ceph exec -it $(kubectl -n rook-ceph get pods | grep tools | awk '{print $1}') -- ceph -s
Example Output
cluster:
id: 6d3c4e36-bb11-4e02-a05f-04e3fd3cb04a
health: HEALTH_OK
services:
mon: 3 daemons, quorum a,b,c (age 2w)
mgr: a(active, since 4M)
osd: 3 osds: 3 up (since 3M), 3 in (since 4M)
rgw: 3 daemons active (signals.store.a, signals.store.b, signals.store.c)
task status:
data:
pools: 8 pools, 256 pgs
objects: 300.59k objects, 674 GiB
usage: 1.3 TiB used, 1.2 TiB / 2.5 TiB avail
pgs: 256 active+clean
io:
client: 85 B/s rd, 8.2 KiB/s wr, 0 op/s rd, 0 op/s wr
To get the space on each available machine
Command
kubectl -n rook-ceph exec -it $(kubectl -n rook-ceph get pods | grep tools | awk '{print $1}') -- ceph osd status
Example output
Comments
0 comments
Please sign in to leave a comment.