u/rileywbaker

▲ 9 r/zfs

What would happen if I use hdparm to change the logical sector size of my HDD to 4096 bytes?

I have four 8TB HDDs all with Physical Sector Size 4096 bytes and Logical Sector Size 512 bytes, according to `hdparm` and `lsblk`. They're in a raidz1 zpool with ashift=12. Also lsblk says their minimum IO size is 4096 bytes.

What would happen if I used hdparm to change one disk's logical sector size to 4096 bytes? I assume all data on disk would be lost and ZFS would resilver the drive. After the resilver, would the on-disk data be laid out differently? Would writes happen differently? Would there be any effect on performance?

reddit.com
u/rileywbaker — 13 days ago