On Mon, Apr 25, 2011 at 8:20 AM, Edward Ned Harvey <opensolarisisdeadlongliveopensola...@nedharvey.com> wrote: > and 128k assuming default recordsize. (BTW, recordsize seems to be a zfs > property, not a zpool property. So how can you know or configure the > blocksize for something like a zvol iscsi target?)
zvols use the 'volblocksize' property, which defaults to 8k. A 1TB zvol is therefore 2^27 blocks and would require ~ 34 GB for the ddt (assuming that a ddt entry is 270 bytes). The zfs man page for the property reads: volblocksize=blocksize For volumes, specifies the block size of the volume. The blocksize cannot be changed once the volume has been written, so it should be set at volume creation time. The default blocksize for volumes is 8 Kbytes. Any power of 2 from 512 bytes to 128 Kbytes is valid. This property can also be referred to by its shortened column name, volblock. -- Brandon High : bh...@freaks.com _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss