Hi there! I am trying to replace an old HDD with a SSD in my install. Here is the volume info:
I've tried to "offline" and then replace one of the drives, but always get an error:
I think the problem comes down to the "ashift" value (aka block size).
It's set to 512 for the volume:
The new SSD uses 4k blocks, of course. So, is there a way to upgrade the pool to 4kB? If not, how can I replace a disk?
I have tried trashing the new disk's partitions...
Thanks!
Code:
pool: storage state: ONLINE status: One or more devices are configured to use a non-native block size. Expect reduced performance. action: Replace affected devices with devices that support the configured block size, or migrate data to a properly configured pool. scan: resilvered 28.8M in 00:00:05 with 0 errors on Tue Feb 27 20:59:48 2024 config: NAME STATE READ WRITE CKSUM storage ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 gptid/6698f50e-5391-11e7-b935-4ccc6a23ba99 ONLINE 0 0 0 block size: 512B configured, 4096B native gptid/d5632530-5a10-11e7-bbd2-4ccc6a23ba99 ONLINE 0 0 0 block size: 512B configured, 4096B native gptid/9146ba7d-c210-11e5-a55d-80ee73361b28 ONLINE 0 0 0 block size: 512B configured, 4096B native
I've tried to "offline" and then replace one of the drives, but always get an error:
libzfs.ZFSException: already in replacing/spare config; wait for completion or use 'zpool detach'
I think the problem comes down to the "ashift" value (aka block size).
Code:
oot@cube:/mnt/storage # zpool get ashift NAME PROPERTY VALUE SOURCE freenas-boot ashift 0 default storage ashift 0 default
It's set to 512 for the volume:
Code:
root@cube:/mnt/storage # zdb -C -U /data/zfs/zpool.cache | egrep "(^[a-z]+:)|ashift" storage: ashift: 9
The new SSD uses 4k blocks, of course. So, is there a way to upgrade the pool to 4kB? If not, how can I replace a disk?
I have tried trashing the new disk's partitions...
Thanks!