Hi list, It's often recommended to align partitions on 1M boundaries. I was wondering what this means when creating partitions on softraid crypto disks. Let me give an example:
Say we have a physical disk sd0 with 512B sectors. This disk contains a partition sd0a with an offset of 2048 which is a 1M boundary. We create the softraid crypto disk sd1 on sd0a. The first 528 sectors of sd0a are reserved for softraid metadata so sd1 has an offset of 2048+528 relative to sd0. So far so good. Now let's create partition sd1a. What offset should we give it? Should we take the 528 sectors of softraid metadata into account? In that case sd1a should have an offset of 2048-528=1520 relative to sd1 which results in an offset of 2048+528+1520=4096 relative to sd0 which is an 1M boundary as desired. Is this the right thing to do or am I overthinking it? Thanks! -Paul

