Hi, I am trying to understand the use of volblocksize in emulated volumes. If I create a volume in pool and I want a database engine to read and write, say 16K blocks. Should I then set volblocksize to 16K ? Regards, Patrik This message posted from opensolaris.org
Patrik Gustavsson wrote:>Hi, > >I am trying to understand the use of volblocksize in emulated volumes. > >If I create a volume in pool and I want a database engine to read and write, say >16K blocks. > >Should I then set volblocksize to 16K ? > >Regards, > >Patrik >This message posted from opensolaris.org >_______________________________________________ >zfs-discuss mailing list >zfs-discuss at opensolaris.org >http://opensolaris.org/mailman/listinfo/zfs-discuss > >Yes, you are correct. The following should do what you want. # zfs create -V <size> <pool/volume> # zfs set volblocksize=16k <pool/volume> The volume size must be set before the volume is written and can not be changed once it is written. Tabriz
On Wed, Nov 30, 2005 at 02:15:19PM -0800, Tabriz Leman wrote:> Patrik Gustavsson wrote: > > >Hi, > > > >I am trying to understand the use of volblocksize in emulated volumes. > > > >If I create a volume in pool and I want a database engine to read and > >write, say > >16K blocks. > > > >Should I then set volblocksize to 16K ? > > > >Regards, > > > >Patrik > >This message posted from opensolaris.org > >_______________________________________________ > >zfs-discuss mailing list > >zfs-discuss at opensolaris.org > >http://opensolaris.org/mailman/listinfo/zfs-discuss > > > > > Yes, you are correct. The following should do what you want. > > # zfs create -V <size> <pool/volume> > # zfs set volblocksize=16k <pool/volume> > > The volume size must be set before the volume is written and can not be > changed once it is written.It''s a bit simpler to do: zfs create -b 16k -V <size> <pool/volume> Cheers, - jonathan -- Jonathan Adams, Solaris Kernel Development