Drive/controller issues

Here you can find how to troubleshoot drive and controller issues of a StorPool cluster in a degraded state. For more information about solving other types of issues, see Degraded state troubleshooting.

Missing drives

One or more HDD or SSD drives are missing from a single server in the cluster, or from servers in the same fault set.

Attention

This concerns only pools with triple replication; for dual replication this is considered as critical state.

The missing drives may be observed using the storpool disk list command; see the examples in Listings disks.

A drive is usually missing since it was ejected from the cluster due to a write error, either by the kernel or by the running storpool_server instance. More information may be found using dmesg | tail and in the system log. To obtain details about the model and the serial number of the failed drive, use the storpool disk list info command.

In normal conditions, the server will flag the disk to be re-tested and will eject it for a quick test. Provided the disk is still working correctly and test results are not breaching any thresholds, it will be returned into the cluster to recover. Such a case for example might happen if the stalled request was caused by an intermediate issue, like a reallocated sector.

In case the disk is breaching any sane latency and bandwidth thresholds it will not be automatically returned and will have to be rebalanced out of the cluster. Such disks are marked as “bad” (see Device preparation options (storpool_initdisk))

When one or more drives are ejected (marked as bad already) and missing, multiple volumes and/or snapshots will be listed with the D flag in the output of storpool volume status (D as Degraded), due to the missing replicas for some of the data. This is normal and expected and there are the following options in this situation:

  • Re-testing

    The drive could still be working properly (for example, a set of bad sectors were reallocated) even after it was tested. To re-test it you could mark the drive as –good (see Device preparation options (storpool_initdisk)) and attempt to get it back into the cluster.

  • Recovering from scratch

    In some occasions a disk might have lost its signatures and would have to be returned in the cluster to recover from scratch - it will be automatically re-tested upon attempt; a full (read-write) stress-test is recommended to ensure it is working correctly (fio is a good tool for this kind of tests, check --verify option). In case the stress test is successful (e.g. the drive has been written to and verified successfully), it may be reinitialized with storpool_initdisk with the same disk ID it was before. This will automatically return it to the cluster and it will fully recover all data from scratch as if it was a brand new.

  • Replacing a drive

    The drive has failed irrecoverably and a replacement is available. The replacement drive is initialized with the diskID of the failed drive with storpool_initdisk (see Initializing a drive). After returning it to the cluster it will fully recover all the data from the live replicas (see Rebalancing the cluster).

  • A replacement is not available. The only option is to rebalance the cluster without this drive (more details in Rebalancing the cluster).

Attention

Beware that in some cases with very filled clusters it might be impossible to get the cluster back to full redundancy without overfilling some of the remaining drives. See next section.

Full drives

Some of the drives in the cluster are beyond 90% (up to 96% full). With proper planning this should be rarely an issue. You can evade this situation is one of the following ways:

The storpool snapshot space command will return relevant information for the referred space for each snapshot on the underlying drives. Note that snapshots with a negative value in their “used” column will not free up any space if they are removed and will remain in the deleting state, because they are parents of multiple cloned child volumes.

Note that depending on the speed with which the cluster is being populated with data by the end users this might also be considered a critical state.

Low number of free entries

Some of the drives have fewer than 140k free entries (alert for an overloaded system). This may be observed in the output of storpool disk list (see Listings disks). In the example below disk 1114 has a low number of free entries:

# storpool disk list
disk  |  server  |    size     |     used    |   est.free  |      %  |  free entries  |   on-disk size  |   allocated objects |  errors |  flags
1101  |    11.1  |    893 GiB  |    2.6 GiB  |    857 GiB  |    0 %  |       3719946  |        664 KiB  |     41000 / 930000  |   0 / 0 |
1102  |    11.1  |    446 GiB  |    2.6 GiB  |    424 GiB  |    1 %  |       1919946  |        664 KiB  |     41000 / 480000  |   0 / 0 |
1103  |    11.0  |    893 GiB  |    2.6 GiB  |    857 GiB  |    0 %  |       3719948  |        660 KiB  |     41000 / 930000  |   0 / 0 |
1104  |    11.0  |    446 GiB  |    2.6 GiB  |    424 GiB  |    1 %  |       1919946  |        664 KiB  |     41000 / 480000  |   0 / 0 |
1105  |    11.0  |    446 GiB  |    2.6 GiB  |    424 GiB  |    1 %  |       1919947  |        664 KiB  |     41000 / 480000  |   0 / 0 |
1111  |    11.1  |    930 GiB  |    2.6 GiB  |    893 GiB  |    0 %  |        974950  |        716 KiB  |     41000 / 975000  |   0 / 0 |
1112  |    11.1  |    930 GiB  |    2.6 GiB  |    893 GiB  |    0 %  |        974949  |        736 KiB  |     41000 / 975000  |   0 / 0 |
1113  |    11.1  |    930 GiB  |    2.6 GiB  |    893 GiB  |    0 %  |        974943  |        760 KiB  |     41000 / 975000  |   0 / 0 |
1114  |    23.0  |    893 GiB  |   2.6 GiB   |    857 GiB  |    0 %  |         19934  |        664 KiB  |        17 / 930000  |   0 / 0 |
[snip]
1425  |    14.1  |    931 GiB  |    2.6 GiB  |    894 GiB  |    0 %  |        974980  |         20 MiB  |     40100 / 975000  |   0 / 0 |
1426  |    14.1  |    931 GiB  |    2.6 GiB  |    894 GiB  |    0 %  |        974979  |         20 MiB  |     40100 / 975000  |   0 / 0 |
----------------------------------------------------------------------------------------------------------------------------------------
  47  |     8.0  |     30 TiB  |    149 GiB  |     29 TiB  |    0 %  |      53308967  |        932 MiB  |  1844600 / 32430000 |   0 / 0 |

This usually happens after the system has been loaded for longer periods of time with a sustained write workload on one or multiple volumes. If this is unexpected and the reason is an erratic workload, the recommended way to handle this is as follows:

  • Set a limit (bandwidth, iops, or both) on the loaded volumes with a command like storpool volume <volumename> update bw 100M iops 1000. For details, see Setting IOPS and bandwidth limits.

  • The same could be set for multiple volumes/snapshots in a template with storpool template <templatename> bw 100M iops 1000 propagate. Note that propagating changes for templates with a very large number of volumes and snapshots might not work.

If the overloaded state is due to normally occurring workload, it is best to expand the system with more drives and/or reformat the drives with larger number of entries (relates mainly to HDD drives). The latter case might be caused by low number of hard drives in a HDD-only or a hybrid pool, and rarely due to overloaded SSDs.

Another case related to overloaded drives is when many volumes are created out of the same template. This requires overrides to shuffle the objects where the journals are residing; the goal is avoiding overload of the same triplet of disks when all virtual machines spike for some reason (i.e. unattended upgrades, a syslog intensive cron job, and so on).