0
The manpage for mdadm
describes a -c, --chunk=
parameter, quoted below, that seems to relate to the RAID 0 stripe size. However, the SNIA definition of the parameters for RAID 0 is not a single value, but is made of three values: Block Size, Strip Depth, and Extend Stripe Length. I'm curious how this chunk parameter translates into the SNIA defined terms. The big hangup I'm having is "Strip_ Depth" vs. "Stripe Length".
If I run mdadm ... -c 32K
on a RAID 0 array of 8 disks with a 4K sector size, is it going to create an array with a "Strip_ Depth" of 32K (8 sectors) and a "Stripe Size" that is 8 of those? Or is it going to create an array with a "Strip_ Depth" of 4K (1 sector) and a "Stripe Length" of 8, which together make a "Stripe Size" of 32K?
manpage snippet:
-c, --chunk=
Specify chunk size of kibibytes. The default when creating an array is 512KB. To ensure compatibility with earlier versions,
the default when Building and array with no persistent metadata is 64KB. This is only meaningful for RAID0, RAID4, RAID5,
RAID6, and RAID10.
RAID4, RAID5, RAID6, and RAID10 require the chunk size to be a power of 2. In any case it must be a multiple of 4KB.
A suffix of ’M’ or ’G’ can be given to indicate Megabytes or Gigabytes respectively.
From SNIA Command RAID Disk Data Format Specification, Version 2, Section 4.2.1 RAID-0 Simple Striping: