ceph disk detail from cli

RobFantini

Famous Member
May 24, 2012
2,080
116
133
Boston,Mass
Hello,
is there a ceph cli command which will list disk detail like serial number and which journal is used?

It is not possible to copy and paster [ for me ] the serial number from web gui.. I'm trying to put 20 serial numbers to a table so i can cross reference drive position in chassis to osd number etc.
 
You can use the API, for example:

# pvesh get /nodes/localhost/ceph/disks

Output is JSON format. But it does not contain journal info, because ceph API does not
provide that information, sorry.
 
hello
10 years later that command no longer works. not sure when it changed [ i use us in a daily cron script to log the data to a directory incase data needed for debugging . ]

here is what happens:
Code:
# pvesh get /nodes/localhost/ceph/disks
No 'get' handler defined for '/nodes/localhost/ceph/disks'

I checked 'man pvesh' and did not see how to fix that.

If there is a way let let me know. otherwise this is not an important item to be fixed.
 
hello
10 years later that command no longer works. not sure when it changed [ i use us in a daily cron script to log the data to a directory incase data needed for debugging . ]

here is what happens:
Code:
# pvesh get /nodes/localhost/ceph/disks
No 'get' handler defined for '/nodes/localhost/ceph/disks'

I checked 'man pvesh' and did not see how to fix that.

If there is a way let let me know. otherwise this is not an important item to be fixed.
Code:
ceph device ls
will return Serial and Daemons
 
  • Like
Reactions: gurubert