ceph disk detail from cli

RobFantini

Famous Member
May 24, 2012
2,042
110
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.