How To
Summary
This article includes the steps to gain access to Ceph CLI
Environment
IBM Storage Fusion Data Foundation 4.x
Red Hat OpenShift Data Foundation 4.x
Steps
- The preferred method to accomplish this task is detailed in https://www.ibm.com/support/pages/node/7104410
- If one doesn't want the
Rook-Ceph ToolboxPod running, use therook-ceph-operatorthe method detailed in this article.
Important: As per ODF / FDF troubleshooting Guide, it is not supported to run Ceph commands in ODF/FDF clusters (unless indicated by the support team or documentation), as it can cause data loss if incorrect commands are executed.
- Locate your
rook-ceph-operatorpod and connect to it
oc rsh -n openshift-storage $(oc get pods -n openshift-storage -o name -l app=rook-ceph-operator)
- Set your
CEPH_ARGSenvironment variable
sh-4.4$ export CEPH_ARGS='-c /var/lib/rook/openshift-storage/openshift-storage.config'
- One can now run Ceph commands
sh-4.4$ ceph -s
cluster:
id: e4f12xxx-Redacted-Cluster-ID-yyy8fdcdfe6f
health: HEALTH_OK
services:
mon: 3 daemons, quorum a,b,d (age 4d)
mgr: a(active, since 4d)
mds: ocs-storagecluster-cephfilesystem:1 {0=ocs-storagecluster-cephfilesystem-a=up:active} 1 up:standby-replay
osd: 3 osds: 3 up (since 4d), 3 in (since 12d)
rgw: 1 daemon active (ocs.storagecluster.cephobjectstore.a)
task status:
data:
pools: 10 pools, 80 pgs
objects: 19.95k objects, 76 GiB
usage: 229 GiB used, 2.8 TiB / 3.0 TiB avail
pgs: 80 active+clean
io:
client: 853 B/s rd, 15 KiB/s wr, 1 op/s rd, 1 op/s wr
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB66","label":"Technology Lifecycle Services"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SSSEWFV","label":"Storage Fusion Data Foundation"},"ARM Category":[{"code":"a8m3p000000UoIPAA0","label":"Support Reference Guide"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
27 May 2025
UID
ibm17104412