openzfs/zfs

Allow configuration of zvol logical blocksize

Open

#4203 opened on Jan 11, 2016

View on GitHub
 (8 comments) (6 reactions) (0 assignees)C (9,908 stars) (1,703 forks)batch import
Component: ZVOLType: Featuregood first issue

Description

The logical blocksize of a zvol seems to always be 512 byte, despite the fact that volblocksize is set to 4 KB:

# zfs get volblocksize data/iscsi 
NAME        PROPERTY      VALUE     SOURCE
data/vol1   volblocksize  4K        -
# lsblk -o name,min-io,opt-io,phy-sec,log-sec,rq-size
NAME    MIN-IO OPT-IO PHY-SEC LOG-SEC RQ-SIZE
zd0       4096   4096    4096     512     128

Is there any way to set logical blocksize = physical blocksize?

Contributor guide