diff --git a/cmd/erasure-server-pool-decom.go b/cmd/erasure-server-pool-decom.go index 2877c34c9..dd9f4446a 100644 --- a/cmd/erasure-server-pool-decom.go +++ b/cmd/erasure-server-pool-decom.go @@ -359,7 +359,11 @@ func (p *poolMeta) validate(pools []*erasureSets) (bool, error) { } } if !ok { - return false, fmt.Errorf("pool(%s) = %s is not specified, please specify on server command line", humanize.Ordinal(pi.position+1), k) + if globalIsErasureSD { + update = true + } else { + return false, fmt.Errorf("pool(%s) = %s is not specified, please specify on server command line", humanize.Ordinal(pi.position+1), k) + } } } @@ -374,9 +378,13 @@ func (p *poolMeta) validate(pools []*erasureSets) (bool, error) { } } if !ok { - return false, fmt.Errorf("pool(%s) = %s is not specified, please specify on server command line", humanize.Ordinal(pi.position+1), k) + if globalIsErasureSD { + update = true + } else { + return false, fmt.Errorf("pool(%s) = %s is not specified, please specify on server command line", humanize.Ordinal(pi.position+1), k) + } } - if pos != pi.position { + if ok && pos != pi.position { return false, fmt.Errorf("pool order change detected for %s, expected position is (%s) but found (%s)", k, humanize.Ordinal(pi.position+1), humanize.Ordinal(pos+1)) } } diff --git a/cmd/format-erasure.go b/cmd/format-erasure.go index 1a3fc41d1..340565535 100644 --- a/cmd/format-erasure.go +++ b/cmd/format-erasure.go @@ -177,7 +177,7 @@ func formatGetBackendErasureVersion(b []byte) (string, error) { return "", fmt.Errorf(`format.Version expected: %s, got: %s`, formatMetaVersionV1, meta.Version) } if meta.Format != formatBackendErasure && meta.Format != formatBackendErasureSingle { - return "", fmt.Errorf(`found backend type %s, expected %s or %s`, meta.Format, formatBackendErasure, formatBackendErasureSingle) + return "", fmt.Errorf(`found backend type %s, expected %s or %s - to migrate to a supported backend visit https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html`, meta.Format, formatBackendErasure, formatBackendErasureSingle) } // Erasure backend found, proceed to detect version. format := &formatErasureVersionDetect{}