Format RAID 10 Partition
My google-fu must be off this morning, but i'm having a rough time wrapping my head around formatting this RAID 10 partition ext4. Specifically the math for figuring stride. Also, fdisk gumbled about my logical sectors being smaller than the physical. This is a (4) 500 GB Array... block size on one of the devices is 4096...
fdisk -l /dev/md0 Code:
Disk /dev/md0: 999.9 GB, 999944093696 bytes |
To get the chunk size do: mdadm --detail /dev/md0p1
The mkfs.ext4 stride parameter will be: N * chunk / b where N=2 for 4 raid10 disks, and b is the filesystem block size. |
So if i understand correctly
Code:
# mdadm --detail /dev/md0p1 N * chunk / b 2 * (512 *1024) / 4098 = ... 256 and then the stripe width is twice that (2 data disks, and not 2 parity disks) and a format command that looks something like... Code:
# mkfs.ext4 -v -m .1 -b 4096 -E stride=256,stripe-width=512 /dev/md0p1 |
All times are GMT -5. The time now is 04:18 PM. |