zfsonlinux/zfs — Issue #566: Add "-o ashift" to zpool add
Author: dasjoe
Created: 2012-02-08 11:28:18+00:00
State: open

Hi,

I have not tested whether this affects performance, but one can't force a specific ashift when adding vdevs to an existing pool:
```# zpool create -o ashift=12 tank raidz3 /dev/disk/storage/v0d?
# zpool add tank raidz3 /dev/disk/storage/v1d?
# zdb | grep ashift
ashift: 12
ashift: 9```

Currently the only way to force ashift=12 is to set it when creating the pool and adding all vdevs to it:
``` # zpool create -o ashift=12 tank raidz3 /dev/disk/storage/v0d? raidz3 /dev/disk/storage/v1d?
# zdb | grep ashift
ashift: 12
ashift: 12```