diff options
| author | Benoît Knecht <bknecht@protonmail.ch> | 2024-01-29 19:36:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-29 10:36:37 -0800 |
| commit | 56287bd07d22e140a051bd788a8f6e2fe78b82a5 (patch) | |
| tree | 778a646675be43de79a5cd70b31608dffa00a764 /weed/filer/filechunks_test.go | |
| parent | 0775d05a23b61a23f9a7f3fb180ec6d96fa94430 (diff) | |
| download | seaweedfs-56287bd07d22e140a051bd788a8f6e2fe78b82a5.tar.xz seaweedfs-56287bd07d22e140a051bd788a8f6e2fe78b82a5.zip | |
weed/shell: Cluster check other disk types (#5245)
* week/shell: Cluster check other disk types
The `cluster.check` command only took the empty (`""`) and `hdd` disk types
into consideration, but a cluster with only `ssd` or `nvme` disk types would be
equally valid.
This commit simply checks that _any_ disk type is defined, and that some
volumes are available for it.
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
* weed/shell: Replace loop that copies slice
Use the following construct instead of a `for` loop:
```golang
x = append(x, y...)
```
See https://staticcheck.dev/docs/checks#S1011.
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
* weed/shell: Check disk types when filer is in use
Filer stores its metadata logs in generic (i.e. `""`) or HDD disk type volumes,
so make sure those disk types exist and have volumes associated with them when
Filer is deployed in the cluster.
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
---------
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
Diffstat (limited to 'weed/filer/filechunks_test.go')
0 files changed, 0 insertions, 0 deletions
