From 8321b457a25a4394439f908c500091ce30e0736a Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Mon, 15 May 2023 11:01:19 +1000 Subject: [PATCH] doc/rados: edit devices.rst Line-edit doc/rados/operations/devices.rst. Co-authored-by: Anthony D'Atri Co-authored-by: Cole Mitchell Signed-off-by: Zac Dover --- doc/rados/operations/devices.rst | 165 ++++++++++++++----------- doc/rados/operations/health-checks.rst | 2 + 2 files changed, 95 insertions(+), 72 deletions(-) diff --git a/doc/rados/operations/devices.rst b/doc/rados/operations/devices.rst index 1b6eaebdea069..9fc05ba9da0b0 100644 --- a/doc/rados/operations/devices.rst +++ b/doc/rados/operations/devices.rst @@ -3,28 +3,32 @@ Device Management ================= -Ceph tracks which hardware storage devices (e.g., HDDs, SSDs) are consumed by -which daemons, and collects health metrics about those devices in order to -provide tools to predict and/or automatically respond to hardware failure. +Device management allows Ceph to address hardware failure. Ceph tracks hardware +storage devices (HDDs, SSDs) to see which devices are managed by which daemons. +Ceph also collects health metrics about these devices. By doing so, Ceph can +provide tools that predict hardware failure and can automatically respond to +hardware failure. Device tracking --------------- -You can query which storage devices are in use with: +To see a list of the storage devices that are in use, run the following +command: .. prompt:: bash $ ceph device ls -You can also list devices by daemon or by host: +Alternatively, to list devices by daemon or by host, run a command of one of +the following forms: .. prompt:: bash $ ceph device ls-by-daemon ceph device ls-by-host -For any individual device, you can query information about its -location and how it is being consumed with: +To see information about the location of an individual device and about how the +device is being consumed, run a command of the following form: .. prompt:: bash $ @@ -33,103 +37,108 @@ location and how it is being consumed with: Identifying physical devices ---------------------------- -You can blink the drive LEDs on hardware enclosures to make the replacement of -failed disks easy and less error-prone. Use the following command:: +To make the replacement of failed disks easier and less error-prone, you can +(in some cases) "blink" the drive's LEDs on hardware enclosures by running a +command of the following form:: device light on|off [ident|fault] [--force] -The ```` parameter is the device identification. You can obtain this -information using the following command: +.. note:: In some situations (depending on your kernel revision or your SES + firmware or the setup of your HBA), using this command to blink the lights + will not work. + +The ```` parameter is the device identification. To retrieve this +information, run the following command: .. prompt:: bash $ ceph device ls -The ``[ident|fault]`` parameter is used to set the kind of light to blink. -By default, the `identification` light is used. +The ``[ident|fault]`` parameter determines which kind of light will blink. By +default, the `identification` light is used. -.. note:: - This command needs the Cephadm or the Rook `orchestrator `_ module enabled. - The orchestrator module enabled is shown by executing the following command: +.. note:: This command works only if the Cephadm or the Rook `orchestrator + `_ + module is enabled. To see which orchestrator module is enabled, run the + following command: .. prompt:: bash $ ceph orch status -The command behind the scene to blink the drive LEDs is `lsmcli`. If you need -to customize this command you can configure this via a Jinja2 template:: +The command that makes the drive's LEDs blink is `lsmcli`. To customize this +command, configure it via a Jinja2 template by running commands of the +following forms:: ceph config-key set mgr/cephadm/blink_device_light_cmd "