diff --git a/weed/shell/command_cluster_check.go b/weed/shell/command_cluster_check.go index 2ab82fca2..e363239e7 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 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!") }