.. _devices: Device Management ================= 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 --------------- To see a list of the storage devices that are in use, run the following command: .. prompt:: bash $ ceph device ls 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 To see information about the location of an specific device and about how the device is being consumed, run a command of the following form: .. prompt:: bash $ ceph device info Identifying physical devices ---------------------------- 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] .. note:: Using this command to blink the lights might not work. Whether it works will depend upon such factors as your kernel revision, your SES firmware, or the setup of your HBA. The ```` parameter is the device identification. To retrieve this information, run the following command: .. prompt:: bash $ ceph device ls The ``[ident|fault]`` parameter determines which kind of light will blink. By default, the `identification` light is used. .. 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 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 "