Hello,
I read about the 4K issue with drives like the Caviar Green 3TB ones I bought, and used gnop to make the first drive in my RaidZ arrays 4K, used the .gnop device to create the zpool. Exported the pool, then imported again with the .gnop's removed.
When I do a [cmd=]zdb | grep ashift[/cmd] it's all listed as ashift 12.
I actually made a script to do it since I knew I'd end up trying.
http://pastebin.com/MuWiLpXs
Should I be ok now?
Why I ask, and why my writing this:
I haven't made partitions myself, I gave zpool whole drives. The initial document I read about using the drives I use just showed the "gnop trick", today I came across a site where they partition manually as well.
I have been using ZOL (Laurence Livermore Labs zfs on linux) on another system for some time now. Giving zpool there an empty drive instead of a partition, the zpool command would align automatically. I assume the Zpool command, once it detects the drives as being 4K does this as well.
I was also wondering about the sysctl value of vfs.zfs.vdev.cache.size being 0 by default. I assume that means some kind of dynamic allocation? Some places say the default value should be 10M, was that for earlier FreeBSD installs? I am reluctant to change the value before I know for sure.
I am using 9.1.
Info about most other sysctl values, where to change them and zfs usage on FreeBSD specifically I have found around the web during these last 2 weeks.
Thank you in advance for any reply.
I read about the 4K issue with drives like the Caviar Green 3TB ones I bought, and used gnop to make the first drive in my RaidZ arrays 4K, used the .gnop device to create the zpool. Exported the pool, then imported again with the .gnop's removed.
When I do a [cmd=]zdb | grep ashift[/cmd] it's all listed as ashift 12.
Code:
root@Castor:/ # zdb | grep ashift
ashift: 12
ashift: 12
ashift: 12
ashift: 12
I actually made a script to do it since I knew I'd end up trying.
http://pastebin.com/MuWiLpXs
Should I be ok now?
Why I ask, and why my writing this:
I haven't made partitions myself, I gave zpool whole drives. The initial document I read about using the drives I use just showed the "gnop trick", today I came across a site where they partition manually as well.
I have been using ZOL (Laurence Livermore Labs zfs on linux) on another system for some time now. Giving zpool there an empty drive instead of a partition, the zpool command would align automatically. I assume the Zpool command, once it detects the drives as being 4K does this as well.
I was also wondering about the sysctl value of vfs.zfs.vdev.cache.size being 0 by default. I assume that means some kind of dynamic allocation? Some places say the default value should be 10M, was that for earlier FreeBSD installs? I am reluctant to change the value before I know for sure.
Code:
root@Castor:/ # sysctl -a | grep vfs.zfs.vdev.cache.size
vfs.zfs.vdev.cache.size: 0
I am using 9.1.
Info about most other sysctl values, where to change them and zfs usage on FreeBSD specifically I have found around the web during these last 2 weeks.
Thank you in advance for any reply.