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