So, I was trying to create a disc witha sector size of 4096 bytes, and I assumed that simply creating a zvol with that blocksize would do the trick. But it appears that whatever the blocksize is on the xvol, diskinfo is reporting the sector size as 512 bytes. I this the intended behaviour ? I dont have a Solaris system to hand to test it on, so I have no ida if this is BSD specific or not. cheers, -pete.
On Fri, February 3, 2012 07:25, Pete French wrote:> So, I was trying to create a disc witha sector size of 4096 bytes, and I > assumed that simply creating a zvol with that blocksize would do the > trick. > But it appears that whatever the blocksize is on the xvol, diskinfo is > reporting the sector size as 512 bytes. > > I this the intended behaviour ? I dont have a Solaris system to hand to > test it on, so I have no ida if this is BSD specific or not.Yes, it is intended. The pool sector size and ZFS dataset block size are parameters are independent of each other. AFAIK, there is no way to specify the sector size to use in a ZFS pool: it is completely automatic when you call "zpool create". Ideally it should query the disk about its sector size and use that, but I don't know if that has been implemented (and can't be bothered to dig through the source at this time :).
On Fri, Feb 3, 2012 at 1:25 PM, Pete French <petefrench@ingresso.co.uk>wrote:> So, I was trying to create a disc witha sector size of 4096 bytes, and I > assumed that simply creating a zvol with that blocksize would do the trick. > But it appears that whatever the blocksize is on the xvol, diskinfo is > reporting the sector size as 512 bytes. > > I this the intended behaviour ? I dont have a Solaris system to hand to > test it on, so I have no ida if this is BSD specific or not. > > cheers, > > -pete. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >You can use the method described here to create a zvol with 4k sector size: http://lists.freebsd.org/pipermail/freebsd-fs/2010-December/010350.html -- :wq
> You can use the method described here to create a zvol with 4k sector size: > http://lists.freebsd.org/pipermail/freebsd-fs/2010-December/010350.htmlI saw that, but it describes setting up a zpool, not a zvol - or are you saying that a zvol created on such a zpool will have 4k sectors ? Unfortunately I am not at liberty to recreate the pool on the server, so I cant try it, but thanks for the tip... -pete.