mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
update single drive setup error message (#16098)
This commit is contained in:
parent
993e586855
commit
08103870a5
@ -592,14 +592,14 @@ func CreateEndpoints(serverAddr string, foundLocal bool, args ...[]string) (Endp
|
|||||||
return endpoints, setupType, err
|
return endpoints, setupType, err
|
||||||
}
|
}
|
||||||
if endpoint.Type() != PathEndpointType {
|
if endpoint.Type() != PathEndpointType {
|
||||||
return endpoints, setupType, config.ErrInvalidFSEndpoint(nil).Msg("use path style endpoint for FS setup")
|
return endpoints, setupType, config.ErrInvalidEndpoint(nil).Msg("use path style endpoint for single node setup")
|
||||||
}
|
}
|
||||||
endpoints = append(endpoints, endpoint)
|
endpoints = append(endpoints, endpoint)
|
||||||
setupType = ErasureSDSetupType
|
setupType = ErasureSDSetupType
|
||||||
|
|
||||||
// Check for cross device mounts if any.
|
// Check for cross device mounts if any.
|
||||||
if err = checkCrossDeviceMounts(endpoints); err != nil {
|
if err = checkCrossDeviceMounts(endpoints); err != nil {
|
||||||
return endpoints, setupType, config.ErrInvalidFSEndpoint(nil).Msg(err.Error())
|
return endpoints, setupType, config.ErrInvalidEndpoint(nil).Msg(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
return endpoints, setupType, nil
|
return endpoints, setupType, nil
|
||||||
|
@ -192,12 +192,13 @@ Refer to the link https://github.com/minio/minio/tree/master/docs/erasure/storag
|
|||||||
--address '[fe80::da00:a6c8:e3ae:ddd7]:9000'`,
|
--address '[fe80::da00:a6c8:e3ae:ddd7]:9000'`,
|
||||||
)
|
)
|
||||||
|
|
||||||
ErrInvalidFSEndpoint = newErrFn(
|
ErrInvalidEndpoint = newErrFn(
|
||||||
"Invalid endpoint for standalone FS mode",
|
"Invalid endpoint for single drive mode",
|
||||||
"Please check the FS endpoint",
|
"Please check the endpoint",
|
||||||
`FS mode requires only one writable disk path
|
`Single-Node modes requires absolute path without hostnames:
|
||||||
Example 1:
|
Examples:
|
||||||
$ minio server /data/minio/`,
|
$ minio server /data/minio/ #Single Node Single Drive
|
||||||
|
$ minio server /data-{1...4}/minio # Single Node Multi Drive`,
|
||||||
)
|
)
|
||||||
|
|
||||||
ErrUnsupportedBackend = newErrFn(
|
ErrUnsupportedBackend = newErrFn(
|
||||||
|
Loading…
Reference in New Issue
Block a user