Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax validation to allow 1x1 setups #1169

Merged
merged 2 commits into from
Jun 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -819,12 +819,10 @@ func (z *Pool) Validate(zi int) error {
if z.Servers*z.VolumesPerServer < 4 {
// Erasure coding has few requirements.
switch z.Servers {
case 1:
harshavardhana marked this conversation as resolved.
Show resolved Hide resolved
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 4 volumes in total", zi)
dvaldivia marked this conversation as resolved.
Show resolved Hide resolved
}
}

Expand Down