Hello friends,
I have 2 questions.
My first question is about ZFS ashift. I was following this thread about ZFS and default ashift value of 9 vs 12 for zpools. https://github.com/zfsonlinux/zfs/issues/6373
Regarding ZFS on Linux used in Proxmox 5.1, is it true that when you create a zpool without specifying ashift setting, that the value is "dynamic" and either 9 or 12, based on what the drives report as it's physical block size? Or does it default to always 9?
Or do we need to check block size manually for all new zpool member drives first (#smartctl -a /dev/<device1> or #blockdev --getss --getpbsz /dev/<device1>). And then manually specify ashift during creation (#zpool create -f -o ashift=12 rpool mirror <device1> <device2>).
My second question is about ZFS compression. When I use command #zfs set compression=lz4 rpool, Does ZFS compression enabled have any effect (either speed up or slow down) read/write speeds on a VM with virtual disk fully encrypted with either LUKS or BitLocker? Or because the VM disk is encrypted, compression has no effect at all? Is the general "best practice" to always enable compression for ZFS pool?
My primary aim for both questions is speed.
thanks in advance,
I have 2 questions.
My first question is about ZFS ashift. I was following this thread about ZFS and default ashift value of 9 vs 12 for zpools. https://github.com/zfsonlinux/zfs/issues/6373
Regarding ZFS on Linux used in Proxmox 5.1, is it true that when you create a zpool without specifying ashift setting, that the value is "dynamic" and either 9 or 12, based on what the drives report as it's physical block size? Or does it default to always 9?
Or do we need to check block size manually for all new zpool member drives first (#smartctl -a /dev/<device1> or #blockdev --getss --getpbsz /dev/<device1>). And then manually specify ashift during creation (#zpool create -f -o ashift=12 rpool mirror <device1> <device2>).
My second question is about ZFS compression. When I use command #zfs set compression=lz4 rpool, Does ZFS compression enabled have any effect (either speed up or slow down) read/write speeds on a VM with virtual disk fully encrypted with either LUKS or BitLocker? Or because the VM disk is encrypted, compression has no effect at all? Is the general "best practice" to always enable compression for ZFS pool?
My primary aim for both questions is speed.
thanks in advance,