This is unreleased documentation for SUSE® Storage 1.9.0 (Dev). |
Offline Replica Rebuilding
Starting with v1.9.0, SUSE Storage supports offline replica rebuilding. This feature allows degraded volumes to automatically rebuild replicas while the volumes are detached.
Global Setting offline-replica-rebuilding
-
When enabled, SUSE Storage automatically initiates offline rebuilding for eligible volumes.
-
For more information about this global setting, see settings.
Per-Volume Override
-
You can override the global
offline-replica-rebuilding
setting for each volume individually. This can be done through the SUSE Storage UI or by editing the Volume Custom Resource. To usekubectl
, run the following command and then modify thespec.offlineRebuilding
field:kubectl -n longhorn-system edit volume <volume-name>
Replace
<volume-name>
with the name of your specific volume. -
When the per-volume
spec.offlineRebuilding
field is set toenabled
ordisabled
, this setting takes precedence over the global configuration. The default value forspec.offlineRebuilding
isignored
.
The following table shows how the global and per-volume settings interact:
Global Setting ( |
Per-Volume Setting ( |
Offline Rebuilding Enabled |
|
|
Yes |
|
|
No |
|
|
Yes |
|
|
Yes |
|
|
No |
|
|
No |
Rebuilding Process
-
When offline replica rebuilding is triggered, SUSE Storage attaches the volume without activating the frontend, rebuilds any missing replicas, and then detaches the volume after the rebuilding process is complete.
-
This process can be interrupted if the associated workload scales up and requires the volume.