1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-29 05:41:02 +02:00
seaweedfs/weed/shell
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
..
command_cluster_check.go weed/shell: Cluster check other disk types (#5245) 2024-01-29 10:36:37 -08:00
command_cluster_ps.go minor 2023-06-19 18:43:41 -07:00
command_cluster_raft_add.go
command_cluster_raft_ps.go
command_cluster_raft_remove.go
command_collection_delete.go
command_collection_list.go
command_ec_balance.go fix(ec): volumes created by foreign collection due to bug in ec balance (#4864) 2023-09-25 10:35:43 -07:00
command_ec_common.go Revert "Revert "Merge branch 'master' of https://github.com/seaweedfs/seaweedfs"" 2023-09-25 09:35:16 -07:00
command_ec_decode.go ec.decode: mount the collected ec shards 2023-11-10 00:04:42 -08:00
command_ec_encode.go log full percentage 2023-10-22 12:59:34 -07:00
command_ec_encode_test.go
command_ec_rebuild.go
command_ec_test.go
command_fs_cat.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
command_fs_cd.go
command_fs_configure.go fix: disallow file name too long when writing a file (#4881) 2023-10-12 14:29:55 -07:00
command_fs_du.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
command_fs_ls.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
command_fs_merge_volumes.go fs.mergeVolumes: change dir to a named parameter 2023-11-13 08:25:44 -08:00
command_fs_meta_cat.go sort chunks by offset 2023-01-12 20:29:07 -08:00
command_fs_meta_change_volume_id.go skipping manifest chunk volume id change 2023-01-29 22:55:06 -08:00
command_fs_meta_load.go shell meta load add concurrency (#4529) 2023-12-28 11:54:37 -08:00
command_fs_meta_notify.go
command_fs_meta_save.go ADHOC: fix fs.meta.save typo (#3993) 2022-11-20 21:05:00 -08:00
command_fs_mkdir.go
command_fs_mv.go
command_fs_pwd.go
command_fs_rm.go
command_fs_tree.go
command_fs_verify.go cleaning variables 2023-03-19 18:48:40 -07:00
command_lock_unlock.go
command_mount_configure.go
command_mq_balance.go Merge accumulated changes related to message queue (#5098) 2023-12-11 12:05:54 -08:00
command_mq_topic_configure.go Merge accumulated changes related to message queue (#5098) 2023-12-11 12:05:54 -08:00
command_mq_topic_desc.go describe a topic 2023-09-25 20:46:00 -07:00
command_mq_topic_list.go Merge accumulated changes related to message queue (#5098) 2023-12-11 12:05:54 -08:00
command_remote_cache.go
command_remote_configure.go support swift (#4480) 2023-05-19 06:39:25 -07:00
command_remote_meta_sync.go
command_remote_mount.go reset local file content if remote file is updated 2023-04-22 22:32:21 -07:00
command_remote_mount_buckets.go
command_remote_uncache.go
command_remote_unmount.go
command_s3_bucket_create.go refactoring 2023-02-07 14:45:20 -08:00
command_s3_bucket_delete.go Use filerGroup for s3 buckets collection prefix (#4465) 2023-05-16 09:39:43 -07:00
command_s3_bucket_list.go Use filerGroup for s3 buckets collection prefix (#4465) 2023-05-16 09:39:43 -07:00
command_s3_bucket_quota.go
command_s3_bucket_quota_check.go Use filerGroup for s3 buckets collection prefix (#4465) 2023-05-16 09:39:43 -07:00
command_s3_circuitbreaker.go
command_s3_circuitbreaker_test.go
command_s3_clean_uploads.go Fix s3.clean.uploads (#4766) 2023-08-19 06:30:18 -07:00
command_s3_configure.go fix index (#4158) 2023-01-28 06:55:27 -08:00
command_volume_balance.go weed/shell: Cleanup volume balance logic (#5241) 2024-01-25 06:19:58 -08:00
command_volume_balance_test.go weed/shell: Cleanup volume balance logic (#5241) 2024-01-25 06:19:58 -08:00
command_volume_check_disk.go fix has changes false if deleted result size eq zero (#4909) 2023-10-12 08:15:20 -07:00
command_volume_check_disk_test.go fix: skipping checking active volumes with the same number of files at the moment (#4893) 2023-10-09 09:57:26 -07:00
command_volume_configure_replication.go
command_volume_copy.go
command_volume_delete.go Delete volume is empty (#4561) 2023-06-12 10:42:44 -07:00
command_volume_delete_empty.go avoid data race read volume.IsEmpty (#4574) 2023-06-14 14:39:58 -07:00
command_volume_fix_replication.go fix isMisplaced() in command_volume_fix_replication.go (#4988) 2023-11-07 07:58:19 -08:00
command_volume_fix_replication_test.go fix TestMisplacedChecking() and add test-case 2023-11-21 08:24:34 -08:00
command_volume_fsck.go Add modifyTimeAgo to volume.fsck (#5133) 2023-12-23 12:17:30 -08:00
command_volume_list.go Revert "Revert "Merge branch 'master' of https://github.com/seaweedfs/seaweedfs"" 2023-09-25 09:35:16 -07:00
command_volume_list_test.go tests add parsing ec shard info 2022-10-09 22:47:55 -07:00
command_volume_mark.go
command_volume_mount.go
command_volume_move.go Delete volume is empty (#4561) 2023-06-12 10:42:44 -07:00
command_volume_server_evacuate.go Revert "Revert "Merge branch 'master' of https://github.com/seaweedfs/seaweedfs"" 2023-09-25 09:35:16 -07:00
command_volume_server_evacuate_test.go fix tests 2023-03-13 10:00:27 -07:00
command_volume_server_leave.go
command_volume_tier_download.go minor (#4723) 2023-08-01 02:34:59 -07:00
command_volume_tier_move.go clone volume locations in case they are changed 2023-07-06 00:32:58 -07:00
command_volume_tier_upload.go clone volume locations in case they are changed 2023-07-06 00:32:58 -07:00
command_volume_unmount.go fix compilation 2023-02-10 12:32:59 -08:00
command_volume_vacuum.go
command_volume_vacuum_disable.go add more help message, in case of misunderstanding (#4092) 2022-12-29 07:05:05 -08:00
command_volume_vacuum_enable.go add more help message, in case of misunderstanding (#4092) 2022-12-29 07:05:05 -08:00
commands.go Implement SRV lookups for filer (#4767) 2023-08-24 07:08:56 -07:00
shell_liner.go make help command in shell case insensitive 2023-11-13 06:06:45 -08:00
volume.list.txt
volume.list2.txt tests add parsing ec shard info 2022-10-09 22:47:55 -07:00