Project

General

Profile

Actions

Feature #10904

closed

list all nodes in a ceph cluster

Added by Alfredo Deza about 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
ceph cli
Target version:
-
% Done:

60%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

In a few parts of the documentation it is requested to make changes to "all nodes in the cluster".

By the glossary definition (http://ceph.com/docs/master/glossary/#term-ceph-node) it is 'any single machine or server in a ceph system'.

But there is no way to list those. After asking around I was able to gather a few commands to get nodes that are part of a ceph service (mon, osd, or mds).

Even if this is not enough (maybe I am missing something else I could run?) it would be helpful to have something that does this for a user:

For OSDs

$ sudo ceph osd tree | grep host | awk '{print $4}'

For MONs

$ sudo ceph mon dump | grep ^[0-9]

And for MDSs

$ sudo ceph mds dump | grep ^[0-9]
Actions

Also available in: Atom PDF