Scanning RAIDs and Drives, LED Indication

The scanner mechanism is used to monitor the statuses of RAIDs and drives:

  • RAID statuses;
  • RAID drives;
  • automatic drive LED indication.

To manually control the LED indication, use the drive locate command (see description and examples below in this chapter).

The scanner command

The service, which runs in the system, automatically manages the indication of failed and working drives and creates corresponding messages in the log file.

To manage RAIDs monitoring, the LED indication and drive SMART settings, run

# xicli settings scanner modify <args>
Table 1. Arguments for the scanner modify subcommand

At least one argument is required

-pi

--polling_interval

The polling interval for xiRAID RAIDs and drives in seconds.

The parameter affects the auto-start delay for the RAID initialization, reconstruction, and restriping.

Possible values: integers from 1 to 3600 (1 hour).

The default: 1.

-spi

--smart_polling_interval

S.M.A.R.T. drive health polling interval, in seconds.

Possible values: integers from 60 to 86400 (24 hours).

The default: 86400.

-le

--led_enabled

Enable (1) or disable (0) the automatic LED indication of drives in the system.

The default: 1.

The argument doesn’t affect manual LED indication.

Example: Disable automatic LED indication of drives:

# xicli settings scanner modify --led_enabled 0

To show the settings of the LED indication and drive scanner, run

# xicli settings scanner show
Table 2. Argument for the scanner show subcommand

Optional argument

-f --format

Output format:

  • table;
  • json;
  • prettyjson – human-readable json.

The default: table.

The locate command

You can manually control the LED indication of the drives by using the command

# xicli drive locate <arg>
Table 3. Argument for the locate subcommand

Required argument

‑d

‑‑drives

The list of block devices (/dev/sd*, /dev/mapper/mpath*, /dev/nvme*, /dev/dm-*) separated by a space to switch the indication on, or switch the indication off (with the null value).

The argument doesn’t affect the automatic indication.

Example: Turn location indication on for drives “/dev/nvme0n1” and “/dev/nvme1n1”:

# xicli drive locate -d /dev/nvme0n1 /dev/nvme1n1