[OpenIndiana-discuss] The 4k transition & the 512bit emulation in hdds

c d cdlist at hotmail.no
Wed Mar 9 21:40:08 UTC 2011


G'day




So the hdd makers are pushing out 4k drives, but are failing miserably by emulating 512bit sectors to the OS.

My understanding is that OI supports 4k sectors – as long as the drive reports this natively. But since all new 4k drives – as far as I'm aware – does an 512bit emulation, there is no way the OS would know about it.
This means that you need an external tool to properly align the partitions. Since there's no such tool for ZFS, it therefore rely on manually editing and compiling the source of zpool, to force an alignment.

The half-hearted way this transition has been done by the hdd makers, simply speaks for itself.
Since the emulation takes place in the PCB of the drive, it baffles me that they aren't release two versions of their drives. Why not make it optional? Even if they were slightly more expensive, it would make the transition flawless for a lot of people, by simply, well not having a transition!
Instead they are pushing the problem onto the consumers. And it seems that it can take years before they actually make the drive speak 4k natively.


So, as this problem concerns all of us, perhaps we should try to find a solution?
If all it takes is a modified binary, how about supplementing it with OpenIndiana?

Here's a link to tests and how-to for compiling zpool with ashift=12:
http://digitaldj.net/2010/11/03/zfs-zpool-v28-openindiana-b147-4k-drives-and-you/


I'm also very interested in hearing your experiences with the following drives, and how they perform with / without the modified binary:
WD20EARS        (Western Digital Green) 
HD204UI         (Samsung F4EG)
ST32000542AS     (Seagate Barracuda LP 2)

Cheers!
- Frederic


More information about the OpenIndiana-discuss mailing list