User Tools

Site Tools


nas:build_a_linux_nas:create_a_filesystem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nas:build_a_linux_nas:create_a_filesystem [2021/09/25 20:03] peternas:build_a_linux_nas:create_a_filesystem [2021/09/25 20:14] (current) peter
Line 8: Line 8:
 **NOTE:**  **/dev/md0** can be used now just as any other block device. **NOTE:**  **/dev/md0** can be used now just as any other block device.
  
-  * The script at http://busybox.net/~aldot/mkfs_stride.html can be used to calculate the best settings for the filesystem: <code bash> +The following formulae can be used to calculate the best settings for the filesystem:
-mkfs.ext4 -b 4096 -E stride=128,stripe-width=256 /dev/md0 +
-</code> +
-    * where  +
-      * RAID chunk size (in KiB):  512 +
-      * Number of filesystem blocks (in KiB): 4+
  
   * **blocksize (in KiB)** = 4   * **blocksize (in KiB)** = 4
Line 25: Line 20:
     * if Raid10 = number of disks / 2.     * if Raid10 = number of disks / 2.
   * **stripe-width** = stride * effective_disks;   * **stripe-width** = stride * effective_disks;
 +
 +<code bash>
 +mkfs.ext4 -b 4096 -E stride=128,stripe-width=256 /dev/md0
 +</code>
 +
 +For further details, get a recent e2fsprogs and look for stride, stripe etc. in the man page. 
  
 </WRAP> </WRAP>
nas/build_a_linux_nas/create_a_filesystem.1632600207.txt.gz · Last modified: 2021/09/25 20:03 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki