We're having issue with a RAID-1 (mirrored) setup when replacing disks. Our current setup has two 1TB disks nearing end-of-life and we wanted to replaced them with two other 1TB disks.
The issue is that the two old 1To disks contains about 953GiB, while the two new 1TB disks contains about 931GiB. Now, mdadm
can tolerate a 1% difference between disk size, but the difference is about 22GiB and is therefore too much. So when we try to do the replacement, we get the error message:
Problem: partition X is too big for the disk.
Where X is the number of the partition in question.
Ok, fine, we'll work on shrinking partitions and stuff to make it work. Feasible, but long and not fun.
But my question is:
How much should we have partitioned the disk in the first place to avoid this issue?
Since what we bought were 1TB disks, should we limit ourselves to a 931GiB partition, since :
1,000,000,000,000 / 1024 / 1024 / 1024 = 931.32 GiB
I mean, it was nice to get 953GiB when buying the old 1To disk, but should we limit ourselves to 931GiB to avoid this issue?
Or should we limit ourselves further, for instance to 920GiB, just in case?
Are there any "best practices" documented somewhere on how much space we should reserve in a RAID-1 disk to avoid the "partition too big" issue we're having now?
Edit: replaced Go with GB, and then GB with GiB where relevant.