I bought 4 Seagate Barracuda ST2000DM008 (Bytes per sector: 4096 according to datasheet) to be used in a Proxmox 5.4 with ZFS, during installation I choosed ashift=12, however after installation, I decided to check the bytes per sector using:
This gives me:
Here I see that each disk Sector size is 512 bytes / 4096 bytes, yet the hard drives is using sectors unit of 512 bytes, my question is should I choose ashift=9 instead of ashift=12 with this 4 HDD? I'm using this 4 HDD for a RAID10 with ZFS
fdisk -l /dev/sd[abcd]
This gives me:
Code:
Disk /dev/sda: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6CE03003-5475-4CFC-8ED1-8DBC1DEBB92E
Device Start End Sectors Size Type
/dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 1050623 1048576 512M EFI System
/dev/sda3 1050624 3907029134 3905978511 1,8T Solaris /usr & Apple ZFS
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 3582B747-5524-4BBC-92A3-7637941098DF
Device Start End Sectors Size Type
/dev/sdb1 34 2047 2014 1007K BIOS boot
/dev/sdb2 2048 1050623 1048576 512M EFI System
/dev/sdb3 1050624 3907029134 3905978511 1,8T Solaris /usr & Apple ZFS
Partition 1 does not start on physical sector boundary.
Disk /dev/sdc: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 42B65B40-3F48-6345-8339-DAD622956949
Device Start End Sectors Size Type
/dev/sdc1 2048 3907012607 3907010560 1,8T Solaris /usr & Apple ZFS
/dev/sdc9 3907012608 3907028991 16384 8M Solaris reserved 1
Disk /dev/sdd: 1,8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: D109985F-8F3D-CF45-B312-102D05B6C264
Device Start End Sectors Size Type
/dev/sdd1 2048 3907012607 3907010560 1,8T Solaris /usr & Apple ZFS
/dev/sdd9 3907012608 3907028991 16384 8M Solaris reserved 1
Here I see that each disk Sector size is 512 bytes / 4096 bytes, yet the hard drives is using sectors unit of 512 bytes, my question is should I choose ashift=9 instead of ashift=12 with this 4 HDD? I'm using this 4 HDD for a RAID10 with ZFS