Skip to content

Commit

Permalink
Relax validation to allow 1x1 setups (#1169)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Valdivia <[email protected]>
  • Loading branch information
dvaldivia authored Jun 20, 2022
1 parent 1dd2b9b commit 4e25f6b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/apis/minio.min.io/v2/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,12 +856,10 @@ func (z *Pool) Validate(zi int) error {
if z.Servers*z.VolumesPerServer < 4 {
// Erasure coding has few requirements.
switch z.Servers {
case 1:
return fmt.Errorf("pool #%d setup must have a minimum of 4 volumes per server", zi)
case 2:
return fmt.Errorf("pool #%d setup must have a minimum of 2 volumes per server", zi)
return fmt.Errorf("pool #%d with 2 servers must have at least 4 volumes in total", zi)
case 3:
return fmt.Errorf("pool #%d setup must have a minimum of 2 volumes per server", zi)
return fmt.Errorf("pool #%d with 3 servers must have at least 6 volumes in total", zi)
}
}

Expand Down

0 comments on commit 4e25f6b

Please sign in to comment.