Browse Source

fix error reporting for "Need to a hdd disk type"

related to https://github.com/chrislusf/seaweedfs/issues/3128
pull/3132/head
chrislu 3 years ago
parent
commit
89948a373b
  1. 2
      weed/shell/command_cluster_check.go

2
weed/shell/command_cluster_check.go

@ -50,7 +50,7 @@ func (c *commandClusterCheck) Do(args []string, commandEnv *CommandEnv, writer i
if !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!")
}

Loading…
Cancel
Save