nas:build_a_linux_nas:create_a_filesystem
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nas:build_a_linux_nas:create_a_filesystem [2021/09/25 19:49] – peter | nas:build_a_linux_nas:create_a_filesystem [2021/09/25 20:14] (current) – peter | ||
---|---|---|---|
Line 8: | Line 8: | ||
**NOTE: | **NOTE: | ||
- | * The script at http:// | + | The following formulae |
+ | |||
+ | * **blocksize (in KiB)** = 4 | ||
+ | * **chunksize (in KiB)** = 512 | ||
+ | * **stride** = chunksize / blocksize = 512 / 4 = 128; | ||
+ | * IMPORTANT: | ||
+ | * **effective_disks** = | ||
+ | * If Raid6 = number of disks - 2. | ||
+ | * if Raid5 = number of disks - 1. | ||
+ | * if Raid1 = number of disks / 2. | ||
+ | * if Raid10 = number of disks / 2. | ||
+ | * **stripe-width** = stride * effective_disks; | ||
+ | |||
+ | <code bash> | ||
mkfs.ext4 -b 4096 -E stride=128, | mkfs.ext4 -b 4096 -E stride=128, | ||
</ | </ | ||
- | * where | + | |
- | * RAID chunk size (in KiB): 512 | + | For further details, get a recent e2fsprogs and look for stride, stripe etc. in the man page. |
- | * Number of filesystem blocks (in KiB): 4 | + | |
</ | </ | ||
nas/build_a_linux_nas/create_a_filesystem.1632599349.txt.gz · Last modified: 2021/09/25 19:49 by peter