In order to check storage please connect to the client node.
Get the status of the storage layer of the cluster - Ceph - with the following command:
kubectl -n rook-ceph exec -it $(kubectl -n rook-ceph get pods | grep tools | awk '{print $1}') -- ceph -s
This command can also tell you the amount of space left on the cluster. As reference, this cluster has 2.5 TB available.
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
+----+----------------+-------+-------+--------+---------+--------+---------+-----------+
| id | host | used | avail | wr ops | wr data | rd ops | rd data | state |
+----+----------------+-------+-------+--------+---------+--------+---------+-----------+
| 0 | 3.89.36.86 | 374G | 474G | 0 | 0 | 2 | 0 | exists,up |
| 1 | 54.209.37.216 | 444G | 404G | 0 | 0 | 2 | 0 | exists,up |
| 2 | 54.224.214.176 | 477G | 371G | 0 | 0 | 2 | 0 | exists,up |
+----+----------------+-------+-------+--------+---------+--------+---------+-----------+
Comments
0 comments
Please sign in to leave a comment.