Other disk operations

You can use the storpool disk command to perform various disk operations, like forgetting a disk, getting disk details, and so on. For more information about other parameters of this command see Disk.

Forgetting a disk

To remove a disk from the list of reported disks and all placement groups it participates in:

# storpool disk 1422 forget
OK

Getting detailed disk information

To get detailed information about given disk:

# storpool disk 1101 info
agAllocated | agCount | agFree | agFreeing | agFull | agMaxSizeFull | agMaxSizePartial | agPartial
      7 |     462 |    455 |         1 |      0 |             0 |                1 |         1

entriesAllocated | entriesCount | entriesFree | sectorsCount
              50 |      1080000 |     1079950 |    501215232

objectsAllocated | objectsCount | objectsFree | objectStates
              18 |       270000 |      269982 | ok:18

serverId | 1

id                   | objectsCount | onDiskSize | storedSize | objectStates
#bad_id              |            1 |       0  B |       0  B | ok:1
#clusters            |            1 |    8.0 KiB |     768  B | ok:1
#drive_state         |            1 |    8.0 KiB |     4.0  B | ok:1
#drives              |            1 |    100 KiB |     96 KiB | ok:1
#iscsi_config        |            1 |     12 KiB |    8.0 KiB | ok:1
[snip]

Getting information about disk objects

To get detailed information about the objects (fixed-size small chunks of data into which a StorPool volume is split) on a particular disk:

# storpool disk 1101 list
object name          |  stored size | on-disk size | data version | object state | parent volume
#bad_id:0            |         0  B |         0  B |    1480:2485 |       ok (1) |
#clusters:0          |       768  B |      8.0 KiB |      711:992 |       ok (1) |
#drive_state:0       |       4.0  B |      8.0 KiB |    1475:2478 |       ok (1) |
#drives:0            |       96 KiB |      100 KiB |    1480:2484 |       ok (1) |
[snip]
test:4094            |         0  B |         0  B |          0:0 |       ok (1) |
test:4095            |         0  B |         0  B |          0:0 |       ok (1) |
----------------------------------------------------------------------------------------------------
4115 objects         |      394 KiB |      636 KiB |              |              |

Active requests

To get detailed information about the active requests that a disk is performing at the moment:

# storpool disk 1101 activeRequests
--------------------------------------------------------------------------------------------------------------------------------------------
| request ID                             |  request IDX |               volume |         address |       size |       op |    time active  |
--------------------------------------------------------------------------------------------------------------------------------------------
| 9226469746279625682:285697101441249070 |            9 |           testvolume |     85276782592 |     4.0 KiB |     read |         0 msec |
| 9226469746279625682:282600876697431861 |           13 |           testvolume |     96372936704 |     4.0 KiB |     read |         0 msec |
| 9226469746279625682:278097277070061367 |           19 |           testvolume |     46629707776 |     4.0 KiB |     read |         0 msec |
| 9226469746279625682:278660227023482671 |          265 |           testvolume |     56680042496 |     4.0 KiB |    write |         0 msec |
--------------------------------------------------------------------------------------------------------------------------------------------

Retrim operation

To issue retrim operation on a disk (available for SSD disks only):

# storpool disk 1101 retrim
OK

Scrubbing operations

To start, pause, or continue a scrubbing operation for a specific disk:

# storpool disk 1101 scrubbing start
OK
# storpool disk 1101 scrubbing pause
OK
# storpool disk 1101 scrubbing continue
OK

Note

Use storpool disk list internal (see Internal details) to check the status of a running scrub operation or when was the last completed scrubbing operation for this disk.

Setting disk description

To set description information for a disk (shown in the output of storpool disk list info, see Additional details) you should specify the disk ID, the description argument, and the corresponding text:

# storpool disk 1111 description HBA2_port7
OK
# storpool disk 1104 description FAILING_SMART
OK

Setting recovery overrides

To configure a local or remote recovery override for a particular disk that is different than the overrides configured with mgmtConfig:

# storpool disk 1111 maxRecoveryRequestsOverride local 2
OK
# storpool disk 1111 maxRecoveryRequestsOverride remote 4
OK

To remove a configured override:

# storpool disk 1111 maxRecoveryRequestsOverride remote clear
OK

This will remove the override, and the default configured for the whole cluster with the storpool mgmtConfig command (see Local and remote recovery) will take precedence.

Setting latencies

To configure a single disk latency threshold override use:

# storpool disk 2301 latencyLimitsOverride disk 500
OK
# storpool disk list perf
       |                                         latencies |              thresholds |    times exceeded | flags
  disk | disk (avg) | disk (max) |  jrn (avg) |  jrn (max) |       disk |    journal |   disk |  journal |
  2301 |    0.119ms |    0.650ms |          - |          - |  500.000ms |          - |      0 |        - |     D
  [snip]

The D flag means there is a disk latency override, visible in the thresholds section.

Similarly, to configure a single disk journal latency threshold override:

# storpool disk 2621 latencyLimitsOverride journal 100
OK
storpool disk list perf
       |                                         latencies |              thresholds |    times exceeded | flags
  disk | disk (avg) | disk (max) |  jrn (avg) |  jrn (max) |       disk |    journal |   disk |  journal |
  [snip]
  2621 |    8.489ms |   13.704ms |    0.052ms |    0.669ms |    0.000ms |  100.000ms |      0 |        0 |     J

The J flag means there is a disk journal latency override, visible in the thresholds section.

To override a single disk to no longer oblige the global limit:

# storpool disk 2301 latencyLimitsOverride disk unlimited
OK

This will show the disk threshold as unlimited:

# storpool disk list perf
         |                                         latencies |              thresholds |    times exceeded | flags
    disk | disk (avg) | disk (max) |  jrn (avg) |  jrn (max) |       disk |    journal |   disk |  journal |
    2301 |    0.166ms |    0.656ms |          - |          - |  unlimited |          - |      0 |        - |     D

To clear an override and leave the global limit:

# storpool disk 2601 latencyLimitsOverride disk off
OK
# storpool disk 2621 latencyLimitsOverride journal off
OK

If a disk was ejected due to an excessive latency the server will keep a log from the last 128 requests sent to the disk, to list them use:

# storpool disk 2601 ejectLog
    log creation time |  time of first event
  2022-03-31 17:50:16 |  2022-03-31 17:31:08 +761,692usec
 req# |         start |           end |      latency |               addr |       size |                   op
    1 |          +0us |        +424us |        257us | 0x0000000253199000 |    128 KiB |         DISK_OP_READ
  [snip]
  126 | +1147653582us | +1147653679us |         97us | 0x0000000268EBE000 |     12 KiB |    DISK_OP_WRITE_FUA
  127 | +1147654920us | +1147655192us |        272us | 0x0000000012961000 |    128 KiB |    DISK_OP_WRITE_FUA
                total |      maxTotal |        limit |         generation | times exceeded (for this eject)
              23335us |      100523us |       1280us |              15338 |               1

The same data is available if a disk journal was ejected after breaching the threshold with:

# storpool disk 2621 ejectLog journal
[snip]

(the output is similar to that of the disk ejectLog above)