mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Improve disk formatting stage for large disk sets (#8690)
This commit is contained in:
committed by
kannappanr
parent
725172e13b
commit
f68a7005c0
@@ -223,12 +223,13 @@ func connectLoadInitFormats(retryCount int, firstDisk bool, endpoints Endpoints,
|
||||
// Assign globalDeploymentID on first run for the
|
||||
// minio server managing the first disk
|
||||
globalDeploymentID = format.ID
|
||||
} else {
|
||||
// The first will always recreate some directories inside .minio.sys
|
||||
// such as, tmp, multipart and background-ops
|
||||
if firstDisk {
|
||||
initFormatXLMetaVolume(storageDisks, formatConfigs)
|
||||
}
|
||||
return format, nil
|
||||
}
|
||||
|
||||
// The first will always recreate some directories inside .minio.sys
|
||||
// such as, tmp, multipart and background-ops
|
||||
if firstDisk {
|
||||
initFormatXLMetaVolume(storageDisks, formatConfigs)
|
||||
}
|
||||
|
||||
// Return error when quorum unformatted disks - indicating we are
|
||||
@@ -288,6 +289,7 @@ func connectLoadInitFormats(retryCount int, firstDisk bool, endpoints Endpoints,
|
||||
if err = formatXLFixLocalDeploymentID(endpoints, storageDisks, format); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return format, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user