Not sure how to express myself here, but consider preparing a physical
disk (sd0) for FDE. We initialize the disk:

# fdisk -iy sd0
# printf "a\n\n\n\nRAID\nw\nq\n\n" | disklabel -E sd0
# bioctl -c C -l /dev/sd0a softraid0

This yields a virtual disk sd1 with an "a" partition of type RAID that
has an offset of 64 sectors. We initialize sd1 to contain just one big
"a" partition of type 4.2BSD that spans the whole disk:

# fdisk -iy sd1
# printf "a\n\n\n\n4.2BSD\nw\nq\n\n" | disklabel -E sd1

Am I understanding this correctly if I now say that sd1a has an offset
of 128 sectors? And if so: is this necessary?

And further on. What if two physical disks were to contain a RAID1C; is
it necessary for each of the "nested" or "stacked" softraid volumes to
start at an offset of 64?

physical disks:
  sd0a: 64 + N-64
  sd1a: 64 + N-64
RAID 1 volume:
  sd2a: 64 + 64 + N-128
CRYPTO volume:
  sd3a: 64 + 64 + 64 + N-196

The space wasted on large disks is negligible but I would really like to
know at which level the 64 sector offset may be set to 0.

Regards and thanks in advance,

Erling

Reply via email to