Creating properly aligned partitions on a replacement disk
- by Marius Gedminas
I've a typical small office server with two hard disks configured for RAID-1 (mirroring). Each disk has several partitions: one for swap, the others paired in several /dev/mdX arrays.
Every couple of years one of the disks dies and is replaced. The replacement typically goes something like this:
# copy partition table from the remaining good…