Skip to contentSkip to conversation

does chunksize matter in raid-1?

DISCUSSION Jeff Breidenbach 3 participants 3 messages Aug 6, 2005 MD RAID

lore
Share & tools
lore
#0 lore raw

Does chunk size matter *at all* for RAID-1?

mdadm --create /dev/md0 --level=1 --chunk=8 /dev/sdc1 /dev/sdd1 mdadm --create /dev/md0 --level=1 --chunk=128 /dev/sdc1 /dev/sdd1

In my mental model of how RAID works, it can't possibly matter what my chunk size is whether I've got 1KB files or 1GB files because no striped reading occurs.

Is my mental model wrong?

-Jeff

#1 lore raw
Quoted 9 lines · Jeff Breidenbach

Does chunk size matter *at all* for RAID-1?

mdadm --create /dev/md0 --level=1 --chunk=8 /dev/sdc1 /dev/sdd1 mdadm --create /dev/md0 --level=1 --chunk=128 /dev/sdc1 /dev/sdd1

In my mental model of how RAID works, it can't possibly matter what my chunk size is whether I've got 1KB files or 1GB files because no striped reading occurs.

Is my mental model wrong?

No, chunk size does not matter for raid1. In fact, some/most? kernels will print a message to that effect if you specify a chunk size for a raid1 array.

--
Paul

#2 lore raw
Quoted 1 line · Paul Clements

No, chunk size does not matter for raid1. In fact, some/most? kernels will print a message to that effect if you specify a chunk size for a raid1 array.

Yet if you use raidtools and /etc/raidtab you must specify chunksize it to create a RAID1....

In other words, stick to mdadm.

-ryan