seaweedfs/weed
Benoît Knecht 56287bd07d
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>
2024-01-29 10:36:37 -08:00
..
cluster Merge accumulated changes related to message queue (#5098) 2023-12-11 12:05:54 -08:00
command skip updating multipart .upload files 2024-01-18 09:24:52 -08:00
filer fix: http range request return status 500 (#5251) 2024-01-29 10:35:52 -08:00
ftpd move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
glog rotate log files 2022-12-11 21:05:58 -08:00
iamapi [iam] Replace action read/write to readAcp/writeAcp for handlers with acl (#4858) 2023-09-21 14:07:04 -07:00
images fix chunk.ModifiedTsNs (#4264) 2023-03-02 08:24:36 -08:00
mount Waiting for writes to complete with acquired locks may lead to deadlock, fixes #4952 2023-11-17 07:38:14 -08:00
mq go fmt 2023-12-22 11:33:50 -08:00
notification go fmt 2022-09-14 23:06:44 -07:00
operation chore: add status code for request_total metrics (#5188) 2024-01-10 10:05:27 -08:00
pb Merge accumulated changes related to message queue (#5098) 2023-12-11 12:05:54 -08:00
query move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
remote_storage Concurrency works better (#4663) 2023-07-12 23:04:54 -07:00
replication Fix filer.backup local sink to propagate file mode changes (#4896) 2023-10-06 05:40:20 -07:00
s3api chore: add status code for request_total metrics (#5188) 2024-01-10 10:05:27 -08:00
security Add a way to use a JWT in an HTTP only cookie 2023-12-05 08:57:01 -08:00
sequence move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
server fix: http range request return status 500 (#5251) 2024-01-29 10:35:52 -08:00
shell weed/shell: Cluster check other disk types (#5245) 2024-01-29 10:36:37 -08:00
static Change filer UI icon from picture to icon font. 2022-04-08 15:07:56 +08:00
stats chore: add status code for request_total metrics (#5188) 2024-01-10 10:05:27 -08:00
storage weed/storage: Fix volume info file permissions (#5246) 2024-01-26 08:31:27 -08:00
topology fix: clean metric MasterReplicaPlacementMismatch for unregister volume (#5239) 2024-01-25 00:23:24 -08:00
util 3.62 2024-01-15 20:44:00 -08:00
wdclient Squashed commit of the following: 2023-09-16 15:06:16 -07:00
Makefile reduce binary size 2023-09-21 13:22:08 -07:00
weed.go Minor cleanup & gitignore update (#5144) 2023-12-28 20:25:43 -08:00