Skip to content

Commit d00d1b5

Browse files
committed
doc/cephadm: how to get exact size_spec from device
Add instructions for retrieving the exact size of block devices. Fixes: https://tracker.ceph.com/issues/66754 Signed-off-by: Zac Dover <[email protected]>
1 parent 8ae876c commit d00d1b5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

doc/cephadm/services/osd.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,39 @@ information about interacting with these LEDs, refer to :ref:`devices`.
8484
The current release of `libstoragemgmt`_ (1.8.8) supports SCSI, SAS, and SATA based
8585
local disks only. There is no official support for NVMe devices (PCIe)
8686

87+
Retrieve Exact Size of Block Devices
88+
====================================
89+
90+
Run a command of the following form to discover the exact size of a block
91+
device. The value returned here is used by the orchestrator when comparing high
92+
and low values:
93+
94+
.. prompt:: bash #
95+
96+
cephadm shell ceph-volume inventory </dev/sda> --format json | jq .sys_api.human_readable_size
97+
98+
The exact size in GB is the size reported in TB, multiplied by 1000.
99+
100+
Example
101+
-------
102+
The following provides a specific example of this command based upon the
103+
general form of the command above:
104+
105+
.. prompt:: bash #
106+
107+
cephadm shell ceph-volume inventory /dev/sdc --format json | jq .sys_api.human_readable_size
108+
109+
::
110+
111+
"3.64 TB"
112+
113+
This means that the exact device size is 3.64 * 1000, or 3640GB.
114+
115+
This procedure was developed by Frédéric Nass. See `this thread on the
116+
[ceph-users] mailing list
117+
<https://lists.ceph.io/hyperkitty/list/[email protected]/message/5BAAYFCQAZZDRSNCUPCVBNEPGJDARRZA/>`_
118+
for discussion of this matter.
119+
87120
.. _cephadm-deploy-osds:
88121

89122
Deploy OSDs

0 commit comments

Comments
 (0)