Saturday, August 15, 2009

Set I/O block size

You must also consider I/O block size before creating a ZFS store this is not something that can be changed later so now is the time. It’s done by adding the –b 64K to the ZFS create command. I chose to use 64k for the block size which aligns with VMWare default allocation size thus optimizing performance. The –s option enables a sparse volume feature aka thin provisioning. In this case the space was available but it is my favorite way to allocate storage.

(Note we use 64k also for formatting the disk in windows so it makes sense to use the same blocksize here)

zfs create -b 64K -V 1800G dawpool/backup