This script calculates recommended settings for creating ext2, ext3 or ext4 filesystems on RAID devices.
It prints stride and stripe-width settings for use in the extended-options of mkfs. For further details, get a recent e2fsprogs and look for stride, stripe etc. in the manpage.

Note that there is no input-validation whatsoever, also the script itself is ugly. Comments and improvements are welcome, feel free to send in patches.
If you insist, then i consider this script Public Domain.

RAID level
Number of physical disks
RAID chunk size (in KiB)
number of filesystem blocks (in KiB)

Valid XHTML 1.0 Strict