SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix error reporting for "Need to a hdd disk type"
chrislu89948a373b74
diff --git a/weed/shell/command_cluster_check.go b/weed/shell/command_cluster_check.goindex 2ab82fca24..e363239e73 100644--- a/weed/shell/command_cluster_check.go+++ b/weed/shell/command_cluster_check.go@@ -50,7 +50,7 @@ func (c *commandClusterCheck) Do(args []string, commandEnv *CommandEnv, writer iif !emptyDiskTypeFound && !hddDiskTypeFound {return fmt.Errorf("Need to a hdd disk type!")}- if emptyDiskTypeFound && emptyDiskTypeDiskInfo.VolumeCount == 0 || hddDiskTypeFound && hddDiskTypeDiskInfo.VolumeCount == 0 {+ if emptyDiskTypeFound && emptyDiskTypeDiskInfo.MaxVolumeCount == 0 || hddDiskTypeFound && hddDiskTypeDiskInfo.MaxVolumeCount == 0 {return fmt.Errorf("Need to a hdd disk type!")}