|
|
|
@ -97,12 +97,13 @@ func getHealEndpoint(tls bool, firstEndpoint *url.URL) (cEndpoint *url.URL) { |
|
|
|
|
// healing is optional, server continues to initialize object layer after printing this message.
|
|
|
|
|
// it is upto the end user to perform a heal if needed.
|
|
|
|
|
func getHealMsg(endpoints []*url.URL, storageDisks []StorageAPI) string { |
|
|
|
|
msg := fmt.Sprintln("\nData volume requires HEALING. Please run the following command:") |
|
|
|
|
msg += "MINIO_ACCESS_KEY=%s " |
|
|
|
|
msg += "MINIO_SECRET_KEY=%s " |
|
|
|
|
msg += "minio control heal %s" |
|
|
|
|
creds := serverConfig.GetCredential() |
|
|
|
|
msg = fmt.Sprintf(msg, creds.AccessKeyID, creds.SecretAccessKey, getHealEndpoint(isSSL(), endpoints[0])) |
|
|
|
|
msg := fmt.Sprintln("\nData volume requires HEALING. Healing is not implemented yet stay tuned:") |
|
|
|
|
// FIXME: Enable this after we bring in healing.
|
|
|
|
|
// msg += "MINIO_ACCESS_KEY=%s "
|
|
|
|
|
// msg += "MINIO_SECRET_KEY=%s "
|
|
|
|
|
// msg += "minio control heal %s"
|
|
|
|
|
// creds := serverConfig.GetCredential()
|
|
|
|
|
// msg = fmt.Sprintf(msg, creds.AccessKeyID, creds.SecretAccessKey, getHealEndpoint(isSSL(), endpoints[0]))
|
|
|
|
|
disksInfo, _, _ := getDisksInfo(storageDisks) |
|
|
|
|
for i, info := range disksInfo { |
|
|
|
|
if storageDisks[i] == nil { |
|
|
|
|