currently we had a restriction where older setups would
need to follow previous style of "stripe" count being same
expansion, we can relax that instead newer pools can be
expanded for older setups with newer constraints of
common parity ratio.
returnnil,fmt.Errorf("All current serverPools should have same parity ratio - expected %d, got %d",commonParityDrives,ecDrivesNoConfig(ep.DrivesPerSet))
switchdistributionAlgo{
caseformatErasureVersionV3DistributionAlgoV2:
ifdrivesPerSet!=0&&drivesPerSet!=ep.DrivesPerSet{
returnnil,fmt.Errorf("All legacy serverPools should have same drive per set ratio - expected %d, got %d",drivesPerSet,ep.DrivesPerSet)
returnfmt.Errorf("%s disk is already being used in another erasure deployment. (Number of disks specified: %d but the number of disks found in the %s disk's format.json: %d)",
returnfmt.Errorf("%s disk is already being used in another erasure deployment. (Number of disks specified: %d but the number of disks found in the %s disk's format.json: %d)",
returnfmt.Errorf("%s disk is already formatted with %d drives per erasure set. This cannot be changed to %d, please revert your MINIO_ERASURE_SET_DRIVE_COUNT setting",humanize.Ordinal(i+1),len(formatErasure.Erasure.Sets[0]),setDriveCount)
returnfmt.Errorf("%s disk is already formatted with %d drives per erasure set. This cannot be changed to %d, please revert your MINIO_ERASURE_SET_DRIVE_COUNT setting",disks[i],len(formatErasure.Erasure.Sets[0]),setDriveCount)