Skip to content

Instantly share code, notes, and snippets.

@rkachach
Created March 17, 2022 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkachach/a31d9c48c36cc96e13f04f46c7b12dd2 to your computer and use it in GitHub Desktop.
Save rkachach/a31d9c48c36cc96e13f04f46c7b12dd2 to your computer and use it in GitHub Desktop.
CEPHADM="sudo cephadm"
echo '# `ceph -s`'
echo '```'
$CEPHADM shell -- ceph -s
echo '```'
echo '# `ceph health detail`'
echo '```'
$CEPHADM shell -- ceph health detail
echo '```'
echo
echo '# `ceph orch ls`'
echo '```'
$CEPHADM shell -- ceph orch ls --format yaml
echo '```'
echo
echo '# `ceph orch ps`'
echo '```'
$CEPHADM shell -- ceph orch ps --format yaml
echo '```'
echo
echo '# `ceph orch host ls`'
echo '```'
$CEPHADM shell -- ceph orch host ls --format yaml
echo '```'
echo
echo '# `ceph orch device ls`'
echo '```'
$CEPHADM shell -- ceph orch device ls --format yaml
echo '```'
echo
echo '# `ceph orch upgrade status`'
echo '```'
$CEPHADM shell -- ceph orch upgrade status --format yaml
echo '```'
echo
echo '# `ceph log last cephadm`'
echo '```'
$CEPHADM shell -- ceph log last cephadm
echo '```'
echo '# `cephadm ls`'
echo '```'
$CEPHADM ls
echo '```'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment